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

CI doesn't run against updated master branch #1108

Closed
jameshadfield opened this issue May 5, 2020 · 3 comments
Closed

CI doesn't run against updated master branch #1108

jameshadfield opened this issue May 5, 2020 · 3 comments
Labels
good first issue A relatively isolated issue appropriate for first-time contributors please take this issue

Comments

@jameshadfield
Copy link
Member

jameshadfield commented May 5, 2020

The GitHub CI should run tests against a merge of the PRs branch into master, via the actions/checkout@v2 module with default settings (docs here, code here).

PR #1087 failed the bundlesize CI

FAIL  ./dist/auspice.bundle.js: 194.2KB > maxSize 180KB (gzip) 

I decided to update the allowed bundle sizes to 200KB and pushed this change to master via 90d91e9 (I did not touch this PR). I then manually triggered "re-run jobs", however the CI continued to fail using the "old" limits (180KB). I merged it anyway, and the master branch CI passed as expected.

The actual checkout command (via the CI logs, link above) is /usr/bin/git checkout --progress --force -B svg-in-md refs/remotes/origin/svg-in-md and doesn't seem to include a merge into master, however other PRs have behaved as if they are running the CI on a merge of the PR into master (or vice versa).

  1. Can we confirm that the CI on a PR is being run on a merge of the PR into master?
  2. When master has been updated, how can I re-trigger the CI to run and include the new changes present in master?
@jameshadfield jameshadfield added please take this issue good first issue A relatively isolated issue appropriate for first-time contributors labels May 5, 2020
@ldosse
Copy link

ldosse commented Jun 5, 2020

Hello! I would like to help out with this issue but I am not sure I get it (also, first-time contributor).

My understanding of the issue is that your PR didn't catch the new changes on the Master. And since the CI runs on the PR branch, it used the old values.

Do you think a git pull from Master into the PR branch can be done first before running the tests or in case the CI fails? Alternatively, I am thinking maybe a cherry-pick to the PR branch would do the same thing but might be manual.

@sinloes
Copy link

sinloes commented Jun 16, 2020

@jameshadfield I would also like to help with this as part of a school project. Where exactly do I start with something like this? Do I make a pull request?

@victorlin
Copy link
Member

CI now runs on the GitHub Actions workflow's pull_request trigger, which does a merge with master before running.

pull_request:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A relatively isolated issue appropriate for first-time contributors please take this issue
Projects
None yet
Development

No branches or pull requests

4 participants