Commit 1680dd1
authored
ci(benchmarks): run nightly benchmark and create PR (#2915)
## Linked Issues/PRs
<!-- List of related issues/PRs -->
closes #2915
## Description
<!-- List of detailed changes -->
This pull request introduces a new GitHub workflow to automate the
nightly gas costs benchmark process. The workflow schedules a nightly
benchmark run, processes the results, and optionally creates a pull
request with the updated benchmark data.
Key changes include:
* **New Workflow Addition:**
* Added a new GitHub Actions workflow named `Nightly Gas Costs
Benchmark` to `.github/workflows/nightly-benchmark.yml`. This workflow
is scheduled to run nightly and can be manually triggered.
* **Environment Variables:**
* Defined environment variables such as `GIT_REPO`, `GIT_REPO_NAME`,
`CARGO_TERM_COLOR`, `RUST_VERSION`, and `CONSENSUS_PARAMETERS_VERSION`
for use within the workflow.
* **Benchmark Job:**
* Created a `benchmark` job that runs on the `fuelcore-benchmark`
runner, checks out the repository, installs the Rust toolchain, caches
dependencies, and runs the benchmarks. The results are processed and
stored in `nightly_benchmarks.json`.
* **Pull Request Creation:**
* Added a `create_pr` job that depends on the `benchmark` job. If
triggered, it updates the `chain_config.json` file with the new
benchmark results, commits the changes, and creates a pull request.1 parent 6fcdd94 commit 1680dd1
1 file changed
Lines changed: 70 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
0 commit comments