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

Branch builds are no longer getting skipped in travis #7536

Closed
droazen opened this issue Oct 29, 2021 · 6 comments
Closed

Branch builds are no longer getting skipped in travis #7536

droazen opened this issue Oct 29, 2021 · 6 comments
Assignees
Labels

Comments

@droazen
Copy link
Collaborator

droazen commented Oct 29, 2021

It appears that both the "branch" and "PR" builds are always running the complete test suite in travis. We had added a check in previously to skip the "branch" builds to save on costs.

Here's an example:
#7533

@droazen
Copy link
Collaborator Author

droazen commented Oct 29, 2021

@lbergelson ^^

@lbergelson
Copy link
Member

I suspect this instance is cause by the branch being pushed and then a pr being created after a small delay. It gives the travis vms enough time to start and pass the check for "no pr exists". Then the PR is created and it starts a pr build while the original branch build is still runnning. I suspect a second push on this branch won't run the branch build again.

There's a small window of time between pushing the commit and making the pr where the branch build will be skipped entirely, but it's reasonable to get 1 branch build when you push a new branch.

It's also possible that I mangled the github key and the tests are always failing now.

@droazen
Copy link
Collaborator Author

droazen commented Oct 29, 2021

@lbergelson Here's another example of a PR that's been up a while and been through several rounds of review, and yet in the latest travis builds the branch builds are still not getting skipped:

#7511

@lbergelson
Copy link
Member

Yeah, that one is suspicious...

@lbergelson
Copy link
Member

Hmn. I'm not sure what's going on. The script seems to work locally. I've reset the api token to a new one, maybe it was messed up?

@lbergelson
Copy link
Member

@droazen I put a new github api token in and tested it here #7537. It successfully skipped. I'm not sure what went wrong but I must have messed up the token when I rotated keys.

Going to close this. Reopen if you see this again going forward. The token is set directly in travis so it propagates without a rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants