Skip to content

Commit fe09a14

Browse files
authored
chore(nx): Cleanup after cache debugging (#496)
1 parent caa436e commit fe09a14

File tree

12 files changed

+136
-4174
lines changed

12 files changed

+136
-4174
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,3 @@ jobs:
3737

3838
- name: 🧪 Test
3939
run: yarn test-ci --minWorkers=1 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
40-
41-
- name: 📁 Upload Cache Investigation Reports
42-
if: always()
43-
uses: actions/upload-artifact@v4
44-
with:
45-
name: cache-investigation-reports-${{ inputs.os }}-${{ github.run_id }}
46-
path: |
47-
packages/testing/.cache-investigation/*.json
48-
retention-days: 30
49-
continue-on-error: true

.github/workflows/ci.yml

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -214,79 +214,6 @@ jobs:
214214
with:
215215
os: ${{ matrix.os }}
216216

217-
cache-investigation:
218-
needs:
219-
- check
220-
- build-lint-test
221-
- tutorial-e2e
222-
- smoke-tests
223-
- smoke-tests-react-18
224-
- cli-smoke-tests
225-
- telemetry-check
226-
- rsc-smoke-tests
227-
- ssr-smoke-tests
228-
- fragments-smoke-tests
229-
- create-cedar-app
230-
- server-tests
231-
- background-jobs-e2e
232-
if: failure()
233-
234-
name: 🔍 Cache Investigation (on failure)
235-
runs-on: ubuntu-latest
236-
timeout-minutes: 30
237-
238-
steps:
239-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
240-
241-
- name: ⬢ Enable Corepack
242-
run: npm install --global --force corepack
243-
244-
- name: ⬢ Set up Node.js
245-
uses: actions/setup-node@v4
246-
with:
247-
node-version: 20
248-
cache: 'yarn'
249-
250-
- name: 🐈 Install dependencies
251-
env:
252-
GITHUB_TOKEN: ${{ github.token }}
253-
YARN_ENABLE_HARDENED_MODE: 0
254-
run: |
255-
yarn install --frozen-lockfile --inline-builds
256-
yarn --cwd packages/create-cedar-rsc-app install --inline-builds
257-
258-
- name: 🔍 Run Cache Investigation
259-
env:
260-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
261-
YARN_ENABLE_HARDENED_MODE: 0
262-
run: |
263-
echo "🔍 Build failed, running cache investigation..."
264-
yarn tsx tasks/framework-tools/tarsync/debug-master.mts quick
265-
continue-on-error: true
266-
267-
- name: 📁 Upload Debug Reports
268-
if: always()
269-
uses: actions/upload-artifact@v4
270-
with:
271-
name: debug-reports-${{ github.run_id }}
272-
path: |
273-
cache-investigation-report.json
274-
environment-analysis-report.json
275-
task-scheduling-report.json
276-
retention-days: 30
277-
278-
- name: 🔧 Debug Investigation Failure
279-
if: failure()
280-
run: |
281-
echo "=== Investigation Debug Info ==="
282-
ls -la *-report.json || echo "No reports generated"
283-
df -h
284-
free -h
285-
echo "=== Nx Cache Status ==="
286-
ls -la .nx/cache || echo "No cache directory"
287-
echo "=== Directory structure ==="
288-
ls -la
289-
290217
ci-status-check:
291218
needs:
292219
- check

0 commit comments

Comments
 (0)