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
Support running benchmarks on multiple long-standing branches of a repository #430
Conversation
e78519b
to
20aeb70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the code seems good (bar my minor comments), but I am not able to properly test that it works.
I tried adding
{ "name": "ElectreAAS/merlin",
"branches": [ "master", "mock-without-label" ]
}to environment/development.conf, and adding commits to my mock repo, but the only thing that seems to run is the master branch.
What would be a better way to test it?
pipeline/db/migrations/20230406110951_add_pull_base_column.up.sql
Outdated
Show resolved
Hide resolved
This is how I tested it, too. Did you restart the containers after changing the |
This is how I tested it, too. Did you restart the containers after changing the EDIT: I see that your commits on the branch are just about 2 weeks old, but also I see there's a "Pending" status from your local |
|
Thanks for the verification. With more recent commits everything runs fine indeed! |
Previously, we filtered out the branches which don't have the required label, before starting the benchmarking run. But, this meant that the metadata for the branch is already saved to the DB and displayed in the UI. This commit changes the filtering to be run before the metadata for the benchmark run is setup.
This would be useful for benchmarking more than one long running branches of a repository, for instance, the `5.0` and `trunk` branches of ocaml/ocaml.
|
There was a CI failure that vanished when I rebuilt it, I have no clue what caused it. |
|
Thanks for the careful review and merge, @ElectreAAS ! |
Previously, we only ran the benchmarks on the default branch of a repository, apart from the pull requests. This PR adds support to run benchmarks on multiple branches of a repository, not just the default branch.
NOTE: This also includes the change in #428. That PR can either be merged before this one, or simply closed, in favor of this.
Closes #426