Skip to content

Conversation

@stas-sbi
Copy link
Contributor

@stas-sbi stas-sbi commented Feb 25, 2025

Make sure total reward weight doesn't change unless explicitly allowed by adding [allow-total-reward-weight-change] to the last commit message

Example outputs:

# Change disallowed
ERROR: Total reward weight diff for configs/DevNet/approved-sv-id-values.yaml is: 2. The change is not allowed. Add [allow-total-reward-weight-change] to the commit message to override.
INFO: Total reward weight diff for configs/MainNet/approved-sv-id-values.yaml is: 0.
INFO: Total reward weight diff for configs/TestNet/approved-sv-id-values.yaml is: 0.
# Change allowed
INFO: Total reward weight diff for configs/DevNet/approved-sv-id-values.yaml is: 2. The change is allowed.
INFO: Total reward weight diff for configs/MainNet/approved-sv-id-values.yaml is: 0.
INFO: Total reward weight diff for configs/TestNet/approved-sv-id-values.yaml is: 0.

@stas-sbi stas-sbi force-pushed the stas/make_sure_total_weight_doesnt_change_unless_expicitly_allowed branch 17 times, most recently from 39b1f34 to 377a223 Compare February 25, 2025 06:07
@stas-sbi stas-sbi marked this pull request as ready for review February 25, 2025 06:08
@stas-sbi stas-sbi requested a review from a team as a code owner February 25, 2025 06:08
Make sure total reward weight doesn't change unless explicitly allowed
by adding [allow-total-reward-weight-change] to the last commit message

Example outputs:

    # Change disallowed
    ERROR: Total reward weight diff for configs/DevNet/approved-sv-id-values.yaml is: 2. The change is not allowed. Add [allow-total-reward-weight-change] to the commit message to override.
    INFO: Total reward weight diff for configs/MainNet/approved-sv-id-values.yaml is: 0.
    INFO: Total reward weight diff for configs/TestNet/approved-sv-id-values.yaml is: 0.

    # Change allowed
    INFO: Total reward weight diff for configs/DevNet/approved-sv-id-values.yaml is: 2. The change is allowed.
    INFO: Total reward weight diff for configs/MainNet/approved-sv-id-values.yaml is: 0.
    INFO: Total reward weight diff for configs/TestNet/approved-sv-id-values.yaml is: 0.
@stas-sbi stas-sbi force-pushed the stas/make_sure_total_weight_doesnt_change_unless_expicitly_allowed branch from 377a223 to 007b8fc Compare February 25, 2025 06:12
@stas-sbi
Copy link
Contributor Author

We could also add a check against the actual weights when this information is available on some public endpoint to be accessed from GitHub Actions.

Copy link
Contributor

@isegall-da isegall-da left a comment

Choose a reason for hiding this comment

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

Nice, thank you

@stas-sbi stas-sbi merged commit 88c53b5 into main Feb 25, 2025
1 check passed
@stas-sbi stas-sbi deleted the stas/make_sure_total_weight_doesnt_change_unless_expicitly_allowed branch February 25, 2025 14: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.

4 participants