Repository navigation
Remove flows - #194
Merged
Merged
Remove flows#194
Conversation
Deletes raider flow: its command, lib/utilities/flows, the flows templates, their sigs and specs, the end-to-end Flows context and the CI path. The UTF-8 guard stays for schedule/sc. The shared OS adapter, scheduler, next-run and enumerator specs now build TESTS-kind schedules, with hostile values carried in the bundle path, GEM_HOME and the project path, and stub the captured gem env and bundle so they no longer depend on the caller's GEM_HOME.
A job removing itself is ended by its own bootout, so its plist must be gone first.
Every raider schedule command first removes this project's 4.1 OS entries (os_ids recomputed from the project path, never read from the yml) and then .raider/flows/schedules.yml, with one notice on stderr (and in list --json). A hidden stub catches raider flow from an old OS entry, cleans up (its own entry last) and exits 2. No user-facing text says flow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
raider flowand everything behind it, and removes schedules made with 4.1 automatically (spec: test schedules §6, §7; plan B). No user-facing text says "flow". Nothing the user wrote is deleted.lib/versionstays 4.1.0 (the 4.2.0 bump is a later PR).What changes
raider flow(init, run, list, schedule, unschedule, schedules),lib/utilities/flows/*, the flow templates, their sigs and specs.raider helpno longer lists it.Schedules::Legacy): everyraider schedulecommand first removes this project's 4.1 OS entries (dev.rubyraider.flow.<this project's hash10>.*, enumerated per OS; cron lines under the old tag that match the 4.1 command), then deletes.raider/flows/schedules.yml. One line on stderr: "Removed 1 schedule made with Ruby Raider 4.1 (name); it can't run in 4.2. Add it again with raider schedule add."list --jsoncarries it innotice. A failed removal keeps the yml, is reported in the same line and retried next time.flows/,.raider/tests/flows/,flow-results/,.raider/flows/env,.raider/flows/<name>/..raider/flowsfolder it costs one lstat: no adapter, no enumeration. While that folder exists, eachraider schedulecommand (scheduled runs included) also enumerates the OS for old entries (a directory read on macOS; one extraschtasks /Queryon Windows; asystemctl --userprobe plus listing on Linux). The README says to delete the folder only after the removal line has appeared, because old cron/systemd entries log into it and the cleanup keys on it.raider flow …;Raider.startcatchesflow/fbefore Thor, runs the cleanup for--projectonly (absolute, real path, regular Gemfile), writes the line to the entry's log, and exits 2 with any argv. No notification. Its own launchd entry is removed last, after the line is written and the yml deleted (launchd kills the job on bootout).Launchd#removenow unlinks the plist beforebootout(both kinds).e2e_tests.ymlno longer runs the deletedspec/utilities/flows.Example count
Full rspec at 8f15e9b: 2388 examples. Now 2240, 0 failures, 10 pending (Ruby 3.2 syntax checked for every changed lib file).
Word match
git grep -n -i -w -E 'flows?' -- lib sig README.mdhits onlykind.rb(the 4.1 kind),legacy.rb,legacy_stub.rb, the stub dispatch inruby_raider.rb, and in README the leftover paths/ids/tags of "Upgrading from 4.1" (flows/,flow-results/,.raider/flows/,dev.rubyraider.flow.,# raider-flow).Verified
raider schedule list: one stderr line "Removed 2 schedules made with Ruby Raider 4.1 (demo, weekly); …", both plists gone,launchctl print113,flows/,flow-results/,.raider/flows/envbyte-identical, onlyschedules.ymldeleted.scheduler.log; plist and job gone.raider scheduleadd / list / list --json / run (passed) / launchd kickstart (passed, trigger schedule) / remove still work.schtasks /Delete.Notes
raider schedulecommand runs first in the project (normally the desktop'slistwhen the Tests tab opens).