Skip to content

Conversation

@meyer9
Copy link
Collaborator

@meyer9 meyer9 commented Oct 13, 2025

No token, so this check always fails annoyingly. Disabling the upload step if missing token.

@meyer9 meyer9 force-pushed the meyer9/disable-codspeed branch from 6055746 to 2c45b63 Compare October 13, 2025 17:11
@meyer9 meyer9 marked this pull request as ready for review October 13, 2025 17:12
Copilot AI review requested due to automatic review settings October 13, 2025 17:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR disables CodSpeed benchmark uploads when the CODSPEED_TOKEN secret is not available, preventing workflow failures in the op-reth repository.

  • Adds conditional execution to the CodSpeed action based on token availability
  • Includes environment variable setup for the CODSPEED_TOKEN
  • Adds explanatory comment about op-reth lacking a CodSpeed token

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

env:
CODSPEED_TOKEN: ${{ secrets.CODSPEED_TOKEN }}
# op-reth does not have a codspeed token
if: ${{ env.CODSPEED_TOKEN != '' }}
Copy link

Copilot AI Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition should check for null/undefined values in addition to empty strings. Use if: ${{ secrets.CODSPEED_TOKEN != '' }} instead to directly reference the secret, or use if: ${{ env.CODSPEED_TOKEN }} which evaluates to false for null, undefined, or empty values.

Suggested change
if: ${{ env.CODSPEED_TOKEN != '' }}
if: ${{ secrets.CODSPEED_TOKEN != '' }}

Copilot uses AI. Check for mistakes.
@dhyaniarun1993 dhyaniarun1993 merged commit 0560e66 into unstable Oct 14, 2025
43 checks passed
@dhyaniarun1993 dhyaniarun1993 deleted the meyer9/disable-codspeed branch October 14, 2025 03:34
emhane pushed a commit that referenced this pull request Oct 20, 2025
No token, so this check always fails annoyingly. Disabling the upload
step if missing token.
meyer9 added a commit that referenced this pull request Oct 31, 2025
No token, so this check always fails annoyingly. Disabling the upload
step if missing token.
emhane pushed a commit that referenced this pull request Nov 11, 2025
No token, so this check always fails annoyingly. Disabling the upload
step if missing token.
meyer9 added a commit that referenced this pull request Nov 13, 2025
No token, so this check always fails annoyingly. Disabling the upload
step if missing token.
emhane pushed a commit that referenced this pull request Nov 18, 2025
No token, so this check always fails annoyingly. Disabling the upload
step if missing token.
emhane pushed a commit that referenced this pull request Nov 25, 2025
No token, so this check always fails annoyingly. Disabling the upload
step if missing token.
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.

3 participants