Skip to content

chore: Fix wildcards in GitHub Actions workflows #18172

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

Merged
merged 1 commit into from
Apr 25, 2025
Merged

Conversation

SyntaxColoring
Copy link
Contributor

Overview

This fixes what I suspect are mistakes in our GitHub Actions workflows, which, in edge cases, could cause problems like workflows not triggering when they should.

For instance:

  • * looks like it's meant to match everything, but for that, we really want **, otherwise we fail to match things that contain slashes.
  • dir1/**/*.py looks like it's meant to match any .py file under dir1/, but I think it will only match things like dir1/dir2/file.py and dir1/dir2/dir3/file.py, and fail to match things like dir1/file.py

Test Plan and Hands on Testing

It's difficult to test this. I've tried to confirm my suspicions about how foo/**/*.py works by pushing to a test branch and watching GitHub not trigger a workflow, but it's possible that there are other reasons that GitHub didn't trigger it.

Review requests

Does this seem right, given the documentation and any anecdotal experience you have with GitHub wildcards?

Risk assessment

Medium.

@SyntaxColoring SyntaxColoring requested a review from a team as a code owner April 24, 2025 20:05
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.24%. Comparing base (3594559) to head (4bbe114).
Report is 12 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             edge   #18172       +/-   ##
===========================================
- Coverage   57.95%   25.24%   -32.71%     
===========================================
  Files        3035     3100       +65     
  Lines      252734   257210     +4476     
  Branches    27717    19966     -7751     
===========================================
- Hits       146475    64945    -81530     
- Misses     106074   192245    +86171     
+ Partials      185       20      -165     
Flag Coverage Δ
components 4.55% <ø> (-0.12%) ⬇️
hardware 55.77% <ø> (?)

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

see 2264 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Yup that makes sense to me! Would explain a lot

@SyntaxColoring SyntaxColoring merged commit 3c8b7fa into edge Apr 25, 2025
40 of 41 checks passed
@SyntaxColoring SyntaxColoring deleted the wildcard_fixes branch April 25, 2025 15:12
SyntaxColoring added a commit to Opentrons/buildroot that referenced this pull request May 16, 2025
Same thing as Opentrons/opentrons#18172.

Some existing wildcards in our GitHub actions are not matching the `/` character, and I think that's causing CI to not run on Dependabot PRs like #244 because they have `/` in the branch name.
ddcc4 pushed a commit that referenced this pull request May 16, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 16, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 16, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 16, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 16, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 16, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 20, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 20, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 22, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 23, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 24, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
ddcc4 pushed a commit that referenced this pull request May 24, 2025
This fixes what I suspect are mistakes in our GitHub Actions workflows,
which, in edge cases, could cause problems like workflows not triggering
when they should.

For instance:

`*` looks like it's meant to match everything, but for that, we really
want `**`, otherwise we fail to match things that contain slashes.

`dir1/**/*.py` looks like it's meant to match any `.py` file under
`dir1/`, but I think it will only match things like `dir1/dir2/file.py`
and `dir1/dir2/dir3/file.py`, and fail to match things like
`dir1/file.py`

(cherry picked from commit 3c8b7fa)
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.

2 participants