Remove basic graph from e2e test

This commit is contained in:
Stuart Axelbrooke 2025-07-27 00:10:59 -07:00
parent 0d662e9f38
commit cf746ebdce

View file

@ -84,36 +84,12 @@ main() {
# Only clean if we detect Java version mismatches # Only clean if we detect Java version mismatches
if bazel info 2>&1 | grep -q "openjdk/23"; then if bazel info 2>&1 | grep -q "openjdk/23"; then
log_warn "Detected stale Java paths, cleaning Bazel caches..." log_warn "Detected stale Java paths, cleaning Bazel caches..."
(cd "$SCRIPT_DIR/examples/basic_graph" && bazel clean --expunge > /dev/null 2>&1 || true)
(cd "$SCRIPT_DIR/examples/podcast_reviews" && bazel clean --expunge > /dev/null 2>&1 || true) (cd "$SCRIPT_DIR/examples/podcast_reviews" && bazel clean --expunge > /dev/null 2>&1 || true)
else else
log_info "Java environment looks good, skipping cache clean" log_info "Java environment looks good, skipping cache clean"
fi fi
# Test 1: Basic Graph # Test 1: Podcast Reviews
log_info "=== Basic Graph End-to-End Tests ==="
# Build basic graph targets
build_targets "$SCRIPT_DIR/examples/basic_graph" \
"//:basic_graph.build" \
"//:basic_graph.service"
# Run basic graph simple test
run_test "Basic Graph Simple Test" \
"$TESTS_DIR/simple_test.sh" \
"$SCRIPT_DIR/examples/basic_graph/bazel-bin/basic_graph.build" \
"$SCRIPT_DIR/examples/basic_graph/bazel-bin/basic_graph.service"
# Run delegation test for basic graph
log_info "Running test: Basic Graph Delegation Test"
if ! (cd "$SCRIPT_DIR/examples/basic_graph" && \
"$SCRIPT_DIR/tests/end_to_end/delegation_test.sh" \
"bazel-bin/basic_graph.build"); then
test_fail "Test failed: Basic Graph Delegation Test"
fi
test_pass "Test passed: Basic Graph Delegation Test"
# Test 2: Podcast Reviews
log_info "=== Podcast Reviews End-to-End Tests ===" log_info "=== Podcast Reviews End-to-End Tests ==="
# Build podcast reviews targets - fail fast if build fails # Build podcast reviews targets - fail fast if build fails
@ -153,8 +129,6 @@ main() {
# Summary # Summary
log_info "=== Test Summary ===" log_info "=== Test Summary ==="
test_pass "Basic Graph CLI and Service builds work correctly"
test_pass "Basic Graph delegation prevents duplicate builds"
test_pass "Podcast Reviews CLI build works correctly" test_pass "Podcast Reviews CLI build works correctly"
test_pass "Podcast Reviews delegation prevents duplicate builds" test_pass "Podcast Reviews delegation prevents duplicate builds"
test_pass "Build event logging functions properly" test_pass "Build event logging functions properly"
@ -176,7 +150,6 @@ main() {
cleanup() { cleanup() {
log_info "Cleaning up test processes..." log_info "Cleaning up test processes..."
pkill -f "build_graph_service" 2>/dev/null || true pkill -f "build_graph_service" 2>/dev/null || true
pkill -f "basic_graph.service" 2>/dev/null || true
pkill -f "podcast_reviews_graph.service" 2>/dev/null || true pkill -f "podcast_reviews_graph.service" 2>/dev/null || true
} }