Skip to content

fix(ci): daily-update failed on hook-completeness test for fresh newcomers - #14

Merged
jammyfu merged 1 commit into
mainfrom
fix/daily-update-hook-gap-test
Oct 31, 2026
Merged

jammyfu merged 1 commit into
mainfrom
fix/daily-update-hook-gap-test

Conversation

@jammyfu

@jammyfu jammyfu commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Cause

Run 41122642510 (schedule, Beijing 2026-10-31 04:22, head 64e0eae) failed in python3 tools/verify.py:
FAIL: test_every_ranked_new_repo_has_a_hook_or_is_listed_as_pending (test_hooks.LengthRuleTests) / AssertionError: Lists differ: ['ccch1mneyyy/dsh-Go', ...] != [] / First list contains 22 additional elements.
PR #13 added a test that asserted every ranked new repo already has a hook. The scheduled run discovers new repos first and verifies right after; CI has no model key (CURSOR_API_KEY not set: translation will be skipped.), so fresh repos never have hooks, the test failed and nothing was committed. Earlier runs (before #13, 18:31Z) passed.

Fix (tests only, no data/translation/GEO/⚠ changes)

  • tests/test_hooks.py: removed the live-data completeness assertion (its own docstring said "informational"). Added regression tests: a brand-new newcomer without hook/translation renders in all five languages with the original text, is listed by hook_gaps; and the old assertion cannot come back. Gaps print as a note.
  • docs/project-governance/CHANGELOG.md: entry.

Verification

python3 tools/verify.py -> 201 tests OK, All verification commands passed.

Not merged. Needs a merge to main to take effect, so no manual workflow trigger.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-31T04:52:34.168771Z d742c58 PR opened
ℹ️ 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 review" or "@codex security review".

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: d742c58384

ℹ️ 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 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 address that feedback".

Comment thread tests/test_hooks.py
Comment on lines +86 to +87
fresh = dict(block["items"][0], name="brand-new/never-seen", repo_id=987654321,
description="A brand new repo that no hook or translation has seen yet.")

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 Build the newcomer fixture independently of live search results

If the AI search returns no qualifying repositories or all its queries fail, tools/newcomers.py::discover_category legitimately produces items=[], but this new test raises IndexError while constructing its fixture. The daily-update workflow runs verification after discovery and before committing, so an empty AI board now prevents updates to every other board from being committed. I reproduced the failure by supplying an empty AI items list to this test. Construct a self-contained newcomer fixture and explicitly set the test block's success state instead of copying its first live item.

Useful? React with 👍 / 👎.

@jammyfu
jammyfu merged commit a730945 into main Oct 31, 2026
1 check passed
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