Current artifacts list of a recent build won't show all artifacts if view changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Capomastro |
Triaged
|
High
|
Unassigned |
Bug Description
Apparently not all built artifacts are being listed in the project's info view if you go there manually. Steps to reproduce below:
- Create dependencies of a project (tested with the 3 tarballs [custom, device and rootfs] of our staging env).
- Create a project with all the new dependencies.
- From the creation screen, build the project. You should see a notification like "Build '<timestamp>
- Keep refreshing that page until all is built, and the artifacts will get correctly listed in the "Build artifacts" section at the bottom.
- Now at the navigation bar click on Projects and navigate to the created/built project. In the "Current artifacts" section now only the last artifact built is shown, the others are not.
Screenshot attached.
Needs a closer look at projects/views.py, in the ProjectDetailView class where the contextdata is loaded, specifically the current_artifacts element.
It may be good to create a project that builds some "dummy" dependencies to try to reproduce this more quickly. If done in a development environment, tracing through the above mentioned method may yield why only the last artifact is shown.