| Summary: | Offline mode should work when configuring target-platform-configuration to use a target definition file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Benjamin Cabé <contact> | ||||
| Component: | Tycho | Assignee: | Tobias Oberlies <t-oberlies> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | t-oberlies | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Benjamin Cabé
Created attachment 194270 [details]
log
Debug log of a "mvn install -o -X" of itp04-rcp ran right after a successful "mvn install"
I can confirm that offline mode was broken in 0.12.0 when using target files. It only worked for target platforms defined via repositories with layout p2.
Steps to reproduce:
1. Remove the repositories sections from /tycho-its/projects/target.offlineMode/pom.xml
2. Force the OfflineModeTest to use Tycho 0.12.0 by adding
verifier.getCliOptions().remove("-Dtycho-version=" + getTychoVersion());
verifier.getCliOptions().add("-Dtycho-version=0.12.0");
3. Run the OfflineModeTest (e.g. directly from the IDE)
The problematic code was removed during the work for bug 342808, so this this bug is fixed since ef10a61.
I could write an extended offline mode integration test which would have discovered this issue, but with the new code structure, I believe that the offline mode is very unlikely to break again unnoticed - even with only the existing test. To save integration test execution time, I decided to not extend the test.
Just one additional remark: There is one limitation to the offline mode support - the p2.index file will still be downloaded when in offline mode. The problem is that p2 currently doesn't allow to cache this file (see bug 337022 and bug 310546). If someone is really concerned about this behaviour, feel free to open a new bug for this in Tycho and/or to drive the fix of the p2 bug(s). |