File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- ROOT =" $( cd " $( dirname " $0 " ) /../../.. " && pwd) "
5- WORKSPACE=" $ROOT /crates/code "
4+ SCRIPT_DIR =" $( cd " $( dirname " $0 " ) " && pwd) "
5+ WORKSPACE=" $( cd " $SCRIPT_DIR /.. " && pwd ) "
66
77cd " $WORKSPACE "
88
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- ROOT=" $( cd " $( dirname " $0 " ) /../../.." && pwd) "
5- WORKSPACE=" $ROOT /crates/code"
6- CONFIG_FILE=" ${A3S_CONFIG_FILE:- $ROOT / .a3s/ config.acl} "
4+ SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
5+ WORKSPACE=" $( cd " $SCRIPT_DIR /.." && pwd) "
6+ MONOREPO_ROOT=" $( cd " $WORKSPACE /../../.." && pwd) "
7+ if [ -f " $MONOREPO_ROOT /.a3s/config.acl" ]; then
8+ CONFIG_ROOT=" $MONOREPO_ROOT "
9+ else
10+ CONFIG_ROOT=" $WORKSPACE "
11+ fi
12+ CONFIG_FILE=" ${A3S_CONFIG_FILE:- $CONFIG_ROOT / .a3s/ config.acl} "
713TARGET_DIR=" ${TARGET_DIR:- $WORKSPACE / target/ coverage-kimi} "
814PROF_DIR=" ${PROF_DIR:- $TARGET_DIR / profraw} "
915PROFDATA=" ${PROFDATA:- $TARGET_DIR / a3s-code-core.profdata} "
@@ -26,7 +32,7 @@ if [ "$REPORT_ONLY" != "1" ]; then
2632 cargo test -p a3s-code-core --lib --manifest-path " $WORKSPACE /Cargo.toml" --target-dir " $TARGET_DIR "
2733
2834 echo " [2/4] Running real provider ACL env integration smoke test"
29- " $ROOT /crates/code /scripts/real_config_env_integration.sh"
35+ " $WORKSPACE /scripts/real_config_env_integration.sh"
3036else
3137 echo " [1/4] Skipping test execution (REPORT_ONLY=1)"
3238 echo " [2/4] Reusing existing coverage artifacts"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- ROOT=" $( cd " $( dirname " $0 " ) /../../.." && pwd) "
5- CONFIG_FILE=" ${A3S_CONFIG_FILE:- $ROOT / .a3s/ config.acl} "
4+ SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
5+ WORKSPACE=" $( cd " $SCRIPT_DIR /.." && pwd) "
6+ MONOREPO_ROOT=" $( cd " $WORKSPACE /../../.." && pwd) "
7+ if [ -f " $MONOREPO_ROOT /.a3s/config.acl" ]; then
8+ CONFIG_ROOT=" $MONOREPO_ROOT "
9+ else
10+ CONFIG_ROOT=" $WORKSPACE "
11+ fi
12+ CONFIG_FILE=" ${A3S_CONFIG_FILE:- $CONFIG_ROOT / .a3s/ config.acl} "
613
714if [ ! -f " $CONFIG_FILE " ]; then
815 echo " config file not found: $CONFIG_FILE " >&2
2431
2532echo " Running real MiniMax/OpenAI-compatible smoke through .a3s/config.acl"
2633echo " Config: $CONFIG_FILE "
27- A3S_CONFIG_FILE=" $CONFIG_FILE " " $ROOT /crates/code /scripts/real_config_env_integration.sh"
34+ A3S_CONFIG_FILE=" $CONFIG_FILE " " $WORKSPACE /scripts/real_config_env_integration.sh"
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- ROOT=" $( cd " $( dirname " $0 " ) /../../.." && pwd) "
5- WORKSPACE=" $ROOT /crates/code"
6- CONFIG_FILE=" ${A3S_CONFIG_FILE:- $ROOT / .a3s/ config.acl} "
4+ SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
5+ WORKSPACE=" $( cd " $SCRIPT_DIR /.." && pwd) "
6+ MONOREPO_ROOT=" $( cd " $WORKSPACE /../../.." && pwd) "
7+ if [ -f " $MONOREPO_ROOT /.a3s/config.acl" ]; then
8+ CONFIG_ROOT=" $MONOREPO_ROOT "
9+ else
10+ CONFIG_ROOT=" $WORKSPACE "
11+ fi
12+ CONFIG_FILE=" ${A3S_CONFIG_FILE:- $CONFIG_ROOT / .a3s/ config.acl} "
713MODE=" ${1:- real} "
814
915if [ " $MODE " != " real" ] && [ " $MODE " != " --dry-run" ]; then
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- ROOT=" $( cd " $( dirname " $0 " ) /../../.." && pwd) "
5- WORKSPACE=" $ROOT /crates/code"
4+ SCRIPT_DIR=" $( cd " $( dirname " $0 " ) " && pwd) "
5+ WORKSPACE=" $( cd " $SCRIPT_DIR /.." && pwd) "
6+ MONOREPO_ROOT=" $( cd " $WORKSPACE /../../.." && pwd) "
7+ if [ -f " $MONOREPO_ROOT /.a3s/config.acl" ]; then
8+ CONFIG_ROOT=" $MONOREPO_ROOT "
9+ else
10+ CONFIG_ROOT=" $WORKSPACE "
11+ fi
612
713cd " $WORKSPACE "
814
@@ -38,7 +44,7 @@ echo "[10/11] Checking ACL env injection dry run"
3844scripts/real_config_env_integration.sh --dry-run
3945
4046echo " [11/11] Checking real-provider ACL env smoke availability"
41- CONFIG_FILE=" ${A3S_CONFIG_FILE:- $ROOT / .a3s/ config.acl} "
47+ CONFIG_FILE=" ${A3S_CONFIG_FILE:- $CONFIG_ROOT / .a3s/ config.acl} "
4248CONFIG_HAS_LITERAL_OPENAI_CREDS=0
4349if [ -f " $CONFIG_FILE " ]; then
4450 CONFIG_HAS_LITERAL_OPENAI_CREDS=" $(
You can’t perform that action at this time.
0 commit comments