Skip to content

Commit

Permalink
skip image checksum test for system images
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 1, 2025
1 parent 80694ee commit c8c5d55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
16 changes: 11 additions & 5 deletions src/utils/manifest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
})

if (image.name === 'system') {
test('alt image', () => {
const fileNameSkipChunks = image.fileName.includes('-skip-chunks-');
const archiveUrlSkipChunks = image.archiveUrl.includes('-skip-chunks-');
expect(fileNameSkipChunks, 'file name and archive url to match').toBe(archiveUrlSkipChunks);

if (fileNameSkipChunks || archiveUrlSkipChunks) {
// pre AGNOS 11 assumption
expect(image.sparse, 'system image to be sparse').toBe(true)
expect(image.fileName, 'system image to be skip chunks').toContain('-skip-chunks-')
expect(image.archiveUrl, 'system image to point to skip chunks').toContain('-skip-chunks-')
})
} else {
// post AGNOS 11 assumption
expect(image.sparse, 'system image to not be sparse').toBe(false)
}
}

test('image and checksum', async () => {
Expand Down Expand Up @@ -69,7 +75,7 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
const imageWorker = await getImageWorker()

await imageWorker.unpackImage(image)
}, 8 * 60 * 1000)
}, { skip: image.name === 'system', timeout: 5 * 1000 })
})
}
})
Expand Down

0 comments on commit c8c5d55

Please sign in to comment.