Skip to content

Conversation

@jormundur00
Copy link
Member

@jormundur00 jormundur00 commented Nov 20, 2025

What does this PR do?

In this PR we introduce a skipped-versions field to the individual libraries index.json file. This field contains a list of (version, reason) pairs which define versions that we skip testing for, for the reason listed in the reason field.
When fetching versioned libraries for testing, library versions listed in skipped-versions are omitted from testing.

Fixes: #757, #743, #734.

@jormundur00 jormundur00 added the enhancement New feature or request label Nov 20, 2025
@jormundur00 jormundur00 self-assigned this Nov 20, 2025
},
{
"version": "1.0.7",
"reason": "Resource metadata provided in reflect-config.json."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a reason to skip, only if it fails. We need maven issues here, broken builds etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the example reason to Integrated reflect-config.json does not parse. (which reflects the issue in practice with the opentelemetry:1.34.0 libraries).

"skipped-versions": [
{
"version": "1.34.0",
"reason": "Dependency io.opentelemetry:opentelemetry-api:1.34.0 provides resource metadata inside of a reflect-config.json file."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reflect-config.json that does not parse.

}
}

static List<String> getSkippedVersions(String libraryModule) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment please.

null,
coordinates.version(),
List.of(coordinates.version()));
List.of(coordinates.version()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be on the same line.

List<String> testedVersions
List<String> testedVersions,
@JsonProperty("skipped-versions")
List<SkippedVersionEntry> skippedVersions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do build tools care about this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT, build tools look for specific fields by string when parsing index.json, so any additional fields will just be ignored. This change shouldn't affect build tools.

@jormundur00 jormundur00 merged commit 81796fe into master Nov 21, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Field to skip a library version in automated testing due to issues with the image build

2 participants