Skip to content

Modernize CodSpeed integration with OIDC authentication#16

Open
codspeed-hq[bot] wants to merge 1 commit into
mainfrom
setup-codspeed-1768069071346
Open

Modernize CodSpeed integration with OIDC authentication#16
codspeed-hq[bot] wants to merge 1 commit into
mainfrom
setup-codspeed-1768069071346

Conversation

@codspeed-hq

@codspeed-hq codspeed-hq Bot commented Jan 10, 2026

Copy link
Copy Markdown

Summary

This PR modernizes the CodSpeed integration by migrating from legacy token-based authentication to the recommended OpenID Connect (OIDC) authentication method.

Key Changes

  • OIDC Authentication: Migrated from token parameter to OIDC-based authentication using id-token: write permissions
  • Simulation Mode: Changed from instrumentation mode to simulation mode for more consistent and accurate performance measurements
  • Python Version: Updated benchmark workflow to use Python 3.14 (from 3.13) to align with the project's latest supported version
  • Badge Enhancement: Added utm_source parameter to the CodSpeed badge URL for better tracking

Benefits

  • Improved Security: OIDC authentication is more secure and doesn't require managing secret tokens
  • Better Performance Data: Simulation mode provides more consistent measurements by isolating from environmental noise
  • Future-proof: Uses the latest recommended practices from CodSpeed documentation

Test Plan

  • Verify that the Performance workflow runs successfully on this PR
  • Confirm that benchmark results are reported to CodSpeed
  • Check that the CodSpeed badge updates correctly
  • Ensure all existing benchmarks continue to work as expected

The workflow will automatically run when this PR is created and should successfully report benchmark results to CodSpeed using the new OIDC authentication method.

- Migrate from token-based to OIDC authentication (OpenID Connect)
- Update workflow to use simulation mode for more accurate measurements
- Add proper permissions for id-token write access
- Update Python version from 3.13 to 3.14 in benchmark workflow
- Add utm_source parameter to CodSpeed badge URL for tracking
- Remove deprecated token authentication
@codspeed-hq

codspeed-hq Bot commented Jan 10, 2026

Copy link
Copy Markdown
Author

CodSpeed Performance Report

Congrats! CodSpeed is installed 🎉

🆕 18 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

@codspeed-hq codspeed-hq Bot marked this pull request as ready for review January 10, 2026 18:27
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