Skip to content

Release prep: 10.0.0-beta.1 - #50

Open
krassx wants to merge 4 commits into
mainfrom
chore/release-10.0.0-beta.1
Open

krassx wants to merge 4 commits into
mainfrom
chore/release-10.0.0-beta.1

Conversation

@krassx

@krassx krassx commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Moves both packages from 10.0.0-dev.1 to 10.0.0-beta.1 (decision: a beta first, stable 10.0.0 after the soak). Nothing publishes or tags.

  • Version in pubspec.yaml (core and feedback), the feedback package's bugsee_flutter lower bound, lib/src/wrapper_identity.dart, BGSFlutterWrapper.m, feedback_version.dart (compared by the drift guards).
  • Both CHANGELOG.md newest entries are 10.0.0-beta.1; READMEs, the migration guide, PLAN.md and CLAUDE.md name it. Measured evidence in doc/verification.md and the harness test samples keep 10.0.0-dev.1: that is the version they were measured at.
  • Checked locally on Flutter 3.50.0: flutter analyze, flutter test (1404 tests), format; pub publish --dry-run shows only the dirty-tree warning of the uncommitted tree.
  • Not in this PR (follow-up): the nextgen branch references (Dependabot target-branch, native-pins.yml ref, CI.md, README git ref) now that main holds the rewrite.

Publishing (core first, then feedback, then tag v10.0.0-beta.1) stays a manual maintainer step: PLAN.md, "Release checklist".

🤖 Generated with Claude Code

https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0bedce58-c4c9-485a-853d-f7ae531bc947
Commits

Reviewing files that changed from the base of the PR and between fb3c750 and 7c8e1c1.

Files selected for processing: 21

  • .claude/CLAUDE.md
  • .github/CI.md
  • .github/workflows/release.yml
  • CHANGELOG.md
  • PLAN.md
  • README.md
  • doc/design-rules.md
  • doc/migration-from-9x.md
  • ios/bugsee_flutter/Sources/bugsee_flutter_wrapper/BGSFlutterWrapper.m
  • lib/src/wrapper_identity.dart
  • packages/bugsee_flutter_feedback/CHANGELOG.md
  • packages/bugsee_flutter_feedback/README.md
  • packages/bugsee_flutter_feedback/lib/src/feedback_version.dart
  • packages/bugsee_flutter_feedback/pubspec.yaml
  • pubspec.yaml
  • scripts/check_release.sh
  • scripts/pub_dev_status.sh
  • scripts/publish_feedback.sh
  • test/feedback_package_drift_test.dart
  • test/native_versions_test.dart
  • test/release_scripts_test.dart
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 31s —— View job


Review of PR #50: Release prep 10.0.0-beta.1

I found no real bugs in this PR, so there are no inline comments. The change is a mechanical version bump. I read the whole diff and grepped the repo for leftover 10.0.0-dev strings, but I did not run any tests (Flutter and Dart aren't installed on this runner).

What I checked

  • Every version copy moved together.
    • Dart: pubspec.yaml, lib/src/wrapper_identity.dart.
    • iOS: BGSFlutterWrapper.m.
    • Feedback package: pubspec.yaml, feedback_version.dart, and its bugsee_flutter lower bound >=10.0.0-beta.1 <10.1.0.
    • These are the copies that wrapper_identity_test, feedback_package_drift_test and native_versions_test compare.
  • Android needs no edit. android/build.gradle reads version: from pubspec.yaml with the regex (\S+), which accepts -beta.1.
  • Feedback runtime check still works. isCompatibleCore accepts any -pre suffix, so 10.0.0-beta.1 against 10.0.0-beta.1 passes.
  • Changelogs line up with the pubspecs. The newest entry in both CHANGELOG.md files is 10.0.0-beta.1, as the guard requires.
  • No lockfile churn. The root pubspec.lock has no bugsee_flutter entries.
  • Remaining dev.1 strings are intentional. doc/verification.md and the device-harness test samples record the version the evidence was measured at, and the PR description says so. The one in PLAN.md item 4 is the "(was 10.0.0-dev.1)" note. .claude/CLAUDE.md is the only other place the old version appeared, and the PR updates it.
  • feedback_test.dart:228. isCompatibleCore('10.0.0-dev.1', '10.0.3') is a test of the pre-release parsing, not a version pin, so it needs no change.

Low-severity notes (not blocking)

  • P3: semver ordering. Under semver, 10.0.0-beta.1 sorts below 10.0.0-dev.1, because beta comes before dev alphabetically. This only matters if 10.0.0-dev.1 was ever published or tagged. PLAN.md says it was not, so I'd skip it. Worth a quick look at pub.dev and the tag list before publishing.
  • Wording. CHANGELOG.md and README.md still say "not published yet". That is correct until the manual publish. Remember to drop it, along with the ref: nextgen git dependency in README.md:42, in the post-publish follow-up the PR already mentions.

Summary

  1. Overall risk: Low.
  2. Merge recommendation: Approve and merge, once CI is green (flutter analyze, flutter test including the drift guards).
  3. Most important issues to fix: none. Optionally confirm no 10.0.0-dev.* was ever pushed to pub.dev or tagged.
  4. Positives: every repeated version string is covered by a drift guard. The PR keeps measured evidence at the version it was measured at. The scope is clear, and publishing and tagging are left as a manual step.
    | Branch: chore/release-10.0.0-beta.1

krassx and others added 4 commits November 23, 2026 19:16
release.yml publishes bugsee_flutter then bugsee_flutter_feedback from one
v<version> tag with pub.dev automated publishing (OIDC, no secret), behind a
gate and the pub.dev environment. A manual run is a dry run (pub.dev only
accepts tag-triggered publishing). The 'nothing publishes' guard becomes
'only release.yml publishes, only under the environment, only after the
gate', with mutation tests; two scripts (tag == versions, pub.dev status)
are tested.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8
Change-Id: Idf20afa5b64432b5b36eda9b72e426040c6b8632
…p for rehearsals

Review findings: a failing pub.dev status call inside echo was lost (state
left empty); the publish jobs' environment would see a branch on a manual
run; one concurrency group let a rehearsal displace a pending release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8
Change-Id: I7eb36efbfb3b06db96318cb9b583162be99f0bc4
…arden the publish guard

Review findings: subosito/flutter-action does not exchange the runner's OIDC
token for PUB_TOKEN (dart-lang/setup-dart does), so the upload had no
credential. The guard now classifies each command of a line, rejects a
publishing job that can run after a failed gate (always(), continue-on-error)
or on a manual run (event OR), and requires the setup-dart step first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8
Change-Id: I608a248b7d85a471c10733ed066ec11c115f7eeb
The same version in both pubspecs, the feedback package's bugsee_flutter lower bound, wrapper_identity.dart, BGSFlutterWrapper.m and feedback_version.dart; the CHANGELOG entries and the docs that name it. PLAN.md records the decision to publish a beta first. Nothing publishes or tags.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8
Change-Id: I3fc3a58a2c1736cc11538e82acbd24fe0b8c09f1
@krassx
krassx force-pushed the chore/release-10.0.0-beta.1 branch from adc0f26 to 7c8e1c1 Compare November 23, 2026 14:42
@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 1m 20s —— View job


Review of PR #50 (re-review after the release-workflow commits)

The earlier review covered only the version bump. This PR now also adds the pub.dev release pipeline: release.yml, check_release.sh, pub_dev_status.sh, the --yes mode of publish_feedback.sh, and about 500 lines of guard tests. I read all of it. I did not run any tests: Flutter and Dart are not installed on this runner. I did not verify the pub.dev, OIDC or setup-dart behaviour against live services.

Findings (2 inline comments, both P3)

  • P3, PLAN.md:109: the release-checklist step 0 contradicts itself and CI.md. It says "before the first tag" but also "after the core is live". The core only goes live through the tag-triggered workflow, so the first feedback publish by hand can only follow the first tag run.
  • P3, release.yml:205: when the feedback package is missing from pub.dev, publish-feedback ends green with only a warning. This is expected for the first release, but a half-published lock-step release would not fail the run.

What I checked and found sound

  • Gate: the tag must be an ancestor of origin/main. check_release.sh ties the tag to both pubspecs and both CHANGELOG tops, and its output is regex-validated ([0-9A-Za-z.-]), so the later ${{ needs.gate.outputs.version }} interpolations in run: cannot inject. The ci-ok check is fail-closed: an empty result or an in-progress run (null conclusion) blocks the release.
  • Publish jobs:
    • They check out github.sha, not the tag's current target.
    • id-token: write is held only by the two publish jobs.
    • A manual run never reaches a publish step.
    • The jobs sit behind environment: pub.dev.
    • state="$(…)" is assigned on its own line, so a failing status call fails the step.
  • pub_dev_status.sh: any answer other than 200 or 404 is an error, so a flaky response cannot be read as "not live" and cause a skip or a double publish. On a connection failure curl prints 000 and || echo 000 adds another, so the message shows 000000. This is cosmetic.
  • publish_feedback.sh --yes: it is accepted only together with --publish. The dirty-tree refusal still applies, and the guard test covers it.
  • Version bump itself: all repeated copies moved together, as the earlier review found.

Summary

  1. Overall risk: Low. The bump is mechanical and every repeated version is covered by a drift guard. The workflow's safety properties are enforced by mutation-tested guards.
  2. Merge recommendation: Approve once CI is green. Optionally fix the PLAN.md step 0 ordering first, since it is the runbook for the first real run.
  3. Most important issues to fix: none blocking. The step 0 ordering is the only one worth doing before the first tag.
  4. Positives: the release pipeline fails closed at each step I checked. The guard tests include mutation tests for each rule. The PR keeps publishing and tagging as an explicit maintainer action behind a reviewer-gated environment. The first real run still exercises the OIDC exchange, environment approval and upload for the first time, as PLAN.md already says.
    | Branch: chore/release-10.0.0-beta.1

Comment thread PLAN.md
Publishing is done by `.github/workflows/release.yml` when a maintainer pushes the tag (step 7); nothing else here publishes, and an agent
never tags or publishes. The one-time setup (step 0) is by hand on pub.dev and GitHub.

0. **One-time setup, before the first tag** (pub.dev and GitHub admin; the workflow cannot do it, see `.github/CI.md`, "Releases"):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 Low (docs / runbook)
Location: PLAN.md:109-111 (step 0), against .github/CI.md "First version of the feedback package"
Problem: Step 0 is headed "before the first tag". Its first bullet says to publish the feedback package by hand "after the core is live". The core is only published by the tag-triggered workflow, so before the first tag it is not live. CI.md describes the opposite order: the first tag publishes the core, publish-feedback skips with a warning, and the feedback package is published by hand afterwards.
Impact: A maintainer following step 0 literally either publishes the feedback package against a core version that does not exist on pub.dev yet, or gets stuck. The pub.dev admin setup for the feedback package can only happen after that first manual publish.
Scenario: The maintainer does step 0 before tagging v10.0.0-beta.1. bugsee_flutter 10.0.0-beta.1 is not on pub.dev. Either they publish the feedback package anyway (pub.dev cannot resolve its >=10.0.0-beta.1 core bound), or they stop.
Fix: Split step 0. Put the environment, tag ruleset and core automated-publishing setup before the tag. Put "publish the first feedback version by hand, then enable automated publishing for it" after the first tag run. Alternatively, say explicitly that the first release is core-by-workflow and feedback-by-hand. Also state whether the first-time feedback publish must reuse the same 10.0.0-beta.1.

echo "state=$state" >> "$GITHUB_OUTPUT"
# pub.dev: automated publishing exists only for a package that already exists, so the very
# first version of the sibling is published by hand once (PLAN.md, release checklist).
- name: The package does not exist on pub.dev 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.

Severity: P3 Low
Location: .github/workflows/release.yml:205-210
Problem: When the feedback package is not on pub.dev, publish-feedback ends green with only a warning annotation and a step-summary line. The run then reads as a complete release although only one of the two lock-step packages was published.
Impact: The feedback package silently lags the core, and nothing fails or alerts. This is the expected state for the first release, but it is also what happens if pub.dev returns 404 for the package for any other reason. pub_dev_status.sh reads 404 on both endpoints as missing-package.
Fix (optional): Fail the job on missing-package, since the core is already out and a re-run is safe (it skips a live core). Or gate that skip behind an explicit vars.FEEDBACK_FIRST_RELEASE_PENDING. At minimum, keep the PLAN.md step 9 check that both packages show up on pub.dev.

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