Skip to content

Commit

Permalink
test fix - load packages after first prime
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanmars committed May 24, 2024
1 parent cae75a0 commit 4186749
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ci-tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export async function run(): Promise<void> {

const packageIdByDigest = new Map<string, string>()
const packagesById = new Map<string, any>()

Check warning on line 154 in src/ci-tester.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unexpected any. Specify a different type

Check warning on line 154 in src/ci-tester.ts

View workflow job for this annotation

GitHub Actions / Integration Tests

Unexpected any. Specify a different type
await githubPackageRepo.loadPackages(packageIdByDigest, packagesById)

const dummyDigest =
'sha256:1a41828fc1a347d7061f7089d6f0c94e5a056a3c674714712a1481a4a33eb56f'
Expand All @@ -165,6 +164,8 @@ export async function run(): Promise<void> {
undefined,
args.token
)
// load after dummy to make sure the package exists on first clone/setup
await githubPackageRepo.loadPackages(packageIdByDigest, packagesById)

// remove all the existing images - except for the dummy image
const digests = await registry.getAllTagDigests()
Expand All @@ -190,6 +191,7 @@ export async function run(): Promise<void> {
// make any deletions
} else if (args.mode === 'validate') {
// test the repo after the test
await githubPackageRepo.loadPackages(packageIdByDigest, packagesById)

let error = false

Expand Down

0 comments on commit 4186749

Please sign in to comment.