Skip to content

chore: keep nox session weights complete - #904

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
abhi/codex/issue-900-pr3-shard-weights
Oct 9, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
abhi/codex/issue-900-pr3-shard-weights

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Reconcile session weights with the current nox -l session list and give every current session an explicit weight.
  • Fail checks and updates when measurements are empty or omit shard sessions.
  • Measure on Ubuntu 24.04 with Python 3.12 so Python 3.10-only skips do not hide sessions.

Validation

  • Synthetic complete measurement check and update passed for all 98 current sessions.
  • Empty measurement check and update correctly exited nonzero.
  • python -m py_compile py/scripts/check-session-weights.py
  • git diff --check

ref #900 (PR 3).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T16:00:09.308775Z 7e95b8b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f91a54cde3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment on lines +148 to 149
known_sessions = current_sessions - EXCLUDED_SESSIONS
missing = sorted(known_sessions - set(measured))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Detect stale weights before declaring success

When a nox session is removed or renamed, known_sessions now comes only from the current nox -l output, so the obsolete key in session-weights.json is never included in missing. If all remaining measurements are within tolerance, the checker exits successfully and the workflow never calls --update, making the pruning logic in update_weights() unreachable for exactly this case and leaving stale weights indefinitely. Compare the stored non-meta keys against current_sessions and fail when obsolete entries exist.

Useful? React with 👍 / 👎.

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title fix(ci): keep nox session weights complete chore: keep nox session weights complete Oct 9, 2026
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 3b215ca into main Oct 9, 2026
83 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/codex/issue-900-pr3-shard-weights branch October 9, 2026 16:08
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.

1 participant