diff --git a/.github/workflows/agentics-maintenance.yml b/.github/workflows/agentics-maintenance.yml index 82fc2c54..12b49c1f 100644 --- a/.github/workflows/agentics-maintenance.yml +++ b/.github/workflows/agentics-maintenance.yml @@ -13,7 +13,7 @@ # \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \ # \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/ # -# This file was automatically generated by pkg/workflow/maintenance_workflow.go. DO NOT EDIT. +# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.42.17). DO NOT EDIT. # # To regenerate this workflow, run: # gh aw compile @@ -47,7 +47,7 @@ jobs: pull-requests: write steps: - name: Setup Scripts - uses: github/gh-aw/actions/setup@v0.42.11-5-g59b2d5fe5 + uses: github/gh-aw/actions/setup@v0.42.17 with: destination: /opt/gh-aw/actions diff --git a/.github/workflows/build-test-java.lock.yml b/.github/workflows/build-test-java.lock.yml index 20e2ce0f..a32d78aa 100644 --- a/.github/workflows/build-test-java.lock.yml +++ b/.github/workflows/build-test-java.lock.yml @@ -99,6 +99,10 @@ jobs: - name: Checkout .github and .agents folders uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 with: + sparse-checkout: | + .github + .agents + depth: 1 persist-credentials: false - name: Setup Java uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 @@ -139,31 +143,8 @@ jobs: COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }} - name: Install GitHub Copilot CLI run: /opt/gh-aw/actions/install_copilot_cli.sh 0.0.405 - - name: Install awf dependencies - run: npm ci - - name: Build awf - run: npm run build - - name: Install awf binary (local) - run: | - WORKSPACE_PATH="${GITHUB_WORKSPACE:-$(pwd)}" - NODE_BIN="$(command -v node)" - if [ ! -d "$WORKSPACE_PATH" ]; then - echo "Workspace path not found: $WORKSPACE_PATH" - exit 1 - fi - if [ ! -x "$NODE_BIN" ]; then - echo "Node binary not found: $NODE_BIN" - exit 1 - fi - if [ ! -d "/usr/local/bin" ]; then - echo "/usr/local/bin is missing" - exit 1 - fi - sudo tee /usr/local/bin/awf > /dev/null <&1 | tee /tmp/gh-aw/agent-stdio.log env: diff --git a/.github/workflows/build-test-java.md b/.github/workflows/build-test-java.md index 82256fa4..268ded30 100644 --- a/.github/workflows/build-test-java.md +++ b/.github/workflows/build-test-java.md @@ -50,11 +50,30 @@ Clone and test the following projects from the test repository: 1. **Clone Repository**: `gh repo clone Mossaka/gh-aw-firewall-test-java /tmp/test-java` - **CRITICAL**: If clone fails, immediately call `safeoutputs-missing_tool` with message "CLONE_FAILED: Unable to clone test repository" and stop execution -2. **Test Projects**: +2. **Configure Maven Proxy**: Maven ignores Java system properties for proxy configuration, so you must create `~/.m2/settings.xml` before running any Maven commands: + ```bash + mkdir -p ~/.m2 + cat > ~/.m2/settings.xml << SETTINGS + + + + awf-httptruehttp + ${SQUID_PROXY_HOST}${SQUID_PROXY_PORT} + + + awf-httpstruehttps + ${SQUID_PROXY_HOST}${SQUID_PROXY_PORT} + + + + SETTINGS + ``` + +3. **Test Projects**: - `gson`: `cd /tmp/test-java/gson && mvn compile && mvn test` - `caffeine`: `cd /tmp/test-java/caffeine && mvn compile && mvn test` -3. **For each project**, capture: +4. **For each project**, capture: - Compile success/failure - Test pass/fail count - Any error messages diff --git a/src/docker-manager.ts b/src/docker-manager.ts index 43f38d0d..18481fe9 100644 --- a/src/docker-manager.ts +++ b/src/docker-manager.ts @@ -478,8 +478,9 @@ export function generateDockerCompose( const userHome = getRealUserHome(); agentVolumes.push(`${userHome}:/host${userHome}:rw`); - // /tmp is needed for chroot mode to write temporary command scripts - // The entrypoint.sh writes to /host/tmp/awf-cmd-$$.sh + // /tmp is needed for chroot mode to write: + // - Temporary command scripts: /host/tmp/awf-cmd-$$.sh + // - One-shot token LD_PRELOAD library: /host/tmp/awf-lib/one-shot-token.so agentVolumes.push('/tmp:/host/tmp:rw'); // Minimal /etc - only what's needed for runtime