Skip to content

chore(ci): stop checking out noblefactor-ops, and build star where it lives - #77

Merged
David-Noble-at-work merged 1 commit into
developfrom
chore/drop-noblefactor-ops
Aug 27, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
chore/drop-noblefactor-ops

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Both workflows checked out three repositories to validate one:

<workspace root>/     devlore-registry   <- the data being validated
  noblefactor-ops/                       <- supplied the star binary
  devlore-cli/                           <- supplies the extensions (via cwd)

noblefactor-ops existed for a single step — go build ./cmd/star — and that package no longer
exists.
It was removed in NobleFactor/noblefactor-engprod#130, having been a copy left behind when
star moved to devlore-cli in March 2026.

It had been the wrong binary for five months. The March copy calls extension run with one argument
while the devlore extensions declare run(command, ctx) — the whole of devlore-cli#695:

Error: function run missing 1 argument (ctx)

Changes

Before After
Checkouts 3 2
star built from noblefactor-ops devlore-cli
go-version 1.24 1.27 (matches devlore-cli's go.mod)
cache-dependency-path noblefactor-ops/go.sum devlore-cli/go.sum
App token scope noblefactor-ops,devlore-cli devlore-cli

This does not turn the check green

With the right binary the failure moves on to target resolution:

  • --target is documented in a comment but never declared as a flag, so ctx.args.get("target")
    returns empty;
  • _resolve_target then falls through to a sibling ../devlore-registry that does not exist in this
    layout — the registry is checked out at the workspace root, not beside it;
  • fsroot confinement refuses the .. with path escapes from parent.

Those are devlore-cli's to fix, planned in its docs/plans/goreleaser-ship-star.md. What changes
here is that the failure is now the real one rather than an artifact of building a five-month-old
binary from a repository that no longer contains it.

validate-yaml-schemas is a required check, so merging this needs an override. That is the freeze
working as intended.

… lives

Both workflows checked out three repositories to validate one. noblefactor-ops
was there for a single step -- `go build ./cmd/star` -- and that package no longer
exists: it was removed in noblefactor-ops#130, having been a copy left behind when
star moved to devlore-cli in March 2026.

It had been the wrong binary for five months. The March copy calls extension `run`
with one argument while the devlore extensions declare `run(command, ctx)`, which
is devlore-cli#695:

    Error: function run missing 1 argument (ctx)

star is now built from devlore-cli, which was already being checked out. The Go
pin moves 1.24 -> 1.27 to match devlore-cli's go.mod, and the module cache keys on
devlore-cli/go.sum rather than a repository no longer present.

This does not make validate-yaml-schemas pass. With the right binary the failure
moves on to target resolution: `--target` is documented in a comment but never
declared as a flag, so ctx.args.get("target") is empty and _resolve_target falls
through to a sibling `../devlore-registry` that does not exist in this layout --
the registry is checked out at the workspace root. fsroot confinement then refuses
the `..` with "path escapes from parent". That is devlore-cli's to fix, planned in
its docs/plans/goreleaser-ship-star.md.

What changes here is that the failure is now the real one.
@David-Noble-at-work
David-Noble-at-work merged commit 2e84a4b into develop Aug 27, 2026
1 of 2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the chore/drop-noblefactor-ops branch August 27, 2026 07:53
David-Noble-at-work added a commit that referenced this pull request Aug 27, 2026
…is in-tree (#78)

validate-yaml-schemas has been red for months. With noblefactor-ops' stale star
out of the way (#77) the real cause was visible in one line:

    Error in file.is_dir: statat ..: path escapes from parent

Two constraints were pulling in opposite directions. star resolves its extensions
relative to the working directory, so the commands have to run from devlore-cli --
that is the only place com.noblefactor.devlore.* exists. But fsroot confinement
refuses a target outside that working directory, and the registry sat beside it,
so --target had to climb out through `..`.

Checking this repository out INSIDE devlore-cli satisfies both at once: the
working directory still finds the extensions, and the target is in-tree. Order
matters -- devlore-cli is checked out first, because its checkout would otherwise
clean away the nested one.

Verified before pushing, with a real star built from devlore-cli's develop against
this repository's actual content:

    devlore package validate   -> Validated 10 files across 1 types
    devlore knowledge validate -> Validated 6 files across 1 types

update-indexes gets the same layout, and its commit step gains a
working-directory, having previously run at the workspace root that was the
registry checkout.

No devlore-cli change is required. Shipping star as a release artifact remains
worth doing -- self-install, and validating a sync against the binary that
generated it -- but it was never the blocker it appeared to be.

update-indexes will still fail: it pushes directly into the protected branch that
triggered it, which the ruleset refuses. That is #75, untouched here.

Co-authored-by: David Noble <[email protected]>
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