这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .github/workflows/turborepo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ jobs:
path: cli/.cram_env
key: prysk-venv-${{ matrix.os.runner }}

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6

- name: Enable Rust verbose logging
run: |
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
Expand All @@ -171,37 +168,13 @@ jobs:
rustc --version --verbose
cargo --version --verbose
rustup show
echo "=== sccache stats (before) ==="
sccache --show-stats || echo "sccache not available or failed"
shell: bash

- name: Integration Tests
timeout-minutes: 45
run: |
if [ -z "${RUSTC_WRAPPER}" ]; then
unset RUSTC_WRAPPER
fi
turbo run test --filter=turborepo-tests-integration --color --env-mode=strict --token=${{ secrets.TURBO_TOKEN }} --team=${{ vars.TURBO_TEAM }}
shell: bash
env:
SCCACHE_BUCKET: turborepo-sccache
SCCACHE_REGION: us-east-2
# Only use sccache if we're in the Vercel repo.
RUSTC_WRAPPER: ${{ !github.event.pull_request.head.repo.fork && 'sccache' || '' }}
CARGO_INCREMENTAL: 0
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# sccache timeout configuration to prevent hangs
SCCACHE_IDLE_TIMEOUT: 0
SCCACHE_REQUEST_TIMEOUT: 30
SCCACHE_ERROR_LOG: error

- name: Show sccache stats
if: always()
run: |
echo "=== sccache stats (after) ==="
sccache --show-stats || echo "sccache not available or failed"
shell: bash

- name: Capture state on timeout
if: cancelled()
Expand Down Expand Up @@ -386,9 +359,6 @@ jobs:
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6

- name: Enable Rust verbose logging
run: |
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
Expand Down Expand Up @@ -417,42 +387,17 @@ jobs:
powershell "Get-CimInstance Win32_OperatingSystem | Select-Object FreePhysicalMemory,TotalVisibleMemorySize | Format-List"
powershell "Get-CimInstance Win32_LogicalDisk | Select-Object DeviceID,Size,FreeSpace | Format-Table -AutoSize"
fi
echo "=== sccache stats (before) ==="
sccache --show-stats || echo "sccache not available or failed"
shell: bash

- name: Run tests
timeout-minutes: 120
# We explicitly unset RUSTC_WRAPPER if it is an empty string as causes build issues
run: |
if [ -z "${RUSTC_WRAPPER}" ]; then
unset RUSTC_WRAPPER
fi
if [ "$RUNNER_OS" == "Windows" ]; then
cargo test --workspace --exclude turborepo-napi
else
cargo test --workspace
fi
shell: bash
env:
SCCACHE_BUCKET: turborepo-sccache
SCCACHE_REGION: us-east-2
# Only use sccache if we're in the Vercel repo.
RUSTC_WRAPPER: ${{ !github.event.pull_request.head.repo.fork && 'sccache' || '' }}
CARGO_INCREMENTAL: 0
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# sccache timeout configuration to prevent hangs
SCCACHE_IDLE_TIMEOUT: 0
SCCACHE_REQUEST_TIMEOUT: 30
SCCACHE_ERROR_LOG: error

- name: Show sccache stats
if: always()
run: |
echo "=== sccache stats (after) ==="
sccache --show-stats || echo "sccache not available or failed"
shell: bash

- name: Capture state on timeout
if: cancelled()
Expand Down
9 changes: 1 addition & 8 deletions cli/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@
"rust-src"
],
"passThroughEnv": [
"ProgramData",
// sccache related flags
"SCCACHE_BUCKET",
"SCCACHE_REGION",
"RUSTC_WRAPPER",
"CARGO_INCREMENTAL",
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY"
"ProgramData"
]
},
"release-native": {
Expand Down
Loading