"Allow ARM" checkbox in archive admin UI does not work correctly

Bug #594237 reported by LaMont Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jelmer Vernooij

Bug Description

When attempting to allow arm builds on a ppa, the UI on the page fails to actually set the flag.

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Hi LaMont,

Is the ARM processor family set as being restricted in the database yet?

Changed in soyuz:
status: New → Triaged
importance: Undecided → Medium
tags: added: ppa
tags: added: ui
Jelmer Vernooij (jelmer)
Changed in soyuz:
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
LaMont Jones (lamont) wrote :

Having played with this a bit more on dogfood, here is what I've found:

1) we used a little sql to set everything up the way it should be:

BEGIN;
INSERT INTO archivearch (archive, processorfamily)
    (SELECT archive.id, processorfamily.id FROM archive, processorfamily
     WHERE purpose=2
     AND require_virtualized=False
     AND processorfamily.name = 'arm');

INSERT INTO archivearch (archive, processorfamily)
    (SELECT archive.id, processorfamily.id FROM archive, distribution, processorfamily
     WHERE archive.purpose=1
     AND distribution.name='ubuntu'
     AND archive.distribution = distribution.id
     AND processorfamily.name = 'arm');

UPDATE processorfamily SET restricted = True WHERE name = 'arm';
COMMIT;

2) https://dogfood.launchpad.net/~lamont/+archive/ppa/+admin (archive.id = 870)
  a) "Allow ARM builds for this archive" shows checked, which is LYING
  b) uncheck said box, click Save: all of the rows inserted in step 1 are now GONE
  c) go back and check said box, click Save: we now have a row for archive 870, arm. (this piece is actually correct..)

3) https://dogfood.launchpad.net/~mvo/+archive/ppa/+admin (archive.id = 476)
  a) "Allow ARM builds for this archive" shows checked, which is LYING
  b) uncheck said box, click Save: the row inserted in 2c is now GONE
  c) go back and check said box, click Save: we now have a row for archive 476, arm. (this piece is actually correct..)

So...
1) if the archive we are administering lacks a row in archivearch, it should not show as allowed
2) clearing the checkbox should not obliterate all of the allowed archives

Ivy (armel buildd) is configured on dogfood for testing.

lamont

summary: - Allow building on ARM user interface fails to set the flag.
+ "Allow ARM" checkbox in archive admin UI does not work correctly
Jelmer Vernooij (jelmer)
Changed in soyuz:
status: Triaged → In Progress
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in soyuz:
status: In Progress → Fix Committed
Ursula Junque (ursinha)
Changed in soyuz:
milestone: none → 10.07
Jelmer Vernooij (jelmer)
tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Jelmer Vernooij (jelmer) wrote :
Revision history for this message
Julian Edwards (julian-edwards) wrote :

The new fix works.

tags: added: qa-ok
removed: qa-bad
Curtis Hovey (sinzui)
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.