Skip to content

Conversation

@xlc
Copy link
Member

@xlc xlc commented Oct 31, 2025

closes #459

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

The script for updating environment variables has an inconsistency. When updating known-good block numbers for CI, it uses a fallback if a network call fails. However, when updating the local .env file, this fallback logic has been removed, which could lead to missing block numbers during local development if a network call fails. All other changes look good.

Comment on lines 109 to 112
} catch (error: any) {
console.error(`Failed to fetch block number for ${name}: ${error.message}`)
return null
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The fallback logic for when a block number cannot be fetched has been removed for the local development case (when isUpdateKnownGood is false). The previous implementation would use the existing value from the .env file, but the new code returns null, causing the variable to be omitted. This is inconsistent with the behavior for the isUpdateKnownGood case, which retains the fallback logic (lines 63-70). Please restore the fallback behavior for the local development environment to prevent accidentally losing block numbers if a network request fails.

@xlc xlc merged commit c17c9a3 into master Nov 3, 2025
112 checks passed
@xlc xlc deleted the breakdown branch November 3, 2025 07:56
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.

partition update known good / update snapshot CI

2 participants