-
Notifications
You must be signed in to change notification settings - Fork 710
Fix #9815: fix caching for quick-jobs CI (XDG, cache keys) #9845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e916cb5
Fix #9815: switch quick-jobs CI to XDG
andreasabel c209a82
CI quick-jobs: use preinstalled GHC and Cabal
andreasabel e600087
Makefile: remove dead target 'lexer', use '.PHONY' systematically
andreasabel 56426e4
CI "Meta checks": correct cache key
andreasabel 9a311bd
CI "Meta checks": print Haskell versions
andreasabel ba6f6ff
CI "Doctest Cabal": daily refresh of cache
andreasabel 5949e3f
CI "Check Field Syntax Reference": correct cache key
andreasabel 947860a
Update generated Cabal/src/Distribution/Simple/Build/Macros/Z.hs
andreasabel 5aa8afd
CI quick-jobs: entirely wipe ghcup directory rights workaround
andreasabel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, that's the next level... I'm always worried about putting too much intelligence in the action code. Could this be a Makefile target too? (I see you made some updates to the Makefile).
I know, I'm stretching it, but some specification of what's supposed to happen inside the "quick jobs" workflow may help in future maintenance... Maybe a comment at the top of the file if not a whole section in CONTRIBUTING.md... OTOH it's always impossible to keep it up to date with the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I am aware that I am breaking the abstraction that the
Makefile
should offer, but I didn't see a way around it.What I need here is a cache-key for some specific makefile goal(s), like e.g
spdx templates
. Putting this computation into the Makefile e.g. asspdx-templates-cache-hash
would also be a bit awkward, and, I would need to invokehashfiles
from the Makefile (although this should be solvable).I think we should document which goals of the Makefiles are in which workflows, so that these are changed in sync. E.g. the
lexer
goal was removed from the Makefile in #8980 but not from the workflow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Future work then... Maybe a ticket.