Skip to content

4.2.0 - #195

Merged
aguspe merged 2 commits into
masterfrom
release/4.2.0
Nov 11, 2026
Merged

4.2.0#195
aguspe merged 2 commits into
masterfrom
release/4.2.0

Conversation

@aguspe

@aguspe aguspe commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Version 4.2.0, ready to release with release.yml (input version: 4.2.0) once merged.

Changes

  • lib/version 4.2.0. New projects pin gem 'ruby_raider', '~> 4.2' (derived from the version).
  • git_ignore.tt: .raider/schedules/ for every new project, web and mobile (the gem schedules both). It is the exact line raider schedule add looks for, so add won't append a second one. Content spec checks it against ScheduleStore::GITIGNORE_LINE; the mobile spec now expects that line and no other .raider line.
  • README "Upgrading from 4.1": no longer says the desktop runs a schedule command when its Tests tab opens (true only once the desktop's schedules release ships). It names raider schedule list instead.
  • README and RELEASE exit code 3: no longer say a desktop run makes a scheduled run busy. That needs the desktop to write .raider/schedules/running.json, which it doesn't yet. Both now say "another raider schedule run in the project, or any run that holds .raider/schedules/running.json".
  • RELEASE heading is plain ### 4.2.0, like 4.0.0 and 4.0.1. The v4.1.0 tag shipped with "(unreleased)", and its date was added later. This way the tagged text is right on release day.

Version gate on projects locked to 4.1

Bumping to 4.2.0 activates #193's gate. raider schedule add refuses a project whose Gemfile.lock resolves ruby_raider below 4.2.0:

$ raider schedule add nightly --every day --at 03:00 --project lock41   # Gemfile.lock: ruby_raider (4.1.0)
Scheduling needs ruby_raider 4.2.0 or later in this project: bundle update ruby_raider
exit 2   (nothing written: no .raider/, no OS entry)
$ raider schedule list --project lock41
No schedules yet: raider schedule add <name> --every day --at 08:00   (exit 0)
  • Only add is gated. list, remove and run are not.
  • A project locked to 4.1 can only reach this through a 4.2 raider outside its bundle, because its own bundle has no raider schedule.
  • Every raider schedule command, a refused add included, first runs the 4.1 cleanup when .raider/flows/ exists (spec §7). So a 4.2 raider pointed at a 4.1-locked project removes that project's 4.1 schedules, even though its bundle could still run them. This is intended: the 4.1 schedules go on the first schedule command.

Verification

  • Full rspec (.rspec excludes browser, includes spec/utilities and spec/generators): 2241 examples, 0 failures, 10 pending. The release.yml commands on their own: rspec spec/generators/ 312/0 and rspec spec/integration/ --tag ~slow 874/0.

  • rubocop: 0 offenses. reek: 0 warnings. Steep: no type errors.

  • gem build: ruby_raider-4.2.0.gem, version 4.2.0 in the metadata. Its file list has no flow code; the only paths containing "flow" are .github/workflows/*.

  • The built .gem was installed into a scratch GEM_HOME (rbenv 3.4.12). raider new from that install shows .raider/schedules/ in .gitignore for a Selenium project (with .raider/auth/) and an Android project (alone).

  • launchd before and after: only dev.rubyraider.flow.1255a248a3.tredssd, plist sha256 unchanged (7dad00c1…). No entry was added or removed.

  • CI: 17/17 green at 5553be0 after one rerun. On the first run, Runtime (Ruby 3.4, selenium 4.44.0) failed 5 examples in spec/runtime/browser/actionability_script_browser_spec.rb, all with Net::ReadTimeout on driver.navigate.to; the rerun passed. This branch changes no runtime code, and release.yml doesn't run spec/runtime/browser, so this flake can't fail the release.

Review

One whole-branch Opus review. It found two blockers, both fixed in 5553be0:

  • gemfile_content_spec hard-coded the ~> 4.1 pin.
  • common_content_spec used ScheduleStore without requiring it. The full suite hid this by load order, but release.yml's integration-only run would have failed.

It also found two minors:

  • Fixed: the run_lock.rb comment said the desktop already writes running.json.
  • Not changed: the RELEASE heading has no date, which is intended (see above).

Follow-ups (not in this PR)

  • The gate compares the lock with the gem's own version. A 4.2.1 raider outside the bundle will refuse add in a project locked to 4.2.0, though 4.2.0 has raider schedule run. The floor should probably be a constant (4.2.0).

New projects ignore .raider/schedules/ from the start (web and mobile:
the gem schedules both). README and RELEASE no longer say the desktop
runs a schedule command or marks its runs busy; that arrives with the
desktop's schedules release. RELEASE heading is plain 4.2.0, as 4.0.x.
release.yml runs spec/integration on its own, where nothing else loads
ScheduleStore. The run lock comment no longer says the desktop already
writes running.json.
@aguspe
aguspe marked this pull request as ready for review November 11, 2026 23:20
@aguspe
aguspe merged commit 2bdba9b into master Nov 11, 2026
22 of 23 checks passed
@aguspe
aguspe deleted the release/4.2.0 branch November 11, 2026 23:46
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