Skip to content
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

🐛 Fix: bump actions to prevent failing workflows #19

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

SimmonsRitchie
Copy link
Contributor

@SimmonsRitchie SimmonsRitchie commented Apr 3, 2024

What's this PR do?

Upgrades helper actions in our Github workflows to the latest versions: checkout (v4), setup-python (v5) and cache actions (v4).

Why are we doing this?

This attempts to fix a mysterious dependency bug in our Github workflows. Although they were previously working fine, they suddenly stopped working. The first failure for the Archive job was Tue, 26 Mar 2024, but the last PR was Wed Mar 20. The Archive action ran several times after Mar 20 without failure.

Without doing an extensive deep dive, my guess is that something changed in either the Github-hosted task runner or one of our sub dependencies. Initially, I thought the issue might relate to these warnings about the Node env being used in the Github taskrunner:

image

Our versions of checkout, setup-python and cache actions in each of our workflows is quite dated at this point. Bumping the versions appears to have fixed things but it's hard to be certain because my new PR caused the Github task runner cache to refresh. Based on my experience with other city-scraper repos that have suffered dependency issues, simply clearing the Github taskrunner cache can sometimes (temporarily) fix the issue. In retrospect, I should have cleared the cache first and re-ran the jobs to see if they still failed.

Steps to manually test

N/A

Are there any smells or added technical debt to note?

See the above notes. It's a bit unclear if this fixes the underlying issue. We'll keep an eye on it.

Bumps checkout, setup-python and cache actions to latest
@SimmonsRitchie SimmonsRitchie marked this pull request as ready for review April 3, 2024 16:06
v4 of the checkout action changes the way branches are handled. Including this arg ensures that the scrapy validate step doesn't fail when it attempts to. checkout the "main" branch. Without this arg, the workflow can't find the "main" branch.
@SimmonsRitchie SimmonsRitchie changed the title Fix: failing workflows 🐛 Fix: upgrade actions to failing workflows Apr 3, 2024
@SimmonsRitchie SimmonsRitchie changed the title 🐛 Fix: upgrade actions to failing workflows 🐛 Fix: bump actions to prevent failing workflows Apr 3, 2024
@SimmonsRitchie SimmonsRitchie merged commit 1379da1 into main Apr 3, 2024
2 checks passed
@SimmonsRitchie SimmonsRitchie deleted the fix-action branch April 3, 2024 16:14
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.

1 participant