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:
parent
66ed9aa778
commit
4221a56f51
4 changed files with 9 additions and 1 deletions
|
@ -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
3
dist/setup/index.js
generated
vendored
|
@ -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
2
dist/setup/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
3
src/lib/cache/index.ts
vendored
3
src/lib/cache/index.ts
vendored
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue