aglinxinyuan opened a new pull request, #6836:
URL: https://github.com/apache/texera/pull/6836

   ### What changes were proposed in this PR?
   
   Reported on #6800 ("codecov is not updating"). The deferred `Codecov Upload` 
workflow re-downloads and GPG-verifies the Codecov CLI on every leg, and that 
runtime key import / signature check is **intermittently flaky**:
   
   ```
   gpg: no valid OpenPGP data found
   gpg: Can't check signature: No public key
   ==> Could not verify signature. Please contact Codecov if problem continues
       Exiting...        # exit code 1, before the upload even runs
   ```
   
   With `fail_ci_if_error: true`, a flaked leg **fails** → that flag's coverage 
never uploads (Codecov shows stale) → and `notify-failure` fires spuriously. 
It's transient (sibling legs in the same run upload fine) and can hit any flag 
on any PR — observed failing the `notebook-migration-service` leg on an 
unrelated run.
   
   **Fix:** run each upload as **attempt + one retry**. The first attempt is 
`continue-on-error`, so a transient flake doesn't fail the leg; the retry (same 
inputs, `fail_ci_if_error: true`, no `continue-on-error`) runs only when the 
first failed. A *persistent* failure still fails the leg → `notify-failure`; a 
transient CLI-download/GPG flake **self-heals** on the retry. CLI signature 
verification is kept intact (no `skip_validation`).
   
   ### Any related issues, documentation, discussions?
   
   Reported on #6800. Follow-up to #6730 / #6824.
   
   ### How was this PR tested?
   
   - `workflow_run` only activates from the copy on the default branch, so this 
can't run on its own PR. YAML validated; the retry logic is gated on 
`steps.<id>.outcome == 'failure'`, so it re-runs only after a failed first 
attempt and skips cleanly when the first attempt succeeded or was itself 
skipped (e.g. `amber-integration`, which has no coverage report).
   - The `workflow_dispatch` (`run_id`) entry remains for manual post-merge 
validation.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Yes.
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to