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: Re-enable CI checks on release branches #27390

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Mar 4, 2024

SUMMARY

#26766 restricted some CI workflows to run specifically on the master branch. This resulted in a problem for the release branches where running CI is really important when cherry-picking fixes into the branch. This PR adds a regex to allow CI to run on push events for release branches, restoring the previous behavior.

Check filter-pattern-cheat-sheet for details about the regex. Dots don't need to be escaped.

TESTING INSTRUCTIONS

Restricted CI workflows should run only on master and branches that match the regex.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.34%. Comparing base (d2f7dec) to head (24efa91).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #27390   +/-   ##
=======================================
  Coverage   67.34%   67.34%           
=======================================
  Files        1909     1909           
  Lines       74592    74592           
  Branches     8320     8320           
=======================================
  Hits        50235    50235           
  Misses      22305    22305           
  Partials     2052     2052           
Flag Coverage Δ
mysql 77.98% <ø> (ø)
postgres 78.08% <ø> (ø)
python 78.22% <ø> (ø)
sqlite 77.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rusackas
Copy link
Member

rusackas commented Mar 5, 2024

Maybe the precommit hook isn't checking these files? The change in quotes seems unusual if so.

@mistercrunch
Copy link
Member

mistercrunch commented Mar 5, 2024

Oh I didn't think of release branches when I made the changes, but seems totally reasonable that we'd run CI for release branches.

I had to review the concurrency setting, and currently it will run CI for every "push", which I believe is desired behavior (@michael-s-molina please confirm). Note that the way it's set up + GHA mechanics, it will run CI for each push (not for each commit) and won't kill previous jobs the same way that we do on pull_request event, where a new push will kill previously running jobs. If you wanted to get CI to run for each cherry you pick you can do so by pushing after each cherry to get a CI run for each one.

Total side note here, I'd love to keep things more DRY across actions (not repeating the branch name pattern for instance, or the concurrency setting), but I don't think we're at the critical mass of complexity to justify something more dynamic just yet. It could be nice to have some sort of DSL that generates the actions more dynamically, but seems over-engineered for where we're at currently.

@mistercrunch
Copy link
Member

@rusackas I think the check-yaml pre-commit hook isn't sophisticated/opinionated like that, it just makes sure the yaml is valid, it doesn't care about how it's styled

@michael-s-molina michael-s-molina merged commit a54a24e into apache:master Mar 6, 2024
27 of 28 checks passed
@michael-s-molina michael-s-molina added v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch and removed v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch labels Mar 7, 2024
michael-s-molina added a commit that referenced this pull request Mar 7, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@mistercrunch mistercrunch added 🍒 4.0.0 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Apr 17, 2024
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
irublev pushed a commit to HighviewPower/superset that referenced this pull request Oct 29, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels github_actions Pull requests that update GitHub Actions code size/L v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch 🍒 4.0.0 🍒 4.0.1 🍒 4.0.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants