We are currently creating update related information for all channels even if we just bump the version in a particular channel. Instead we should try to create only the update information (incremental .mar files; XML file updates...) needed for the particular channel: if we release a new stable version there should be no need to have an alpha build lying around for creating incremental stable .mar files. Nor should there be a need for updating alpha related XML files in this case.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
Currently, all the xml files are stored in the same directory, with a single .htaccess file for all channels redirecting to the corect xml file. The changes needed in the update_responses script will be the following:
creating a separate directory containing xml files and an .htaccess for each channel
adding a command line flag to select which channel to update / generate incremental mars for
Trac: Owner: erinn to boklm Status: new to assigned
How will this change affect the browser's update client? Do you plan to use an additional .htaccess file to redirect update URL requests to the correct location based on channel?
How will this change affect the browser's update client? Do you plan to use an additional .htaccess file to redirect update URL requests to the correct location based on channel?
This should not affect the browser's update client. The content returned by all URLs should be the same as before.
Instead of having one .htaccess that redirect based on channel, OS, version and language, we would have one separate .htaccess for each channel, in a sub-directory, which redirects based on OS, version and language. The matching of the channel would be done with the directory name.
This should not affect the browser's update client. The content returned by all URLs should be the same as before.
Instead of having one .htaccess that redirect based on channel, OS, version and language, we would have one separate .htaccess for each channel, in a sub-directory, which redirects based on OS, version and language. The matching of the channel would be done with the directory name.
Thanks for the clarification. I should have looked at our app.update.url format before I posted my question; for some reason I forgot that %CHANNEL%/ (with trailing /) was in there in such a convenient way.
This loads a few URLs and check that it returns the expected version, includes incremental mars, or returns no update if we already have the latest version.
It requires installing 2 perl modules: XML::LibXML and LWP (libxml-libxml-perl and libwww-perl packages on Debian/Ubuntu).
After generating the xml responses using 'make update_responses update_responses-alpha' and copying the htdocs directory to a test web server, I used the 'check_update_responses_deployement' to check it. The only errors it found are caused by the osx32 -> osx64 migration:
on the release channel, errors on the Darwin_x86_64-gcc3 URLs, which is normal since we don't have yet a release for this architecture on this channel
on the alpha channel, no incremental mars on Darwin_x86-gcc3, which is normal since we don't generate the Darwin_x86-gcc3 -> Darwin_x86_64-gcc3 incrementals
I think we need to remove the trailing '/' in the source argument of the rsync command, so that the $TORBROWSER_UPDATE_CHANNEL directory is created on the server.
So the rsync command should be:
torsocks rsync -av htdocs/$TORBROWSER_UPDATE_CHANNEL staticiforme.torproject.org:/srv/dist-master.torproject.org/htdocs/torbrowser/update_2/
While updating the release process, I have an other small patch that I'm attaching: since #13379 (moved), running "make incrementals" does not generate the new update responses, so we need to run "make update_responses" before uploading them.
While updating the release process, I have an other small patch that I'm attaching: since #13379 (moved), running "make incrementals" does not generate the new update responses, so we need to run "make update_responses" before uploading them.
Good catch. You are missing a cd ../../ or something, right?