Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,10 @@ jobs:
echo "Using persistent npm cache at ${cache_dir}"
du -sh "${cache_dir}" 2>/dev/null || true

- name: 'Disk floor gate (self-hosted)'
if: "${{ steps.ci_profile.outputs.ci_profile == 'full' && runner.environment == 'self-hosted' }}"
run: 'bash .github/scripts/check-disk-floor.sh "${GITHUB_WORKSPACE}" "${RUNNER_TEMP:-/tmp}"'

- name: 'Install Dependencies'
if: "${{ steps.ci_profile.outputs.ci_profile == 'full' }}"
env:
Expand Down
21 changes: 21 additions & 0 deletions scripts/tests/no-ak-integration-ci.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ describe('no-AK integration CI wiring', () => {
for (const stepName of [
'Setup Node.js (hosted)',
'Use pre-installed Node.js (self-hosted)',
'Disk floor gate (self-hosted)',
'Install Dependencies',
'Run required no-AK integration gate',
]) {
Expand All @@ -232,6 +233,26 @@ describe('no-AK integration CI wiring', () => {
).toContain("steps.ci_profile.outputs.ci_profile == 'full'");
}

const diskFloorGate = getWorkflowStep(
gateJob,
'Disk floor gate (self-hosted)',
);
expect(diskFloorGate).toContain(
"if: \"${{ steps.ci_profile.outputs.ci_profile == 'full' && runner.environment == 'self-hosted' }}\"",
);
expect(diskFloorGate).toContain(
'run: \'bash .github/scripts/check-disk-floor.sh "${GITHUB_WORKSPACE}" "${RUNNER_TEMP:-/tmp}"\'',
);
expect(diskFloorGate).not.toContain('continue-on-error');
expect(diskFloorGate).not.toContain('|| true');
expect(diskFloorGate).not.toContain('env:');
expect(gateJob.indexOf("id: 'ci_profile'")).toBeLessThan(
gateJob.indexOf("name: 'Disk floor gate (self-hosted)'"),
);
Comment thread
yiliang114 marked this conversation as resolved.
expect(
gateJob.indexOf("name: 'Disk floor gate (self-hosted)'"),
).toBeLessThan(gateJob.indexOf("name: 'Install Dependencies'"));

const gateStep = getWorkflowStep(
gateJob,
'Run required no-AK integration gate',
Expand Down
Loading