Conversation
The tests that turn `admin` away created that account, although WordPress's test install already has it. Core's user factory used to return the error quietly, which left the existing `admin` in place; since [63925] it throws on failure, so both tests error. `make_account()` now gives an existing account the known password instead. See https://core.trac.wordpress.org/ticket/66111. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe SSO authentication test helper now reuses an account with the requested login, sets its password to the test password, and returns it. If no matching account exists, the helper uses the existing creation path. ChangesSSO test account setup
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The helper reuses the existing test account and resets its password; the tests roll back database changes. No material merge-blocking regression is established. 🚥 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 |
The WordPress.org SSO unit tests fail on trunk (example run):
Both tests create an
adminaccount, but WordPress's test install already has one. Core's user factory used to return that error quietly, and the tests passed with the existingadmin. Since r63925 (#66111), factories throw on failure. The suite runs against coremaster, so it broke without a change here.make_account()now gives an existing account the tests' known password instead of creating it again. The suite passes locally against coremaster(231 tests).🤖 Generated with Claude Code
Summary by CodeRabbit