Skip to content

Upgrade registry-image-resource in CI pipelines to 1.5.0 #30408

Closed
@wilkinsona

Description

@wilkinsona

We've recently experienced hangs when extracting a CI image:

goroutine 1 [semacquire, 5 minutes]:
sync.runtime_Semacquire(0xc0002fe748)
	/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0002fe740)
	/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/vbauerster/mpb.(*Progress).Wait(0xc000384940)
	/go/pkg/mod/github.com/vbauerster/[email protected]+incompatible/progress.go:172 +0x55
github.com/concourse/registry-image-resource/commands.unpackImage(0xc000410680, 0x15, 0x9fe040, 0xc000384340, 0x0, 0x9f3d60, 0xc00000e020, 0xc00023de40, 0xc0006181e0)
	/src/commands/unpack.go:67 +0x5da
github.com/concourse/registry-image-resource/commands.rootfsFormat(0x7fff6969eea4, 0xe, 0x9fe040, 0xc000384340, 0xc000384300, 0x9f3d60, 0xc00000e020, 0xc000146120, 0x0)
	/src/commands/in.go:250 +0xfd
github.com/concourse/registry-image-resource/commands.save(0x7fff6969eea4, 0xe, 0x0, 0x0, 0x0, 0xc000022b20, 0x17, 0xc00002128b, 0x5, 0xc0000246f0, ...)
	/src/commands/in.go:211 +0x4e9
github.com/concourse/registry-image-resource/commands.saveWithRetry.func1(0x335ed649, 0xc293e0)
	/src/commands/in.go:199 +0x111
github.com/concourse/registry-image-resource.RetryOnRateLimit.func1(0xc000714120, 0xc000384360)
	/src/backoff.go:25 +0x2a
github.com/cenkalti/backoff.RetryNotify(0xc0002d5a20, 0x9f7020, 0xc000714120, 0x92a8b0, 0x0, 0x0)
	/go/pkg/mod/github.com/cenkalti/[email protected]+incompatible/retry.go:37 +0x210
github.com/concourse/registry-image-resource.RetryOnRateLimit(0xc0002d5a58, 0x5, 0x0)
	/src/backoff.go:24 +0xd7
github.com/concourse/registry-image-resource/commands.saveWithRetry(0x7fff6969eea4, 0xe, 0x0, 0x0, 0x0, 0xc000022b20, 0x17, 0xc00002128b, 0x5, 0xc0000246f0, ...)
	/src/commands/in.go:198 +0x138
github.com/concourse/registry-image-resource/commands.(*in).Execute(0xc0002d5f30, 0x445197, 0xbe49e0)
	/src/commands/in.go:137 +0x7df
main.main()
	/src/cmd/in/main.go:20 +0xd2

It appears to be stuck in a call to Progress.Wait. This has been reported in concourse/registry-image-resource#303 and a fix has been made in concourse/registry-image-resource#311. Upgrading to 1.5.0 will pick up the fix and hopefully allow the image to be unpacked.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions