CLI command
probierz schedule
When journeys run without anyone typing it: add, list, show, edit, pause, resume, run, remove; and what a fired schedule runs (tick, fill, release).
Invocation#
probierz schedule <add|list|show|edit|pause|resume|run|remove|tick|fill|release>Required inputs and options#
- The leaf is required.
Output and state effects#
Every schedule is a schedule of Stado's scheduling family, on a cron pinned to one host; its name travels in its command as PROBIERZ_SCHEDULE=<name>, so stado schedule list and probierz schedule list cannot disagree and Probierz keeps no copy.
Exact refusals#
- Missing or unknown leaves return the group usage and exit 2.
Declared refusals#
What probierz refusals list declares for this command at revision d2cd6156e8b8dc6204dab7b46ec0b34b2bb03cea (probierz 0.1.7 (revision unknown, not built from a git checkout)): each cause's id, the operation declaring it, its exit status and code, and its remedy.
workspace-unset(probierz.manifest.discover, exit 1, config): finding the repositories that hold product manifests: this instance names no workspace, so there is no directory of repositories to look in. runprobierz config set workspace <directory holding one checkout per repository>.workspace-unreadable(probierz.manifest.discover, exit 1, config): listing {workspace}: the operating system would not list it: {error}. give this user read permission on {workspace}, or set another workspace withprobierz config set workspace.listing-failed(probierz.manifest.discover, exit 1, config): asking the git of {repository} which manifests it tracks: {cause}. make {repository} a git repository this user can read.untracked(probierz.manifest.discover, exit 1, config): reading the manifests of {repository}: {file} is not tracked by the repository's git, so no other host and no review sees it. rungit -C {repository} add {relative}and commit it, or remove the file.duplicate(probierz.manifest.discover, exit 1, config): finding the manifest of {app}: two repositories declare {app}: {first} and {second}. keep the manifest of {app} in the product's own repository and remove the other.not-found(probierz.manifest.discover, exit 1, config): finding the manifest of {app}: no repository under {workspace} has .probierz/{app}.yaml. add .probierz/{app}.yaml to the product's repository (probierz project adoptorprobierz author manifestwrite it), or name an appprobierz apps listlists.file-name-invalid(probierz.manifest.discover, exit 1, config): finding the manifests of {repository}: {file} names app "{app}", which is not an id: letters, digits, '.', '_' and '-', starting with a letter or digit. rename it .probierz/<appId>.yaml with the id it declares, withgit mv.repository-name-invalid(probierz.manifest.discover, exit 1, config): finding repository "{name}" in the workspace: a manifest names a checkout directly under the workspace, and "{name}" would name another place. name the checkout by its directory name under the workspace in repositories[].repository.app-id-invalid(probierz.manifest.load, exit 2, refused): naming an app: "{app}" is not an id: letters, digits, '.', '_' and '-', starting with a letter or digit. name an appprobierz apps listlists.manifest-unreadable(probierz.manifest.load, exit 1, config): reading {file}: {error}. write {file} as YAML the reader accepts (its line and column are named), then load it again.manifest-invalid(probierz.manifest.load, exit 1, config): judging {file}: {problem}. fix the declaration in {file};probierz app checknames every problem it has with the world once it loads.manifest-id-mismatch(probierz.manifest.load, exit 1, config): loading the manifest of {app}: {file} is named for {app} and declares appId {declared}. declareappId: {app}in {file}, or rename the file for the app it declares withgit mv.name-invalid(probierz.schedule, exit 2, refused): naming a schedule: {name} is not a name: lower-case letters and digits, in words joined by single dashes. name the schedule likewisent-app-nightly.flag-inapplicable(probierz.schedule, exit 2, refused): adding schedule {name}: {flag} means nothing to {what}, which would fire without it. {remedy}.host-unpinned(probierz.schedule, exit 2, refused): adding schedule {name} on {host}: a schedule fires on one registry host, and {host} names none. give --host stado:<target> with a targetprobierz hostslists.exists(probierz.schedule, exit 1, refused): adding schedule {name}: Stado already holds a schedule of that name as {id}. change it withprobierz schedule edit {name}, or remove it first withprobierz schedule remove {name}.unknown(probierz.schedule, exit 1, not_found): finding schedule {name}: no schedule Stado holds carries that name. name oneprobierz schedule listshows.trigger-unavailable(probierz.schedule, exit 1, refused): adding schedule {name} on {trigger}: Stado publishes no {trigger} event a schedule can wait for. schedule on a cadence (--cron) or on main (--trigger main) until Stado publishes {trigger} events.journey-unserved(probierz.schedule, exit 1, config): scheduling journey {journey} of {app}: no surface of the manifest serves {journey}{target}. name a journey and target the manifest declares, or declare it under surfaces.<target>.journeys.stado-refused(probierz.schedule, exit 1, refused): {command}: {cause}. fix what Stado names, then repeat the command.state-unwritable(probierz.schedule, exit 1, config): recording the revisions schedule {name} has seen in {file}: {error}. make Probierz's state directory writable, or point PROBIERZ_STATE_DIR at one.state-invalid(probierz.schedule, exit 1, config): reading the revisions schedule {name} has seen in {file}: the file holds no map of repositories to the revisions it saw: {error}. remove {file} to start the schedule over; its next tick records the revisions and runs nothing.main-untracked(probierz.schedule, exit 1, config): reading main of {repository} for schedule {name}: main tracks no remote branch ({cause}), so no revision of the remote's main can be fetched. set it withgit -C {repository} branch --set-upstream-to <remote>/main main.fetch-failed(probierz.schedule, exit 69, infra_down): fetching {upstream} into {repository} for schedule {name}: {cause}. make the remote main tracks reachable from this host, then let the schedule tick again.diff-failed(probierz.schedule, exit 1, config): listing what changed in {repository} between {old} and {now}: {cause}. fetch the history that holds {old} into {repository}, or remove the schedule's state to start it over.runs-failed(probierz.schedule, exit 1, refused): running what schedule {name} fires: {count} of its runs did not pass: {runs}. read each run withprobierz history <app>; a product failure is a defect, a test failure a repair.app-required(probierz.schedule, exit 2, refused): adding schedule {name} on {trigger}: a {trigger} schedule runs one product's journeys, and no --app names it. name the product with --app; only --report and --trigger gaps cover every product.gap-unfillable(probierz.schedule, exit 1, config): authoring what schedule {name} found missing: {count} gaps cannot be authored without what they lack: {gaps}. declare what each gap names (a catalog description, a test environment's baseUrl, the surface's TUI_CMD or CUA_APP_EXECUTABLE condition, the surface an escaped error was met on; an error's source must give its surface and message), or author it by hand with the command it names.link-required(probierz.schedule, exit 2, refused): adding schedule {name} on store: a store schedule runs the product's journeys when the store sells a new version, and no --link names the app's store page. name the app's App Store page with --link https://apps.apple.com/<country>/app/<name>/id<number>.release-unreadable(probierz.schedule, exit 2, refused): watching the releases of {package} for schedule {name}: Google publishes no version of an app a program may read, so a new release of {package} on Google Play cannot be seen. watch the app's App Store link if it is sold there too, or run its Android journeys on a cadence schedule.surface-missing(probierz.schedule, exit 1, config): finding what a new release of {app} runs for schedule {name}: {app} declares no journey on a {surface} surface, so a release would run nothing. declare the journeys a phone runs under surfaces.{surface} in the product's manifest.link-invalid(probierz.store, exit 2, refused): reading the store link {link}: it is no https link to an app's page on the App Store (anid<number>under apps.apple.com) or on Google Play (play.google.com/store/apps/details withid=<package>). give the app's page as the store shares it: https://apps.apple.com/<country>/app/<name>/id<number> or https://play.google.com/store/apps/details?id=<package>.app-unknown(probierz.store, exit 1, not_found): finding the app {link} names: the App Store's {country} storefront holds no app id{id}: it was removed, or it is sold only in other countries. open the link in a browser to see whether the app is still sold; an app sold elsewhere is found through a link carrying that country's code, like https://apps.apple.com/pl/app/<name>/id{id}.lookup-unanswered(probierz.store, exit 69, infra_down): asking Apple's lookup {address} for the app: {problem}. check that this machine reaches itunes.apple.com over HTTPS (a proxy in HTTPS_PROXY is used when set), then ask again; an answer that is not Apple's record is said as it came.page-unreachable(probierz.store, exit 69, infra_down): reading the store page {page}: it could not be reached or read: {error}. check that this machine reaches the store over HTTPS (a proxy in HTTPS_PROXY is used when set), then ask again.page-unread(probierz.store, exit 1, not_found): reading the links of the store page {page}: {problem}. open the page in a browser: an app the store no longer sells answers an error, and a page whose links are there but unread is a change of the store's page that this command must follow.reviews-unpublished(probierz.store, exit 1, refused): reading the reviews of {package} on Google Play: Google publishes no reviews feed a program may read; its reviews are read only through the Google Play Developer API with the developer's own account. read them in the Play Console of the app's developer, or give the app's App Store link when it is sold there too.reviews-unanswered(probierz.store, exit 69, infra_down): reading Apple's reviews feed {address}: {problem}. check that this machine reaches itunes.apple.com over HTTPS (a proxy in HTTPS_PROXY is used when set), then ask again; an answer that is not the feed is said as it came.store-undeclared(probierz.store, exit 1, config): reading where {app} is sold: its manifest names no App Store page (inventory.appStore). write the app's page into the manifest:inventory: {appStore: https://apps.apple.com/<country>/app/<name>/id<number>}.release-unread(probierz.store, exit 1, config): reading the version {app} released from {file}: {problem}. give the product's checkout a .wisent-release.json whose version_source (kind regex, a path and a pattern with aversiongroup) finds the version in that file, as the release pipeline reads it.versions-differ(probierz.store, exit 1, refused): holding {app}'s App Store page to the version it released: the store sells {store} and the release file states {released}: the store is {verdict}. behind: submit the released version, or see why App Review has not approved it; ahead: bring the checkout to the revision that was released.description-unread(probierz.store, exit 1, config): reading the App Store description {app} keeps in {file}: {problem}. keep the description the App Store page should show in a file of the product's repository and name its path in the manifest:inventory: {appStoreDescription: <path>}.listing-differs(probierz.store, exit 1, refused): holding {app}'s App Store page to the description it keeps: the store shows another description than {file} holds. submit the description in the file with the next version, or bring the file to what the store shows if the store is right.notes-unread(probierz.store, exit 1, config): reading the App Store release notes {app} keeps in {file}: {problem}. keep the notes of the released version in a file of the product's repository and name its path in the manifest:inventory: {appStoreReleaseNotes: <path>}.notes-differ(probierz.store, exit 1, refused): holding {app}'s App Store page to the release notes it keeps: the store shows other notes for the version on sale than {file} holds. submit the notes in the file with the version, or bring the file to the notes the store shows if the store is right.
Source snapshot#
Generated from the Rust binaries at revision 99a74945a3598a8d73b6c6cbe5aae4f283becea3 of Probierz's private source repository.
Combined help SHA-256: 77529678a61237f774b59e76df0d1907cb749ef5da56d2ed913b040793b7d30b; binary SHA-256: be9e0eaff0e6ea50403a0c6f6d467697a4eac676f9523b8dc13a596d2b5526c5.