File tree Expand file tree Collapse file tree 19 files changed +350
-237
lines changed
csb_org_crossrepo_tracing/ccx-dep-trace-293/tests
ccx-onboard-search-201/tests
ccx-onboard-search-202/tests
ccx-onboard-search-203/tests
csb_org_org/ccx-agentic-290/tests
csb_sdlc_design/etcd-grpc-api-upgrade-001/tests
csb_sdlc_fix/flipt-ecr-auth-oci-fix-001/tests
csb_sdlc_refactor/python-http-class-naming-refac-001/tests Expand file tree Collapse file tree 19 files changed +350
-237
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # test.sh — Harbor compatibility wrapper
3+ # Harbor requires tests/test.sh for task discovery (TaskPaths.is_valid() check).
4+ # The actual evaluation logic lives in eval.sh (SWE-Factory exit-code-first pattern).
5+
6+ # sg_only_env: restore full repo before verification (no-op for regular runs)
7+ [ -f /tmp/.sg_only_mode ] && [ -f /tests/sgonly_verifier_wrapper.sh ] && source /tests/sgonly_verifier_wrapper.sh
8+
9+ exec bash " $( dirname " $0 " ) /eval.sh" " $@ "
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ if [ ! -f "$SOLUTION_FILE" ]; then
2626 exit 0
2727fi
2828
29- cat > /tmp/verify.py << 'PYEOF '
29+ VERIFY_SCRIPT=$( mktemp /tmp/verify_XXXXXX.py)
30+ cat > " $VERIFY_SCRIPT " << 'PYEOF '
3031import json, sys, re
3132sys.path.insert(0, "/tests")
3233from verifiers import SemanticRetrievalQAVerifier
@@ -64,5 +65,6 @@ except Exception as e:
6465 f.write("0.0")
6566PYEOF
6667
67- python3 /tmp/verify.py 2>&1 | tee /logs/verifier/verify-debug.log
68+ python3 " $VERIFY_SCRIPT " 2>&1 | tee /logs/verifier/verify-debug.log
69+ rm -f " $VERIFY_SCRIPT "
6870exit 0
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ if [ ! -f "$SOLUTION_FILE" ]; then
2626 exit 0
2727fi
2828
29- cat > /tmp/verify.py << 'PYEOF '
29+ VERIFY_SCRIPT=$( mktemp /tmp/verify_XXXXXX.py)
30+ cat > " $VERIFY_SCRIPT " << 'PYEOF '
3031import json, sys, re
3132sys.path.insert(0, "/tests")
3233from verifiers import SemanticRetrievalQAVerifier
@@ -64,5 +65,6 @@ except Exception as e:
6465 f.write("0.0")
6566PYEOF
6667
67- python3 /tmp/verify.py 2>&1 | tee /logs/verifier/verify-debug.log
68+ python3 " $VERIFY_SCRIPT " 2>&1 | tee /logs/verifier/verify-debug.log
69+ rm -f " $VERIFY_SCRIPT "
6870exit 0
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ if [ ! -f "$SOLUTION_FILE" ]; then
2626 exit 0
2727fi
2828
29- cat > /tmp/verify.py << 'PYEOF '
29+ VERIFY_SCRIPT=$( mktemp /tmp/verify_XXXXXX.py)
30+ cat > " $VERIFY_SCRIPT " << 'PYEOF '
3031import json, sys, re
3132sys.path.insert(0, "/tests")
3233from verifiers import SemanticRetrievalQAVerifier
@@ -64,5 +65,6 @@ except Exception as e:
6465 f.write("0.0")
6566PYEOF
6667
67- python3 /tmp/verify.py 2>&1 | tee /logs/verifier/verify-debug.log
68+ python3 " $VERIFY_SCRIPT " 2>&1 | tee /logs/verifier/verify-debug.log
69+ rm -f " $VERIFY_SCRIPT "
6870exit 0
You can’t perform that action at this time.
0 commit comments