I have committed a lot of translations to different modules. Right now I'm importing the translations to the localization server, and then I remove the CVS files I committed earlier.

From Maintainer News dec 7 2010:

A. If you are a translation maintainer: you've already been contacted, and
your team is in the process of moving from drupal.org to localize.drupal.org.

B. If you are a translator: stop working on .po files in CVS (either for
Drupal core or contrib), instead import existing .po files from CVS to
localize.drupal.org (if not already), remove the imported file from CVS and
work on localize.drupal.org from now on.

C. If you are a drupal.org project maintainer: do not accept .po files
anymore in your issue queues and remove your .pot files from CVS; tell people
to use localize.drupal.org.

Hmm, this isn't my issue... =)
The issue is that I can't find the latest releases for some modules at the localization server. Here are the two most recent I found:

Comments

gábor hojtsy’s picture

Title: Missing available releases » Localize.drupal.org release parsing broken with .zip packaging(?)
Project: Drupal.org site moderators » Drupal.org infrastructure
Component: Localize.drupal.org » localize.drupal.org
Priority: Normal » Critical

Huh, I don' have time to look at this immediately but assume this might have got broken with the .zip packaging that was rolled out on drupal.org. Possibly the ways we should collect this data changed. Doh. Moving to the infrastructure queue.

gábor hojtsy’s picture

Title: Localize.drupal.org release parsing broken with .zip packaging(?) » Localize.drupal.org release parsing broken since 2010 Christmas
Project: Drupal.org infrastructure » Localization server
Version: » 6.x-2.x-dev
Component: localize.drupal.org » Code
Status: Active » Needs review

Ok, looked this up in the database (although this is also visible on the UI). Basically, localize.drupal.org now has 29 thousand(!!!) releases waiting in the queue for being parsed. Uh, oh. Of course these are all due to #11416: Please provide *.zip downloads., which filled in the release file list with .zip files for each release. Localize.drupal.org tries to pick up the top 10 releases to parse on each cron run, but all of those are .zip files now, so none of them can be extracted by tar (unsurprisingly). Therefore parsing of releases is not happening. It last happened on December 24th, before .zip packaging was rolled out:

mysql> select from_unixtime(max(last_parsed)) from l10n_server_release;
+---------------------------------+
| from_unixtime(max(last_parsed)) |
+---------------------------------+
| 2010-12-24 20:46:24             | 
+---------------------------------+
1 row in set (0.02 sec)

Since all packages will be still provided in tar.gz as well, our script should just ignore all .zip files for releases. Looks like there was no schema change (good), so we need to look up the filename by pattern (bad). So change our query to filter for tar.gz files only. Here is a patch I think would do the trick, but not sure about how slow it is going to be :| Maybe its better to do the filtering outside the query. Here is another patch for that too.

All-in-all, I'll need to manually remove all .zip file entries once this new code is reviewed, committed and deployed, since the new code will not have .zip files carried over anymore, but the old ones need to be cleared out.

gábor hojtsy’s picture

StatusFileSize
new1019 bytes
new867 bytes

Patches got lost somehow, trying to attach again.

dww’s picture

Sorry, I didn't realize you were directly querying the d.o {files} table. The release history XML was altered in a backwards compatible way over at #652566: Support multiple download files per release in release history XML...

Anyway, yeah. Project* is struggling with the lack of an 'extension' column in {files}, too. We do various little tricks to parse the filename ourselves in PHP.

If you're JOINing on {project_release_file} already, perhaps the new weight column from #1006346: Add a {project_release_file}.weight column could help you. The .tar.gz for each release is (at least for now) always going to have the lightest weight. In fact, the main .tar.gz for a given release is always going to have weight 0, and the .zip will be weight 1. So, you could filter on that if you wanted. I don't know how often this query runs, but probably the LIKE would be more reliable than trusting weight, since we might change weights in the future (e.g. if the "put zip first" crowd wins that argument). Or just filter in PHP, sure. Either way seems fine, but I don't know enough about how this query is used to have a more definitive answer.

gábor hojtsy’s picture

Status: Needs review » Fixed

Ok, I committed the second patch and deployed that on localize.drupal.org. Also run this query:

mysql> delete from l10n_server_release where download_link like '%.zip';
Query OK, 28820 rows affected (0.39 sec)

Now it should be all up to the cron jobs to complete parsing the 223 outstanding releases that were not yet parsed due the days passed. This cron runs 4 times every hour and parses 10 releases at once. So handles 40 per hour, which means we should be done in 5-6 hours with catching up.

gábor hojtsy’s picture

Ok, Drupal 7.0 RC4 is now parsed and available and the parsing process seems to run great again. I sped it up by kicking the cron job more often, so we only have 100 releases to go in the queue now. Should be all done in a couple of hours.

dww’s picture

Great, glad to hear it! Sorry for the trouble .zip caused l.d.o -- definitely wasn't intentional...

Cheers,
-Derek

magnus’s picture

Great, thanks!
Then it's just Better Exposed Filters release 6.x-1.0 not working (only 6.x-1.0 beta1 shows up).

gábor hojtsy’s picture

@Magnus: yes, that one is actually a totally different issue. Can you open another issue about this? Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.