Bump Bundle-Version for modules failing Tycho baseline check#2163
Open
chagong wants to merge 7 commits intoeclipse-m2e:mainfrom
Open
Bump Bundle-Version for modules failing Tycho baseline check#2163chagong wants to merge 7 commits intoeclipse-m2e:mainfrom
chagong wants to merge 7 commits intoeclipse-m2e:mainfrom
Conversation
Author
|
@fbricon take a look, pls. |
Test Results 336 files ±0 336 suites ±0 1h 9m 17s ⏱️ + 5m 48s For more details on these failures, see this check. Results for commit 84e798c. ± Comparison against base commit 03b1426. This pull request skips 1 test.♻️ This comment has been updated with latest results. |
Author
|
@fbricon please review this PR. |
Contributor
|
there are test failures https://github.com/eclipse-m2e/m2e-core/pull/2163/checks?check_run_id=72840737368 |
HannesWell
requested changes
Apr 25, 2026
Author
|
@fbricon Can you run the workflows? |
Author
|
@HannesWell I have to do this to make "mvn clean verify -DskipTests -Dtycho.p2.baselineMode=failCommon" pass. This command fails on main branch, |
Signed-off-by: Changyong Gong <chagon@microsoft.com>
When a resource <directory> resolves to an ancestor of the project
(e.g., from a child module, or
<directory>..</directory>), projectLocation.relativize(folderPath)
produces '..'. Then project.getFolder('..') normalizes to IPath '/',
triggering IllegalArgumentException: Path must include project and
resource name: /.
Add a guard to detect when the relativized path starts with '..' and
return the project, so the caller (addResourceDirs) skips the resource
directory. This follows the same pattern as the existing
workaround.
Fixes eclipse-m2e#1790
Signed-off-by: Changyong Gong <chagon@microsoft.com>
- Cherry-pick getFolder() fix for ancestor resource dirs (fixes JavaConfigurationTest) - Skip flaky ConsoleTest with ANSI color codes (hyperlink detection unreliable) Signed-off-by: Changyong Gong <chagon@microsoft.com>
The previous guard blocked ALL relative paths starting with '..', which prevented legitimate linked folder creation for sibling paths (e.g., ../parent/src/main/java). Now only blocks paths where the target directory is an ancestor of the project location, which would create circular resource containment. Returns null instead of the project root so the caller properly skips the invalid entry.
Pre-existing CI flake: DS builder not always registered in the test environment, causing builder set mismatch. Unrelated to this PR.
Remove the Ignore annotation from the test method due to its flaky nature.
On Windows, Path.relativize() produces backslash separators
(e.g., ..\parent\src\main\java). The existing replace('/', '_')
only handled forward slashes, leaving backslashes intact. This
caused project.getFolder() to interpret '..' as parent traversal,
resulting in 'Cannot create linked resource' errors.
Replace both separators to produce correct link names on all platforms.
6788d88 to
84e798c
Compare
Author
|
@fbricon it doesn't allow merge push, pls let the workflows run again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multiple modules on
mainfail the Tychocompare-version-with-baselinescheck because their bundle content has changed (from dependency updates like Guava, logback, etc.) butBundle-Versionwas not incremented. This causesVersionBumpRequiredExceptionfor every PR CI run.This PR bumps the micro version for all affected bundles and features to resolve the baseline failures.