mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
17a95dac22
If we try to resolve the benchmark compare ref (which may be just
`main`), we are just looking inside the PR branch- but that may
not include the `main` SHA. i.e. it's possible to run a comparison
where the PR is slightly behind of the `main` branch, or a comparison
commit from a different branch is used.
We fix this/ and simplify the logic by resolving the SHAs directly in
the TypeScript code, instead of relying on the rather brittle Bash.
Note that current solution still works, but we sometimes may not be able
to resolve to an actual SHA- causing issues as in 864bd72cb2
PR Close #50764
Benchmarks script
This folder contains a convenience script for running benchmarks and performing comparisons. It can
be run via yarn benchmarks. See command line help for possible commands.
The benchmark script is used in conjunction with the benchmark compare GitHub actions workflow, allowing organization members to initiate a benchmark comparison via a GitHub comment in a PR.