ci(benchmarks): run nightly benchmark and create PR (#2915)
## Linked Issues/PRs <!-- List of related issues/PRs --> closes https://github.com/FuelLabs/fuel-core/pull/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.
A
Aaryamann Challani committed
1680dd15a7ce30d7bb2fbfe390dcc6f1acdc80f8
Parent: 6fcdd94
Committed by GitHub <noreply@github.com>
on 4/3/2025, 5:36:38 AM