Upgrade/Downgrade integration tests fails when base resource type stays consistent #7397
Labels
bug
release/no-impact
This is an issue that never affected released versions (i.e. a regression caught prior to shipping).
Projects
Milestone
Summary
When the version of the
mock
base resource type doesn't change between thelatest
image and the dev image under test, the upgrade and downgrade tests fail with the following errors:Steps to reproduce
$ docker pull concourse/dev $ docker pull concourse/concourse $ docker-compose build $ go test -v ./integration/ops -run TestDowngrade
Expected results
Test succeeds
Actual results
Test fails with the error above
Additional context
Based on the logs, it appears as though it's failing trying to
FindOrCreateVolumeForBaseResourceType
:However, although the
/worker-state
directory gets wiped when we recreate the worker container, the DB still thinks the volume is created.Note that this only happens when the version for the
mock
base resource type stays consistent since otherwise the oldworker_base_resource_type
would be invalidated, as would the existing volume in the DB.Also note that we only started to experience this now as a result of 795dccb
Triaging info
The text was updated successfully, but these errors were encountered: