| Summary: | Inaccessible p2 repository leads to resolution problem - build should fail at root cause | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Tobias Oberlies <t-oberlies> |
| Component: | Tycho | Assignee: | Igor Fedorenko <igor> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | igor |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tobias Oberlies
@Igor: I assume that "try to use local cache" used to do something - but what? And what was the use case for not failing the build straight away? Tycho is expected to fall-back to locally cached repository metadata if repository is not accessible, provided there is local cache of course, and I am pretty sure it does that. This is extremely useful behaviour for flaky repositories, like download.eclipse.org right after a release. The correct implementation should fail fast when remote repository is not accessible and there is no local cache, but I am not sure p2 provides a way to check that. At least I could not find a way. (In reply to comment #2) > Tycho is expected to fall-back to locally cached repository metadata if > repository is not accessible, provided there is local cache of course, and I am > pretty sure it does that. This is extremely useful behaviour for flaky > repositories, like download.eclipse.org right after a release. > > The correct implementation should fail fast when remote repository is not > accessible and there is no local cache, but I am not sure p2 provides a way to > check that. At least I could not find a way. I have to take this back. Due to apparent regression Tycho never falls back to local cache. I will push the fix with proper cache fall back bahavior, more precise warning message and a regression test shortly. Should be fixed now. http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=65efe36e1e583a370bb6306d574b70490de12052 I've just fixed another case that goes in the same direction: The build now fails if a repository with layout p2 from the POM doesn't parse as URL/URI. Submitted as a93b668 [1] to 0.15.0-SNAPSHOT. [1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=a93b668e6790fe3f1f82fde24408ee958fac87be |