1
0
Fork 0
mirror of https://github.com/rharkor/caching-for-turbo.git synced 2025-06-08 01:37:01 +09:00

refactor: debug file content

This commit is contained in:
rharkor 2025-04-10 12:18:57 +02:00
parent 66ed9aa778
commit 4221a56f51
4 changed files with 9 additions and 1 deletions

View file

@ -3,6 +3,8 @@
# Run the test and capture the output
npm run test -- --cache=remote:rw | tee test-output.log
cat test-output.log
# Check if the output contains "FULL TURBO"
if ! grep -q "FULL TURBO" test-output.log; then
echo "FULL TURBO not found in output"

3
dist/setup/index.js generated vendored
View file

@ -126853,6 +126853,9 @@ async function getCache(ctx, hash) {
const resp = await fetch(data.archiveLocation);
const size = +(resp.headers.get('content-length') || 0);
const readableStream = resp.body;
// Debug print file content
const fileContent = await resp.text();
ctx.log.info(`File content: ${fileContent}`);
if (!readableStream) {
throw new Error('Failed to retrieve cache stream');
}

2
dist/setup/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -66,6 +66,9 @@ export async function getCache(
const resp = await fetch(data.archiveLocation)
const size = +(resp.headers.get('content-length') || 0)
const readableStream = resp.body
// Debug print file content
const fileContent = await resp.text()
ctx.log.info(`File content: ${fileContent}`)
if (!readableStream) {
throw new Error('Failed to retrieve cache stream')
}