-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add non legacy builders (<10.9) #119
Conversation
I have applied this to the test site: http://ec2-52-34-234-111.us-west-2.compute.amazonaws.com/ports/all_builds/ |
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
+ Coverage 73.91% 74.34% +0.42%
==========================================
Files 46 48 +2
Lines 1342 1364 +22
==========================================
+ Hits 992 1014 +22
Misses 350 350
Continue to review full report at Codecov.
|
I would ideally like to see just one instance of 10.6 on port health status, and just one entry in the filter. |
I am working on the new table design, shall I simply hardcode the |
This PR is not in the stage of merging right now, as it will cause migration conflicts with #126 . |
97edd6b
to
5a1af86
Compare
I have deployed this on the test site. I am utilising only one additional field Does it seem right now? @mojca |
Can you please try to import at least a few builds (even if just ten builds per worker)? I don't yet see any builds shown after the 22nd of August to be able to see how it works. |
I have started the process, the fetching should finish within next 10-15 minutes. |
Also, please do a hard refresh in the browser so that the changes to the javascript get reflected. |
Can you please point me to some actual builds? |
On the page: http://ec2-52-34-234-111.us-west-2.compute.amazonaws.com/ports/all_builds/ select builder The app is initially set to fetch only 20 builds for those builders which do not have any builds in the database, that is why we only get the latest 20 builds for the newly added And I also missed adding non-legacy builder for |
Perfect, thank you. They are there now, but I didn't see them earlier. The all_builds works precisely as desired. The port health on the other hand is picking up the legacy workers, maybe because you sorted by build number (but I didn't check). That said, the port health has other flaws, like: the user doesn't see if the worker is offline, or the latest build is still pending (10.5/ppc has been offline for ages and port health shows just whatever was built last); I would attempt to fix this with buildbot 2. Fetching just the latest 20 builds sounds fine. But we would need to distinguish between two different scenarios:
I'm ok with merging this now and fixing the issue with port health immediately after that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two hopefully minor changes to fix, and then we can merge it.
And then separately think of the best way to fetch all builds just on production machine.
app/ports/views.py
Outdated
all_latest_builds = BuildHistory.objects.all().order_by('port_name', 'builder_name__display_name', '-build_id').distinct('port_name', 'builder_name__display_name') | ||
port_latest_builds = list(BuildHistory.objects.filter(id__in=Subquery(all_latest_builds.values('id')), port_name__iexact=name).values('builder_name__name', 'builder_name__display_name', 'build_id', 'status')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can no longer sort by build id. Maybe by time_start
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thank you.
5a1af86
to
f0a2e47
Compare
This is probably ready to be merged now? I am sorry for the delay. |
Cool, perfect. Now we just need a way to fetch the old builds (fetch them all on the main server without having to fetch them on some test instances). |
Ok, we are still missing a few fixes. Looking at http://ec2-52-34-234-111.us-west-2.compute.amazonaws.com/port/qt59-qtserialport/, the builds are still picking the wrong builder. It works correctly if you switch to a different tab. It might make sense to clean up the code a bit, but for now at least we should fix that bug. |
I am sorry, could you please specify it more? Also, the recent changes (made today) have not been deployed to the test site due to migration conflicts. |
Hmmm ... I can no longer reproduce what I saw. The most likely explanation is that I was accidentally looking/clicking at the 10.7 builder which still points to the legacy build. It might have to do with me travelling on a bumpy road while trying to concentrate on the screen :) :) :) |
I will soon be doing the table related changes, but till then it would be better to not miss on the build history for the new builders.
#117