fix(web-probe): add mdtodo visual sentinel coverage
This commit is contained in:
@@ -272,6 +272,9 @@ lanes:
|
||||
- id: workbench-auth-session-switch-2users
|
||||
enabled: true
|
||||
configRef: config/hwlab-web-probe-sentinels/d601-v03/workbench-auth-session-switch-2users.yaml#sentinel
|
||||
- id: mdtodo-visual-regression
|
||||
enabled: true
|
||||
configRef: config/hwlab-web-probe-sentinels/d601-v03/mdtodo-visual-regression.yaml#sentinel
|
||||
workbench:
|
||||
enabled: true
|
||||
summaryPath: /v1/web-performance/summary
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
version: 1
|
||||
kind: HwlabWebProbeSentinelCicd
|
||||
metadata:
|
||||
id: d601-v03-web-probe-sentinel-mdtodo-cicd
|
||||
owner: UniDesk
|
||||
specRef: PJ2026-01060508
|
||||
sentinel:
|
||||
cicd:
|
||||
controlPlaneConfigRef: config/hwlab-node-control-plane.yaml#targets[0]
|
||||
source:
|
||||
repository: pikasTech/unidesk
|
||||
branch: master
|
||||
gitSshUrl: ssh://git@ssh.github.com:443/pikasTech/unidesk.git
|
||||
gitMirrorReadUrl: http://git-mirror-http.devops-infra.svc.cluster.local:8080/pikasTech/unidesk.git
|
||||
buildContext: .
|
||||
entrypoint: scripts/web-probe-sentinel-service.ts
|
||||
checkoutPaths:
|
||||
- scripts
|
||||
- config
|
||||
- package.json
|
||||
- bun.lock
|
||||
- bun.lockb
|
||||
builder:
|
||||
namespace: devops-infra
|
||||
sourceMode: sparse-git-checkout
|
||||
jobPrefix: web-probe-sentinel-mdtodo-publish
|
||||
gitSshSecretName: git-mirror-github-ssh
|
||||
dockerSocketPath: /var/run/docker.sock
|
||||
activeDeadlineSeconds: 900
|
||||
ttlSecondsAfterFinished: 3600
|
||||
gitopsPath: deploy/gitops/node/d601/web-probe-sentinel-mdtodo
|
||||
argo:
|
||||
namespace: argocd
|
||||
projectName: hwlab-d601
|
||||
applicationName: hwlab-web-probe-sentinel-mdtodo
|
||||
repoURL: http://git-mirror-http.devops-infra.svc.cluster.local:8080/pikasTech/HWLAB.git
|
||||
targetRevision: v0.3-gitops
|
||||
image:
|
||||
repository: 127.0.0.1:5000/hwlab/web-probe-sentinel-mdtodo
|
||||
tagSource: source-commit
|
||||
baseImageRef: config/hwlab-node-control-plane.yaml#targets[0].tekton.toolsImage.output
|
||||
envRecipeRef: config/hwlab-web-probe-sentinel/runtime.mdtodo.d601-v03.yaml#sentinel.runtime
|
||||
maintenance:
|
||||
startCommand: sentinel maintenance start
|
||||
stopCommand: sentinel maintenance stop
|
||||
confirmWait:
|
||||
maxSeconds: 120
|
||||
targetValidation:
|
||||
scenarioId: mdtodo-visual-regression
|
||||
maxSeconds: 360
|
||||
serviceUnavailablePolicy: structured-failure
|
||||
@@ -0,0 +1,37 @@
|
||||
version: 1
|
||||
kind: HwlabWebProbeSentinelPublicExposure
|
||||
metadata:
|
||||
id: d601-v03-web-probe-sentinel-mdtodo-public-exposure
|
||||
owner: UniDesk
|
||||
specRef: PJ2026-01060508
|
||||
sentinel:
|
||||
publicExposure:
|
||||
enabled: true
|
||||
mode: pk01-caddy-frp-path
|
||||
publicBaseUrl: https://monitor.pikapython.com/sentinels/mdtodo-visual-regression
|
||||
hostname: monitor.pikapython.com
|
||||
routePrefix: /sentinels/mdtodo-visual-regression
|
||||
expectedA: 82.156.23.220
|
||||
frpc:
|
||||
deploymentName: hwlab-web-probe-sentinel-mdtodo-frpc
|
||||
image: 127.0.0.1:5000/hwlab/frpc:v0.68.1
|
||||
serverAddr: 82.156.23.220
|
||||
serverPort: 22000
|
||||
tokenSourceRef: platform-infra/pk01-frp.env
|
||||
tokenSourceKey: FRP_TOKEN
|
||||
secretName: hwlab-web-probe-sentinel-mdtodo-frpc
|
||||
secretKey: frpc.toml
|
||||
tokenKey: token
|
||||
httpProxy:
|
||||
name: hwlab-d601-v03-web-probe-sentinel-mdtodo
|
||||
remotePort: 22092
|
||||
localIP: hwlab-web-probe-sentinel-mdtodo.hwlab-v03.svc.cluster.local
|
||||
localPort: 8080
|
||||
caddy:
|
||||
route: PK01
|
||||
configPath: /etc/caddy/Caddyfile
|
||||
serviceName: caddy
|
||||
email: ops@pikapython.com
|
||||
tls: auto
|
||||
responseHeaderTimeoutSeconds: 600
|
||||
managedBlockOwner: hwlab-web-probe-sentinel-mdtodo-d601-v03
|
||||
@@ -0,0 +1,33 @@
|
||||
version: 1
|
||||
kind: HwlabWebProbeSentinelRuntime
|
||||
metadata:
|
||||
id: d601-v03-web-probe-sentinel-mdtodo-runtime
|
||||
owner: UniDesk
|
||||
specRef: PJ2026-01060508
|
||||
sentinel:
|
||||
runtime:
|
||||
target:
|
||||
node: D601
|
||||
lane: v03
|
||||
publicOriginRef: config/hwlab-node-lanes.yaml#lanes.v03.targets.D601.public.webUrl
|
||||
observeWrapperRef: config/hwlab-node-lanes.yaml#lanes.v03.targets.D601.observability.webProbe.sentinels[2]
|
||||
namespace: hwlab-v03
|
||||
serviceAccountName: hwlab-web-probe-sentinel-mdtodo
|
||||
deploymentName: hwlab-web-probe-sentinel-mdtodo
|
||||
serviceName: hwlab-web-probe-sentinel-mdtodo
|
||||
listenHost: 0.0.0.0
|
||||
servicePort: 8080
|
||||
pvcName: hwlab-web-probe-sentinel-mdtodo-state
|
||||
pvcStorage: 10Gi
|
||||
stateRoot: /var/lib/web-probe-sentinel-mdtodo
|
||||
imageRef: 127.0.0.1:5000/hwlab/web-probe-sentinel-mdtodo:source-commit
|
||||
replicas: 1
|
||||
healthPath: /api/health
|
||||
metricsPath: /metrics
|
||||
scheduler:
|
||||
intervalMs: 900000
|
||||
heartbeatStaleSeconds: 900
|
||||
maxConcurrentRuns: 1
|
||||
sqlite:
|
||||
path: /var/lib/web-probe-sentinel-mdtodo/index.sqlite
|
||||
busyTimeoutMs: 2000
|
||||
@@ -0,0 +1,35 @@
|
||||
version: 1
|
||||
kind: HwlabWebProbeSentinelScenarios
|
||||
metadata:
|
||||
id: d601-v03-web-probe-sentinel-mdtodo-scenarios
|
||||
owner: UniDesk
|
||||
specRef: PJ2026-01060508
|
||||
sentinel:
|
||||
scenarios:
|
||||
- id: mdtodo-visual-regression
|
||||
enabled: true
|
||||
cadence: 15m
|
||||
observeTargetPath: /projects/mdtodo
|
||||
viewport: 390x844
|
||||
sampleIntervalMs: 1000
|
||||
screenshotIntervalMs: 60000
|
||||
maxRunSeconds: 360
|
||||
providerProfile: dsflash-go
|
||||
providerProfileMode: exact
|
||||
promptSetRef: config/hwlab-web-probe-sentinel/prompt-set.dsflash-go.yaml#sentinel.promptSet
|
||||
reportViewRef: config/hwlab-web-probe-sentinel/report-views.yaml#sentinel.reportViews
|
||||
commandSequence:
|
||||
- type: gotoProjectMdtodo
|
||||
- type: selectMdtodoFile
|
||||
filename: 20260609_频率判断_用户反馈.md
|
||||
- type: screenshot
|
||||
label: mdtodo-mobile-selected
|
||||
- type: openMdtodoReportPreview
|
||||
task: R1
|
||||
link: R1
|
||||
- type: screenshot
|
||||
label: mdtodo-report-preview
|
||||
- type: toggleMdtodoReportFullscreen
|
||||
text: toggle
|
||||
- type: screenshot
|
||||
label: mdtodo-report-fullscreen
|
||||
@@ -0,0 +1,26 @@
|
||||
version: 1
|
||||
kind: HwlabWebProbeSentinelSecrets
|
||||
metadata:
|
||||
id: d601-v03-web-probe-sentinel-mdtodo-secrets
|
||||
owner: UniDesk
|
||||
specRef: PJ2026-01060508
|
||||
sentinel:
|
||||
secrets:
|
||||
sources:
|
||||
- purpose: bootstrap-admin
|
||||
sourceRef: hwlab/d601-v03-bootstrap-admin.env
|
||||
sourceKey: HWLAB_BOOTSTRAP_ADMIN_PASSWORD
|
||||
- purpose: frp-token
|
||||
sourceRef: platform-infra/pk01-frp.env
|
||||
sourceKey: FRP_TOKEN
|
||||
runtimeSecrets:
|
||||
- name: hwlab-web-probe-sentinel-mdtodo-bootstrap
|
||||
namespace: hwlab-v03
|
||||
data:
|
||||
- sourcePurpose: bootstrap-admin
|
||||
targetKey: bootstrap-admin-password
|
||||
- name: hwlab-web-probe-sentinel-mdtodo-frpc
|
||||
namespace: hwlab-v03
|
||||
data:
|
||||
- sourcePurpose: frp-token
|
||||
targetKey: token
|
||||
@@ -0,0 +1,18 @@
|
||||
version: 1
|
||||
kind: HwlabWebProbeSentinel
|
||||
metadata:
|
||||
id: d601-v03-mdtodo-visual-regression
|
||||
owner: UniDesk
|
||||
specRef: PJ2026-01060508
|
||||
sentinel:
|
||||
id: mdtodo-visual-regression
|
||||
enabled: true
|
||||
mode: web-probe-observe-wrapper
|
||||
configRefs:
|
||||
runtime: config/hwlab-web-probe-sentinel/runtime.mdtodo.d601-v03.yaml#sentinel.runtime
|
||||
scenarios: config/hwlab-web-probe-sentinel/scenarios.mdtodo.yaml#sentinel.scenarios
|
||||
promptSet: config/hwlab-web-probe-sentinel/prompt-set.dsflash-go.yaml#sentinel.promptSet
|
||||
reportViews: config/hwlab-web-probe-sentinel/report-views.yaml#sentinel.reportViews
|
||||
publicExposure: config/hwlab-web-probe-sentinel/public-exposure.mdtodo.d601-v03.yaml#sentinel.publicExposure
|
||||
cicd: config/hwlab-web-probe-sentinel/cicd.mdtodo.d601-v03.yaml#sentinel.cicd
|
||||
secrets: config/hwlab-web-probe-sentinel/secrets.mdtodo.d601-v03.yaml#sentinel.secrets
|
||||
Reference in New Issue
Block a user