@@ -245,7 +245,7 @@ function runNpmTelegramInputValidation(overrides: Record<string, string>) {
245245function runNpmTelegramArtifactValidation ( params : {
246246 currentRunId : string ;
247247 producerRunId : string ;
248- producerStatus : "completed" | "in_progress" | "queued" ;
248+ producerStatus : "completed" | "in_progress" | "pending" | " queued";
249249 producerConclusion : "success" | null ;
250250} ) {
251251 const job = workflowJob ( NPM_TELEGRAM_WORKFLOW , "run_package_telegram_e2e" ) ;
@@ -2583,7 +2583,11 @@ describe("package artifact reuse", () => {
25832583 const releaseJob = workflowJob ( RELEASE_CHECKS_WORKFLOW , "qa_live_release_checks" ) ;
25842584
25852585 expect ( releaseJob . uses ) . toBe ( "./.github/workflows/qa-live-transports-convex.yml" ) ;
2586- expect ( releaseJob . secrets ) . toBeUndefined ( ) ;
2586+ expect ( releaseJob . secrets ) . toEqual ( {
2587+ OPENAI_API_KEY : "${{ secrets.OPENAI_API_KEY }}" ,
2588+ OPENCLAW_QA_CONVEX_SECRET_CI : "${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}" ,
2589+ OPENCLAW_QA_CONVEX_SITE_URL : "${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}" ,
2590+ } ) ;
25872591 expect ( releaseJob . permissions ) . toEqual ( { contents : "read" , "pull-requests" : "read" } ) ;
25882592 expect ( releaseJob . if ) . toContain ( 'contains(fromJSON(\'["all","qa","qa-live"]\')' ) ;
25892593 expect ( releaseJob . with ) . toMatchObject ( {
@@ -2650,7 +2654,11 @@ describe("package artifact reuse", () => {
26502654 const releaseJob = workflowJob ( RELEASE_CHECKS_WORKFLOW , "qa_live_buzz_release_checks" ) ;
26512655
26522656 expect ( releaseJob . uses ) . toBe ( "./.github/workflows/qa-live-transports-convex.yml" ) ;
2653- expect ( releaseJob . secrets ) . toBeUndefined ( ) ;
2657+ expect ( releaseJob . secrets ) . toEqual ( {
2658+ OPENAI_API_KEY : "${{ secrets.OPENAI_API_KEY }}" ,
2659+ OPENCLAW_QA_CONVEX_SECRET_CI : "${{ secrets.OPENCLAW_QA_CONVEX_SECRET_CI }}" ,
2660+ OPENCLAW_QA_CONVEX_SITE_URL : "${{ secrets.OPENCLAW_QA_CONVEX_SITE_URL }}" ,
2661+ } ) ;
26542662 expect ( releaseJob . permissions ) . toEqual ( { contents : "read" , "pull-requests" : "read" } ) ;
26552663 expect ( releaseJob . if ) . toContain ( 'contains(fromJSON(\'["all","qa","qa-live"]\')' ) ;
26562664 expect ( releaseJob . if ) . toContain ( "needs.resolve_target.outputs.qa_live_buzz_enabled == 'true'" ) ;
@@ -3212,6 +3220,7 @@ describe("package artifact reuse", () => {
32123220 '--arg digest "sha256:${ARTIFACT_DIGEST}"' ,
32133221 "actions/runs/${ARTIFACT_RUN_ID}/attempts/${ARTIFACT_RUN_ATTEMPT}" ,
32143222 'if [[ "$ARTIFACT_RUN_ID" == "$GITHUB_RUN_ID" ]]' ,
3223+ '.status == "pending"' ,
32153224 '.status == "queued" or .status == "in_progress"' ,
32163225 ".conclusion == null" ,
32173226 "Package Telegram artifact predates the active producer run attempt." ,
@@ -3269,6 +3278,17 @@ describe("package artifact reuse", () => {
32693278 expect ( result . status , result . stderr ) . toBe ( 0 ) ;
32703279 } ) ;
32713280
3281+ it ( "accepts active artifacts while GitHub reports the workflow as pending" , ( ) => {
3282+ const result = runNpmTelegramArtifactValidation ( {
3283+ currentRunId : "123" ,
3284+ producerConclusion : null ,
3285+ producerRunId : "123" ,
3286+ producerStatus : "pending" ,
3287+ } ) ;
3288+
3289+ expect ( result . status , result . stderr ) . toBe ( 0 ) ;
3290+ } ) ;
3291+
32723292 it ( "rejects queued artifacts after GitHub assigns a conclusion" , ( ) => {
32733293 const result = runNpmTelegramArtifactValidation ( {
32743294 currentRunId : "123" ,
0 commit comments