Fix test: Remove expectation for isCompact from MapPlaylistOvertime test - #5467
Conversation
Remove expectation for isCompact from the first test since we're only testing overtime here, so it has no place. The other two tests don't check isCompact either and rightfully so. The check caused errors because isCompact can sometimes be true, it's not always undefined. But moreover the check isn't needed here.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. WalkthroughThe FFA lobby test removes the assertion for ChangesFFA test update
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The test now avoids an invalid compact-map expectation without removing coverage for overtime behavior. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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. One check leaves the FFA scene Comment |
🤖 Claude Code ReviewVerdict: Approve — no issues found. Findings: 0 critical, 0 major, 0 minor. This PR removes a single non-deterministic assertion ( Checked for:
No inline comments to post. |
|
Please ignore the error from Deploy: the branch deployment is succesfully up and running. And the error doesn't come from this PR's contents. I've made a comment about it here: https://discord.com/channels/1359946986937258015/1381299816612495360/1549790538666872853 But again this Deploy error can be safely ignored! |
## Problem A mixed-case branch name (`Fix-MapPlaylistOvertime-testerror`, [run 35103862692](https://github.com/openfrontio/OpenFrontIO/actions/runs/35103862692/job/104819884804?pr=5467), PR #5467) became a mixed-case subdomain, because the sanitizing step in `deploy.yml` and the check in `deploy.sh` both allow `A-Z`. `update.sh` then sent `site=Fix-MapPlaylistOvertime-testerror.openfront.dev` to `/cluster/latest`. The API's site schema only accepts lowercase (`^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$`), so it returned `400 Invalid site`, and with `CLUSTER_STATE_SOURCE=api` the deploy failed. The container was up, but server check-in sends the same site name and is rejected too. Browsers also lowercase the page host, so the preview couldn't list its server either way. ## Fix - `deploy.yml`: lowercase the raw subdomain before the rest of the sanitizing. It's treated as a canonical mapping (like `_` and `/` → `-`), so it doesn't add the collision digest: `Fix-Foo` deploys to `fix-foo`, the same host DNS would resolve anyway. - `deploy.sh`: lowercase `SUBDOMAIN` too (matching how `HOST` is already handled) so manual runs are covered, and tighten the label check to `[a-z0-9-]`. ## Testing - Ran the new sanitizing pipeline locally and under GNU `tr` (ubuntu:24.04): `Fix-MapPlaylistOvertime-testerror` → `fix-mapplaylistovertime-testerror`; `Fix/Map_X` → `fix-map-x`; `Feat/Héllo_x` still drops the `é` and gets the digest. - `bash -n deploy.sh`. After merge, affected PR branches need a rebase/re-run. They will move to the lowercase host, and the old uppercase container stays on the staging box until someone removes it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
🤖 Claude Code ReviewVerdict: LGTM — no issues found. Findings: 0 blocking, 0 major, 0 minor. This PR removes a single flaky assertion ( Verified:
No issues found. Checked for bugs and CLAUDE.md compliance. |
Description:
Remove expectation for isCompact from the first test since we're only testing overtime here, so it has no place. The other two tests don't check isCompact either and rightfully so.
The check caused errors because isCompact can sometimes be true, it's not always undefined. But moreover the check isn't needed here.
Error example: https://github.com/openfrontio/OpenFrontIO/actions/runs/35058498685/job/104673606508?pr=5461
Reported here: https://discord.com/channels/1359946986937258015/1450487807242932336/1549654553735991316
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
tryout33