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

Actions fixes and using "controller" for PRs #3239

Merged
merged 2 commits into from
Nov 19, 2023

Conversation

guilherme-gm
Copy link
Member

@guilherme-gm guilherme-gm commented Oct 22, 2023

Pull Request Prelude

Changes Proposed

A few more updates for our CI in Actions.

  • Fix one issue that made pushes to master (e.g. for release) skip several tests (regression from Fixes to itemlink and fixes/improvements to CI #3238 ). Pushes unexpectedly uses the "controller" as workflow for every test, and this made some tests get the same key and cancel each other. We now have proper names for each test.

  • Updated how PR tests are run to also use "controller" so we get the same flow for direct pushes and PRs. Note that the bot will still only trigger for master (due to the "if" condition in it).

Issues addressed:

- replacing "github.workflow" replacer with a hardcoded name of the flow
  file. "github.workflow" value comes from the caller.

  When controller workflow is the one triggering, all flows will get
  this as "controller" and tests with the same matrix will conflict and
  cancel each other. Hardcoding the flow name allows all of them to run.

- use "_" as separator between matrix values instead of "-" to make it
  easier to read flow ids generated by Actions, since our matrix also
  uses "-" in its values
for reasons unknown, the controller workflow was only used by pushes,
while all workflows were triggered separately for pull requests.

now both pushes and pull requests follow the same CI flow, with some
specifics for pushes being handled with ifs
@guilherme-gm guilherme-gm marked this pull request as ready for review October 22, 2023 04:36
@4144 4144 added the hacktoberfest-accepted Easy-to-tackle issues label Oct 22, 2023
@MishimaHaruna MishimaHaruna added this to the Release v2023.11 milestone Nov 19, 2023
@MishimaHaruna MishimaHaruna merged commit 7e62e65 into HerculesWS:master Nov 19, 2023
240 of 255 checks passed
@guilherme-gm guilherme-gm deleted the ci-updates-2 branch November 19, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Easy-to-tackle issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants