Skip to content

Conversation

@hoffie
Copy link
Member

@hoffie hoffie commented May 24, 2022

Short description of changes
The cache key calculation still tried to consume the old, no longer existing build scripts contents for Mac/Windows. This wasn't noticed as the hashFiles() function ignores missing files silently.

This caused usage of cached dependencies even when the workflow scripts had changed. As such, those changes were not visible and the build was broken. #2640 was affected by this.

Correctness has now been verified via:
for f in $(grep -Pho 'hashFiles\(\K.*(?=\))' .github/workflows/* | sed -re 's#[^a-z0-9./_ ]##g'); do [[ -f $f ]] || echo "$f doesnt exit"; done

Broken-in: #2503

CHANGELOG: (List as part of Autobuild refactorings, #2503)

Context: Fixes an issue?
#2640 (comment)

Does this change need documentation? What needs to be documented and how?

No.

Status of this Pull Request

Waiting for CI green.

What is missing until this pull request can be merged?
Reviews.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

The cache key calculation still tried to consume the old, no longer
existing build scripts contents for Mac/Windows. This wasn't noticed as
the hashFiles() function ignores missing files silently.

Correctness has now been verified via:
`for f in $(grep -Pho 'hashFiles\(\K.*(?=\))' .github/workflows/* | sed -re 's#[^a-z0-9./_ ]##g'); do [[ -f $f ]] || echo "$f doesnt exit"; done`

Broken-in: jamulussoftware#2503
@hoffie hoffie added this to the Release 3.9.0 milestone May 24, 2022
@hoffie hoffie requested a review from ann0see May 25, 2022 07:44
@hoffie hoffie merged commit 776fd58 into jamulussoftware:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants