Skip to content

Set up CodSpeed with OIDC authentication and add performance badge#1

Open
avalanche-staging[bot] wants to merge 1 commit intomainfrom
codspeed-wizard-1776365908935
Open

Set up CodSpeed with OIDC authentication and add performance badge#1
avalanche-staging[bot] wants to merge 1 commit intomainfrom
codspeed-wizard-1776365908935

Conversation

@avalanche-staging
Copy link
Copy Markdown

Summary

This PR updates the existing CodSpeed benchmarks workflow to use OIDC-based authentication and adds the CodSpeed performance badge to the README.

Changes

Workflow updates (.github/workflows/benchmarks.yml):

  • Switched from token-based authentication (secrets.CODSPEED_TOKEN) to OpenID Connect (OIDC) by adding id-token: write permission. This is the recommended authentication method and removes the need to manage a secret token.
  • Added workflow_dispatch trigger to allow CodSpeed to run backtest performance analysis for generating initial baseline data.

README (README.md):

  • Added the CodSpeed performance badge alongside existing project badges.

Existing setup

The repository already has a comprehensive benchmark suite using codspeed-divan-compat (divan) across 25 packages: base64, cksum, cp, cut, dd, df, du, expand, fold, join, ls, mv, nl, numfmt, rm, seq, shuf, sort, split, tsort, unexpand, uniq, wc, factor, and date. All benchmarks run in simulation mode via a matrix strategy.

Next steps

  • Once this PR is merged, CodSpeed will automatically run benchmarks on every push and pull request.
  • Use the workflow_dispatch trigger to generate initial baseline data if needed.
  • Performance results will be available at CodSpeed dashboard.

@avalanche-staging avalanche-staging bot marked this pull request as ready for review April 16, 2026 19:06
@avalanche-staging
Copy link
Copy Markdown
Author

avalanche-staging bot commented Apr 16, 2026

Congrats! CodSpeed is installed 🎉

🆕 142 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks


ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.


Open in CodSpeed

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/cp/cp-mv-enotsup-xattr. tests/cp/cp-mv-enotsup-xattr is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/csplit/csplit-io-err. tests/csplit/csplit-io-err is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/tail/tail-n0f. tests/tail/tail-n0f is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/tty/tty-eof (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/ls/abmon-align is no longer failing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants