Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring the option to ignore p2 mirrors via the Maven settings #3295

Conversation

vogella
Copy link
Contributor

@vogella vogella commented Dec 20, 2023

Commit 7e6d595 has removed the option to use the settings.xml to disable the usage of p2 mirrors.

See https://github.com/eclipse-tycho/tycho/wiki/Frequently-asked-questions#how-do-i-disable-p2-mirrors

Restores this option and give the command line option priority.

@laeubi
Copy link
Member

laeubi commented Dec 20, 2023

Please use eclipse.p2.mirrors property instead here.

Also it seems your are working on an outdated master branch.

@vogella vogella force-pushed the restore-disable-p2-mirror-via-maven-settings branch from b7ba020 to a47c112 Compare December 20, 2023 09:54
@vogella
Copy link
Contributor Author

vogella commented Dec 20, 2023

Please use eclipse.p2.mirrors property instead here.

eclipse.p2.mirrors is the new tycho.disableP2Mirrors? Do we want to support both or only the latest? Shall I also update the FAQ? https://github.com/eclipse-tycho/tycho/wiki/Frequently-asked-questions#how-do-i-disable-p2-mirrors

Also it seems your are working on an outdated master branch.

Ah, you moved to main, will update

@vogella vogella force-pushed the restore-disable-p2-mirror-via-maven-settings branch from a47c112 to d1f537e Compare December 20, 2023 10:13
Copy link

github-actions bot commented Dec 20, 2023

Test Results

  579 files  ±0    579 suites  ±0   3h 50m 28s ⏱️ + 6m 31s
  383 tests ±0    376 ✅ +1   7 💤 ±0  0 ❌  - 1 
1 149 runs  ±0  1 127 ✅ +1  22 💤 ±0  0 ❌  - 1 

Results for commit ca5ea44. ± Comparison against base commit 1f99d2d.

♻️ This comment has been updated with latest results.

@laeubi
Copy link
Member

laeubi commented Jan 6, 2024

@vogella the next bugfix release will happen at end of this month, do you plan to finish your work here so it can be included?

@laeubi laeubi added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Jan 6, 2024
@vogella
Copy link
Contributor Author

vogella commented Jan 9, 2024

Looking into it now

@vogella vogella force-pushed the restore-disable-p2-mirror-via-maven-settings branch from d1f537e to e277ed2 Compare January 9, 2024 08:23
@vogella
Copy link
Contributor Author

vogella commented Jan 9, 2024

@vogella the next bugfix release will happen at end of this month, do you plan to finish your work here so it can be included?

Thanks for the ping and happy new year to you.

Copy link
Member

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

I think there should be a method that encapsulates the retrival of a property, the both code pathes manly differ in the property name used, so something like:

String deprecatedValue = getMirrorProperty("tycho.disableP2Mirrors");
String newValue = getMirrorProperty("eclipse.p2.mirrors");

currently the logic for both properties is duplicated what makes it hard to follwo what happens and to check for the fallbacks (e.g. session)

@laeubi
Copy link
Member

laeubi commented Jan 15, 2024

@vogella can you make sure the pom.xml change is reverted and apply the suggestions, it seems usefull to include this in the enxt bugfix release.

@vogella
Copy link
Contributor Author

vogella commented Jan 15, 2024

Is tomorrow timing-wise ok? Today I'm working outside Eclipse world

@laeubi
Copy link
Member

laeubi commented Jan 15, 2024

Yes we still have some days until release, I just don'T want to delay it forever as theres always something new :-D

eclipse.p2.mirrors option

Commit 7e6d595 has removed the option for tycho.disableP2Mirrors
to use the settings.xml to disable the usage of p2 mirrors.

See https://github.com/eclipse-tycho/tycho/wiki/Frequently-asked-questions#how-do-i-disable-p2-mirrors
@vogella vogella force-pushed the restore-disable-p2-mirror-via-maven-settings branch from e277ed2 to ca5ea44 Compare January 16, 2024 13:32
@vogella
Copy link
Contributor Author

vogella commented Jan 16, 2024

I updated the change

Copy link
Member

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

Looks good now and build is green.

@laeubi laeubi merged commit 22a18fd into eclipse-tycho:main Jan 17, 2024
10 checks passed
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants