feat: sync vehicle monitoring and accumulated platform updates
Add monitoring metrics, numeric sorting, report-time display, vehicle number labels, and map layout fixes. Include accumulated mileage, hydrogen, OneOS authentication, open platform, ingestion, deployment, and UI updates. Exclude temporary files, generated reports, and credentials. Validate frontend 632 tests and production build, API packages, vehicle-map tests, and release installer tests. Gateway suite has one pre-existing date-sensitive identity throttling test failure reproduced on the parent commit.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Daily pure hydrogen mileage synchronization conclusion via ServerChan
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/lingniu-gzev/current
|
||||
EnvironmentFile=/opt/lingniu-go-native/env/base.env
|
||||
EnvironmentFile=/opt/lingniu-vehicle-platform/env/platform.env
|
||||
EnvironmentFile=/opt/lingniu-gzev/env/gzev.env
|
||||
ExecStart=/opt/lingniu-gzev/current/gzev-daily-report
|
||||
TimeoutStartSec=3min
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Report pure hydrogen mileage synchronization daily at 11:00 Beijing time
|
||||
|
||||
[Timer]
|
||||
# Production host timezone is verified as Asia/Shanghai before installation.
|
||||
OnCalendar=*-*-* 11:00:00
|
||||
Persistent=true
|
||||
AccuracySec=1s
|
||||
Unit=lingniu-gzev-daily-report.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Guangzhou daily vehicle mileage ingestion and resumable backfill
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/lingniu-gzev/current
|
||||
EnvironmentFile=/opt/lingniu-go-native/env/base.env
|
||||
EnvironmentFile=/opt/lingniu-vehicle-platform/env/platform.env
|
||||
EnvironmentFile=/opt/lingniu-gzev/env/gzev.env
|
||||
ExecStart=/opt/lingniu-gzev/current/gzev-mileage --mode sync --max-days 90 --lookback 7
|
||||
TimeoutStartSec=50min
|
||||
Nice=10
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Collect completed Guangzhou mileage days hourly, replay recent days, resume history
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:15:00
|
||||
Persistent=true
|
||||
AccuracySec=1min
|
||||
Unit=lingniu-gzev-mileage.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Guangzhou mileage session upload and validation
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/lingniu-gzev/current
|
||||
EnvironmentFile=/opt/lingniu-gzev/env/gzev.env
|
||||
ExecStart=/opt/lingniu-gzev/current/gzev-session-upload
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
ProtectHome=true
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Lingniu customer pure hydrogen mileage worker
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/lingniu-vehicle-platform/current
|
||||
EnvironmentFile=/opt/lingniu-go-native/env/base.env
|
||||
EnvironmentFile=/opt/lingniu-vehicle-platform/env/platform.env
|
||||
Environment=CUSTOMER_HYDROGEN_WORKER=true
|
||||
Environment=CUSTOMER_HYDROGEN_MAX_JOBS=0
|
||||
Environment=BACKFILL_PROTOCOLS=GB32960,YUTONG_MQTT
|
||||
ExecStart=/opt/lingniu-vehicle-platform/current/customer-hydrogen-worker
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
KillSignal=SIGTERM
|
||||
TimeoutStopSec=45
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user