Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ 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
echo "Ignoring stale projection request $source_commit; Boatstack already records $current_commit."
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
Expand Down
17 changes: 17 additions & 0 deletions boatstack/release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading