| Summary: | rewrite http:// to file:// to improve aggregation build performance on build machine | ||
|---|---|---|---|
| Product: | Community | Reporter: | David Williams <david_williams> |
| Component: | Cross-Project | Assignee: | David Williams <david_williams> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | irbull, mknauer, sbouchet |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
David Williams
I should say explicitly, this shouldn't effect anyone running b3 aggregator locally, since the build scripts only do the conversion if the 'rewriteRepositoryURLValue' property has been defined. And, it goes without saying, contributors must still use http://download.eclispe.org in their contributions (and their own repositories URLs) since in general, this needs to "work" as is, at locations other than build.eclipse.org. Oh, one cautionary note, the script currently does a blind substitution of all occurrences of "http://download.eclipse.org". As far as I can tell, that is only used in repository location attributes ... but, if that changes in future and is used somewhere else for some other purpose, then the "replace" task may have to be made more sophisticated. I need to reopen this one, at least I think this change causes some problems in the compositeArtifacts.jar that can be found in /releases/staging at the moment.
2011-06-07 10:39 compositeArtifacts.jar:
<repository name='Indigo artifacts' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1'>
...
<children size='2'>
<child location='file:///home/data/httpd/download.eclipse.org/eclipse/updates/3.7milestones/S-3.7RC4-201106030909'/>
<child location='aggregate'/>
</children>
</repository>
The first child location is just a local one and should be a http://... location.
I fixed this manually on the file system... this is a one-time fix only and will be broken with the next update of /releases/staging Old file as a backup: 2011-06-07 10:39 compositeArtifacts.jar.backup New (manually fixed) file: 2011-06-07 11:16 compositeArtifacts.jar Thanks, Markus. I knew it was too easy :) I've fixed this by specifically excluding ep.b3aggrcon and equinox.b3aggrcon files from being rewritten. So, their "trusted repository" URLs should stay as provided when written in compositeArtifacts. Kind of hard coded ... but pretty sure those will be our only trusted repos, for a while. Probably won't even lose that much in performance gains, since we don't mirror those anyway. A new "staging" won't be ready for several hours ... I'll be sure to confirm before promoting. Let me know if you see any other issues. To cross-reference, see also bug 347956 for some possibly improved future support, directly in b3 aggregator. Thanks again, |