Repository navigation
fix: unbreak CI (frozen lockfile), fix 3 real bugs, and run tests in CI - #81
Conversation
Pin @types/bun in the catalog and re-run bun install after changeset version. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR fixes frozen-lockfile failures by regenerating bun.lock with Bun 1.3.1, replacing the floating @types/bun catalog entry with a stable ^1.4.2 range, and updating ci:version to reinstall and write a consistent lockfile after version bumps. Reviewers should verify the generated lockfile contains only the intended resolution updates and that the revised versioning flow remains CI-safe. Sequence diagram for CI versioning and lockfile synchronizationsequenceDiagram
participant CI
participant Changesets
participant Bun
participant PackageJSON
participant BunLock
CI->>Changesets: changeset version
Changesets->>PackageJSON: Update package versions
CI->>Bun: bun update
Bun->>PackageJSON: Update dependency specifications
CI->>Bun: bun install
Bun->>BunLock: Regenerate consistent lockfile
CI->>Bun: bun install --frozen-lockfile
Bun-->>CI: Install succeeds
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Repository: macalinao/temporal-utils/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
… contract Also pin Bun from package.json in CI, cache the Bun install cache, and run tests in CI. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| with: | ||
| bun-version-file: package.json | ||
| - name: Cache Bun install cache | ||
| uses: actions/cache@v5 |
| with: | ||
| bun-version-file: package.json | ||
| - name: Cache Bun install cache | ||
| uses: actions/cache@v5 |
Summary
Master's
bun install --frozen-lockfilefails (Build/Lint, Docs, Release all die at the install step) witherror: lockfile had changes, but lockfile is frozen.Cause: the release commit fdb19d5 ran
ci:version=changeset version && bun update.bun updatebumped the root devDependency specs inpackage.jsonbut left the workspace spec strings inbun.lockstale:Lockfile/CI:
bun.lockso it matchespackage.json@types/bun: "latest"→^1.4.2; a floatinglatestre-resolves on every install and re-breaks--frozen-lockfilewhenever a new@types/bunships (it had already drifted from 1.3.14 to 1.4.2 in the lockfile)ci:versionnow ends withbun install, so a version bump always writes a lockfile consistent with the bumpedpackage.jsonpackageManager/engines→bun@1.4.2, and every workflow now pins Bun viabun-version-file: package.jsoninstead of installing whateversetup-bundefaults to (asmacalinao/codadoes). On 1.3.1oxfmt --checkalso throwsDataCloneError, so the lint step would have failed right after the install step was fixed.~/.bun/install/cachecaching, and aTeststep — no workflow ranbun test, which is why the three bugs below sat on master.Bug fixes found by running the suite:
formatTemporaldropped the month name for ISO-calendarPlainYearMonth/PlainMonthDay: CLDR has no month names underiso8601, so2023-05formatted as"2023 "and--05-15as" 15". These two types reject a formatter whose calendar differs from their own, so an ISO value is now re-expressed in the calendar the formatter resolved to; non-ISO values keep their own calendar (hebrew→"Iyar 5783").parsePlainDateTimeYYYYMMDDHHMMp("… 12:05 AM")returned noon:Its leap-year test also asserted
hour: 0, minute: 0for the input"2024/02/29 12:50 PM"— a copy-paste error, now12:50.temporal-orpc's non-ISO round-trip test serialized withtoJSON(). temporal-polyfill 1.0.3 drops[u-ca=…]fromPlainDateTime.prototype.toJSON(), although the spec defines it astoString({ calendarName: "auto" }); the test now serializes explicitly so it checks the contract against the string a compliant runtime sends. No production code change — the emittedpatternandparsealready handle the annotation.bun install --frozen-lockfile,bun run build,bun run lint,bun run test(217 pass), andbun run typedocall pass locally on bun 1.4.2.Link to Devin session: https://app.devin.ai/sessions/501e23215c264ebabb22c082a83d092f
Open in Devin Desktop: https://app.devin.ai/desktop/session/501e23215c264ebabb22c082a83d092f?variant=devin
Requested by: @macalinao
Summary by Sourcery
Stabilize Bun-based CI and correct Temporal formatting and 12-hour parsing edge cases.
Bug Fixes:
Enhancements:
Build:
CI:
Tests: