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

chore: update all github actions versions and switch to github runners #34708

Merged
merged 10 commits into from
Jun 3, 2024

Conversation

irtazaakram
Copy link
Member

@irtazaakram irtazaakram commented May 7, 2024

  • Resolves Update GitHub Actions  #34748
  • Merged the unit-test workflows so there is only one unit-test workflow and it uses the github runners to run its tests.

@irtazaakram
Copy link
Member Author

#33942 (comment)

upload-artifact@v4 and download-artifact@v4 includes breaking changes. https://github.com/actions/upload-artifact/releases/tag/v4.0.0
Migration doc https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md

@irtazaakram
Copy link
Member Author

Needs to updated GitHub Actions runner

Current version: https://github.com/actions/runner/releases/tag/v2.288.1
Screenshot 2024-05-07 at 4 05 47 PM

Support for Node20 was added in https://github.com/actions/runner/releases/tag/v2.315.0
Latest version of runner https://github.com/actions/runner/releases/tag/v2.316.1

new GitHub Actions require runner to updated to support node 20.

@irtazaakram irtazaakram force-pushed the update-github-actions branch 2 times, most recently from fc5513e to d15d8a6 Compare May 22, 2024 05:31
@irtazaakram irtazaakram marked this pull request as ready for review May 22, 2024 06:10
@@ -9,20 +9,21 @@ on:
jobs:
collect-and-verify:
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
runs-on: [ edx-platform-runner ]
runs-on: [ "ubuntu-20.04" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Will be great if we could centralize the ubuntu versions into a constants file or in some open-edx-setup-action

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the very least, we should make it a matrix setting and pull it up to the top of this file so we can change it in one place and get all the sets to change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to setup env variable here https://github.com/openedx/edx-platform/actions/runs/9281219260/workflow but gha doesn't allow this syntax.
https://docs.github.com/en/actions/using-workflows/reusing-workflows seems to be the way here for DRY it.

.github/workflows/unit-tests.yml Outdated Show resolved Hide resolved
@irtazaakram
Copy link
Member Author

Test run on fork: irtazaakram#6

@irtazaakram irtazaakram requested review from feanil May 27, 2024 09:17
.github/workflows/unit-tests.yml Outdated Show resolved Hide resolved
@@ -9,20 +9,21 @@ on:
jobs:
collect-and-verify:
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
runs-on: [ edx-platform-runner ]
runs-on: [ "ubuntu-20.04" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the very least, we should make it a matrix setting and pull it up to the top of this file so we can change it in one place and get all the sets to change.

@feanil feanil force-pushed the update-github-actions branch from 6ac68d8 to 11e8b8b Compare May 30, 2024 19:00
@feanil
Copy link
Contributor

feanil commented May 30, 2024

Rebased to fix a conflict.

@feanil feanil closed this May 30, 2024
@feanil feanil reopened this May 30, 2024
@feanil feanil changed the title chore: update all github actions chore: update all github actions versions and switch to github runners May 30, 2024
@feanil feanil merged commit b93d3ac into openedx:master Jun 3, 2024
76 of 89 checks passed
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@irtazaakram irtazaakram deleted the update-github-actions branch June 24, 2024 11:01
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.

Update GitHub Actions
4 participants