Creating an artifact with a duplicate name and location results in two artifacts

Bug #1284299 reported by Francis Ginther
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Triaged
Medium
Francis Ginther

Bug Description

Calling the ticketartifact API twice with the same data appears to result in two artifacts being create, even though both have the same name and URL.

I ran into this while trying to add artifacts from the lander while it was stuck in an infinite loop. I soon had dozens of repeating copies of the same set of artifacts in the ticket view, but the container only had 5 real files.

here's an example of the call parameters (the file has been removed from storage):
[http://10.55.32.245:8080/api/v1/ticketartifact/]: {'ticket': '/api/v1/ticket/3/', 'type': 'RESULTS', 'name': 'lander_master.all.json', 'reference': 'https://swift.canonistack.canonical.com/v1/AUTH_a1412d7034ce49b2a980b84b15c04372/lander.3/lander_master.all.json'}

I'll file this as medium as the caller shouldn't normally be generating duplicate artifacts.

Tags: airline
Revision history for this message
Andy Doan (doanac) wrote :

Francis - was this using my branch that added artifacts to the ticket-system? I was wondering if we shouldn't prefix some of these names from the lander with the jenkins buildnumber or something. That way we can see diffs between re-runs ?

tags: added: airline
Changed in ubuntu-ci-services-itself:
assignee: nobody → Francis Ginther (fginther)
Ursula Junque (ursinha)
Changed in uci-engine:
assignee: nobody → Francis Ginther (fginther)
importance: Undecided → Medium
Evan (ev)
no longer affects: ubuntu-ci-services-itself
Vincent Ladeuil (vila)
Changed in uci-engine:
status: New → Triaged
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.