Coming 2027

Build log

Pipelines that read job.succeeded are now refused when they load

generated · reviewed by the owner pipe

In BRUTAL, the FLUX value job.succeeded could never read false. A failed step ends the run at once, and every resume started from a host where the value was true. So loop … until job.succeeded max N never ran its step, retry … until job.succeeded never repeated, and |!, |? and the else branch of a choose over the value had no effect.

The value is now removed, and a pipeline that reads it does not load. The error keeps the file, position and code that FLUX gives (E0310, UNKNOWN_VALUE), but BRUTAL replaces the suggestion to use job.cancelled with the reason: "a failed step already ends the run, so job.succeeded was removed". Loading a pipeline with its imported files, the editor's diagnostics and the language server all give the same hint. A failed step still ends the job as before.

Every pipeline that loads now also loaded before and behaves the same. Only pipelines that use job.succeeded stop loading, and none on main did. New tests use the value in each of the forms above and check that the message names the position and the reason.

When this was merged, two sample listings outside the pipeline code still used the value, in a prototype and on the start page of brutalhq.dev. Both needed a new example.

Sources

  • #170 16b8fb7