Skip unreliable Baidu search verification#1006
Conversation
GitHub-hosted runners consistently reset Baidu search requests or leave them hanging until the six-hour workflow limit. This keeps the scheduled config verification red even when selectors are unchanged. Disable the Baidu live URL in the verifier while retaining its selector configuration and runtime site adapter. Other reachable search engines continue to provide live selector coverage.
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in AGENTS.md to move Baidu from the default verification checks to the optional engines list, as it may be blocked by regional or anti-bot measures. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
/gemini review |
PR Summary by QodoDisable Baidu live URL in config verifier to avoid flaky CI hangs
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
|
/agentic_review |
📝 WalkthroughWalkthroughBaidu was removed from the default search verification targets and moved to the optional engines list. The verification script documents the disabled Baidu URL and removes an obsolete header comment. ChangesSearch engine verification
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the AGENTS.md documentation to move Baidu from the default verification checks list to the optional engines list, as it may be blocked by regional or anti-bot measures. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by hy3:free · Input: 28.7K · Output: 1.7K · Cached: 98.4K |
Code Review by Qodo
1. Baidu coverage silently removed
|
| baidu: [ | ||
| /*'https://www.baidu.com/s?wd=hello'*/ | ||
| // GitHub Actions requests are reset or left hanging | ||
| ], |
There was a problem hiding this comment.
1. Baidu coverage silently removed 🐞 Bug ☼ Reliability
Baidu is no longer verified because its URL list is now empty, and the verifier treats an empty list as success (no fetches, no selector assertions, no skip notice). Since Baidu remains a runtime site adapter, selector/parser regressions for Baidu can now land without any verification signal.
Agent Prompt
## Issue description
The verifier currently skips Baidu implicitly by using an empty URL array, which removes verification coverage without reporting that Baidu was skipped.
## Issue Context
Baidu is still present in the shared `config` and is mounted by the runtime site adapter, so losing verification coverage can allow regressions to ship undetected.
## Fix Focus Areas
- .github/workflows/scripts/verify-search-engine-configs.mjs[90-114]
- .github/workflows/scripts/verify-search-engine-configs.mjs[146-185]
## Suggested fix
- Add an explicit skip mechanism (e.g., `SKIP_ENGINES=baidu` or default-skip Baidu when `process.env.GITHUB_ACTIONS` is set) rather than relying on an empty array.
- Log skipped engines (e.g., `console.log('Skipping baidu: disabled in CI')`) so the verifier output reflects reduced coverage.
- Optionally add a fixture-based Baidu check (parse a stored HTML snapshot with JSDOM) so selectors are still validated without making network calls.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Summary
Validation
Validation skipped: manual browser smoke tests; this change only affects the CI verifier and documentation, not extension runtime behavior.