From 2a2f7a9267cefb940e3438448f34aefbcfb3a944 Mon Sep 17 00:00:00 2001 From: bigboateng Date: Sat, 18 Jul 2026 15:21:46 +0100 Subject: [PATCH] Fix Intelligence Flow lab sync path --- .github/workflows/sync-upstream.yml | 4 ++-- boatstack/release_test.go | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml index 7f251ea..4c420e9 100644 --- a/.github/workflows/sync-upstream.yml +++ b/.github/workflows/sync-upstream.yml @@ -52,7 +52,7 @@ jobs: id: generate shell: bash run: | - source_commit="$(git -C intelligence-flow log -1 --format=%H -- examples/12-product-engineering-loop)" + source_commit="$(git -C intelligence-flow log -1 --format=%H -- labs/12-product-engineering-loop)" current_commit="$(jq -r '.source.commit // empty' boatstack-repo/UPSTREAM.json)" if [[ -n "$current_commit" ]] && ! git -C intelligence-flow merge-base --is-ancestor "$current_commit" "$source_commit"; then @@ -60,7 +60,7 @@ jobs: echo "stale=true" >> "$GITHUB_OUTPUT" exit 0 fi - python3 intelligence-flow/examples/12-product-engineering-loop/scripts/build_boatstack.py \ + python3 intelligence-flow/labs/12-product-engineering-loop/scripts/build_boatstack.py \ --repo boatstack-repo \ --source-commit "$source_commit" \ --write diff --git a/boatstack/release_test.go b/boatstack/release_test.go index 3aff5df..d7becee 100644 --- a/boatstack/release_test.go +++ b/boatstack/release_test.go @@ -4,9 +4,26 @@ import ( "os" "path/filepath" "reflect" + "strings" "testing" ) +func TestSyncWorkflowUsesCurrentUpstreamLabPath(t *testing.T) { + workflow, err := os.ReadFile(filepath.Join("..", ".github", "workflows", "sync-upstream.yml")) + if err != nil { + t.Fatal(err) + } + content := string(workflow) + current := "labs/12-product-engineering-loop" + if count := strings.Count(content, current); count != 2 { + t.Fatalf("sync workflow contains %q %d times, want 2", current, count) + } + retired := "examples/12-product-engineering-loop" + if strings.Contains(content, retired) { + t.Fatalf("sync workflow still references retired upstream path %q", retired) + } +} + func TestClassifyReleasePaths(t *testing.T) { documentation := []string{ "README.md", "docs/getting-started.md", "assets/boatstack-mark.svg",