Skip to content

Conversation

@arielswalker
Copy link
Contributor

Checklist (Please check before submitting)

Describe the contribution
Fixes #858

Testing performed
Build, Test, and Run [OMIT_DEPRECATED = false] Run 1 - Cache Key: deprecated-build-16353548187-1-release
Build, Test, and Run [OMIT_DEPRECATED = false] Run 2 - Cache Key: deprecated-build-16353548187-2-release
Build, Test, and Run [OMIT_DEPRECATED = true] Run 1 - Cache Key: build-16353548197-1-release
Build, Test, and Run [OMIT_DEPRECATED = true] Run 2 - Cache Key: build-16353548197-2-release
cFS Documentation and Guides Run 1 - Cache Key: cfs-doc-16353548233-1
cFS Documentation and Guides Run 2 - Cache Key: cfs-doc-16353548233-2

Expected behavior changes
github.run_number uses a unique number per workflow file, but it does not change on re-runs of the same workflow run and is not unique per run. github.run_id is a a globally unique identifier for a specific run of a workflow. github.run_attempt increments each time a workflow is rerun. Using both github.run_id and github.run_attempt will provide a unique key for any workflow run.

System(s) tested on
GitHub Actions

Contributor Info - All information REQUIRED for consideration of pull request
Ariel Walker, MCSG TECH

@dzbaker dzbaker added the CCB:Approved Indicates code review and approval by community CCB label Jul 31, 2025
@dzbaker dzbaker merged commit 0bcf669 into nasa:main Nov 14, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code review and approval by community CCB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Unique Cache Keys for Workflow Reruns

2 participants