Skip to content

Bug: PullAllowedDockerImages task does not resolve correct requried-docker-images.txt path #900

@kimeta

Description

@kimeta

Describe the bug

When a single test directory corresponds to multiple library versions:

{
    "test-project-path" : "org.flywaydb/flyway-sqlserver/10.10.0",
    "libraries" : [
      {
        "name" : "org.flywaydb:flyway-sqlserver",
        "versions" : [
          "10.10.0",
          "10.13.0"
        ]
      }
    ]
  }

./gradlew pullAllowedDockerImages -Pcoordinates=org.flywaydb:flyway-sqlserver:10.13.0 should search for
tests/src/org.flywaydb/flyway-sqlserver/10.10.0/required-docker-images.txt, since version 10.13.0 is associated with the test directory tests/src/org.flywaydb/flyway-sqlserver/10.10.0/. However it searches for literal test coordinates and looks for: tests/src/org.flywaydb/flyway-sqlserver/10.13.0/required-docker-images.txt which does not exist, causing the docker image fetch to fail.

Steps to reproduce

./gradlew pullAllowedDockerImages -Pcoordinates=org.flywaydb:flyway-sqlserver:10.13.0

Expected behavior

Pull correct docker image.

Logs and error messages

> Task :pullAllowedDockerImages FAILED

[Incubating] Problems report is available at: file:///home/mihailo/git/reachability-metadata-dev/graalvm-reachability-metadata/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':pullAllowedDockerImages'.
> No matching coordinates found. Provide --coordinates=<filter> (preferred) or -Pcoordinates=<filter>, or a fractional batch 'k/n'.

Reproducer (optional)

No response

Additional context

No response

GraalVM version

GraalVM 25.0.1

Operating system

Linux

CPU architecture

AMD64 (x86-64)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions