Skip to content

fix(tests): make CI tests shallow-clone and server-mode stable#802

Merged
AlexMikhalev merged 1 commit intomainfrom
fix/release-1.16.33-main-stabilization-2
Apr 13, 2026
Merged

fix(tests): make CI tests shallow-clone and server-mode stable#802
AlexMikhalev merged 1 commit intomainfrom
fix/release-1.16.33-main-stabilization-2

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

Two remaining CI Main Branch failures after #801:

  1. orchestrator_tests: git_diff_baseline() fell back to HEAD~1 for the diff baseline, but shallow CI checkouts (fetch-depth: 0) lack history before HEAD. Now uses git's empty-tree SHA as a stable fallback when the root-commit lookup returns nothing. Fixes:

    • test_orchestrator_compound_review_integration
    • test_git_diff_matching_changes_spawns
    • test_spawn_agent_proceeds_with_git_diff_findings
  2. integration_tests: test_end_to_end_server_workflow was selecting the already-active role (* marker) which returns exit 1. Now selects a different (non-current) role so the switch is always exercised meaningfully.

Testing

  • All 23 terraphim_orchestrator integration tests pass on the fix branch
  • Build succeeds: cargo build -p terraphim_agent --test integration_tests --features server

Checklist

  • Tests pass locally
  • Pre-commit (format, clippy, UBS) passes
  • No new warnings introduced

Two remaining CI Main Branch failures after #801:

1. orchestrator_tests: git_diff_baseline() fell back to HEAD~1 for
   the diff baseline, but shallow CI checkouts lack history before HEAD.
   Now uses git's empty-tree SHA as stable fallback when root commit
   lookup returns nothing, making test_orchestrator_compound_review_integration,
   test_git_diff_matching_changes_spawns, and test_spawn_agent_proceeds_with_git_diff_findings
   reliable across shallow/fetch-depth=0 CI environments.

2. integration_tests: test_end_to_end_server_workflow was selecting
   the already-active role (* marker) which fails with exit 1.
   Now selects a different role (non-current) so the switch is
   always exercised meaningfully.

Refs: #801
@AlexMikhalev AlexMikhalev merged commit 1ba47b8 into main Apr 13, 2026
14 checks passed
@AlexMikhalev AlexMikhalev deleted the fix/release-1.16.33-main-stabilization-2 branch April 13, 2026 17:30
AlexMikhalev added a commit that referenced this pull request Apr 15, 2026
Two remaining CI Main Branch failures after #801:

1. orchestrator_tests: git_diff_baseline() fell back to HEAD~1 for
   the diff baseline, but shallow CI checkouts lack history before HEAD.
   Now uses git's empty-tree SHA as stable fallback when root commit
   lookup returns nothing, making test_orchestrator_compound_review_integration,
   test_git_diff_matching_changes_spawns, and test_spawn_agent_proceeds_with_git_diff_findings
   reliable across shallow/fetch-depth=0 CI environments.

2. integration_tests: test_end_to_end_server_workflow was selecting
   the already-active role (* marker) which fails with exit 1.
   Now selects a different role (non-current) so the switch is
   always exercised meaningfully.

Refs: #801
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
Two remaining CI Main Branch failures after #801:

1. orchestrator_tests: git_diff_baseline() fell back to HEAD~1 for
   the diff baseline, but shallow CI checkouts lack history before HEAD.
   Now uses git's empty-tree SHA as stable fallback when root commit
   lookup returns nothing, making test_orchestrator_compound_review_integration,
   test_git_diff_matching_changes_spawns, and test_spawn_agent_proceeds_with_git_diff_findings
   reliable across shallow/fetch-depth=0 CI environments.

2. integration_tests: test_end_to_end_server_workflow was selecting
   the already-active role (* marker) which fails with exit 1.
   Now selects a different role (non-current) so the switch is
   always exercised meaningfully.

Refs: #801
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
Two remaining CI Main Branch failures after #801:

1. orchestrator_tests: git_diff_baseline() fell back to HEAD~1 for
   the diff baseline, but shallow CI checkouts lack history before HEAD.
   Now uses git's empty-tree SHA as stable fallback when root commit
   lookup returns nothing, making test_orchestrator_compound_review_integration,
   test_git_diff_matching_changes_spawns, and test_spawn_agent_proceeds_with_git_diff_findings
   reliable across shallow/fetch-depth=0 CI environments.

2. integration_tests: test_end_to_end_server_workflow was selecting
   the already-active role (* marker) which fails with exit 1.
   Now selects a different role (non-current) so the switch is
   always exercised meaningfully.

Refs: #801
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