Closed alexkuc closed 3 months ago
@tn3rb I guess I'll need to prioritise this during this month as this repo relies on v1:
Npm packages @actions/upload-artifact and @actions/upload-artifact are not in use
In case you come across the following confusion, here's the explanation.
This repo uses package @actions/artifact
which includes @actions/upload-artifact
and @actions/download-artifact
. If you read the description of v2 What's New it clearly indicates that @actions/upload-artifact
and @actions/download-artifact
are part of @actions/artifact
. Digging a bit into the source code of @actions/artifact
, we can find the following link. In terms of how one package pulls the other, I believe they don't. Instead they rely on local symlink.
According to the breaking changes of @actions/artifact@v2
, there is nothing to be done as
Running
yarn upgrade @actions/artifact@latest
resulted in the following error
error @octokit/request-error@5.1.0: The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.20.2"
These packages explicitly require Node v16. Inside each package run yarn all
as a smoke test (prior to this ran yarn
inside root to update dependencies):
After upgrading package @action/artifact
to latest (v2), package @eventespresso/e2e-tests
gave an error, needs code updating
Now command yarn all
passes for all packages. Need to check if the artifact is actually getting saved now.
https://github.com/eventespresso/actions/issues/63#issuecomment-2146096640 is not indicative of anything. Had to re-install node_modules
after which I was able to re-create the GitHub Runner error locally.
Re-running tests locally
yarn workspace @eventespresso-actions/io all
✅ yarn workspace @eventespresso-actions/makepot all
✅ yarn workspace @eventespresso-actions/remove-files all
✅ yarn workspace @eventespresso-actions/version-bump all
✅ yarn workspace @eventespresso-actions/multi-changelog all
✅ yarn workspace @eventespresso-actions/utils all
✅ yarn workspace @eventespresso-actions/auto-pr-labeler all
✅ yarn workspace @eventespresso-actions/json-prop all
✅ yarn workspace @eventespresso-actions/e2e-tests all
✅ ~Serious bug detected with yarn~
Edit: workaround employed, see comment below
Need to make a plan A-B-C of my options to resolve this issue. Don't want to waste time by brute forcing the issue.
Going to go over the hyperlink above and tried the suggested fixes and/or workarounds
Oh! Seems like the fix/workaround with resolutions have worked!
Need to deliberately fail E2E test to check that artifact generation is okay and that artifact is not mangled i.e. viewable via tracer viewer
Edit: all good - https://github.com/eventespresso/test-workflow/actions/runs/9465950949
Edit2: the link above does not contain deprecation warning for artifact actions unlike e.g. here
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/