Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

View testjobs progress #1010

Merged
merged 7 commits into from
Dec 6, 2021
Merged

View testjobs progress #1010

merged 7 commits into from
Dec 6, 2021

Conversation

chaws
Copy link
Collaborator

@chaws chaws commented Nov 25, 2021

This patch allows SQUAD users to follow up which testjobs for a given build are completed, failed, running or still queued.

Below is a snapshot of how it looks like:

Screenshot from 2021-11-25 16-13-34

And below is another snapshot of the same view, this time for each environment:
Screenshot from 2021-11-25 16-13-55

I have also added an interval function in the browser that keeps updating the progress bar every MINUTE until the progress is 100%.

Also supports generating summaries per environment.

Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
Also allows users to specify summaries per environment.

Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
This patch displays a progress bar with regard to testjobs
completeness.

Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
This was causing filtering "Complete" to return testjobs
with job_status equals "Incomplete".

Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
@mrchapp
Copy link
Contributor

mrchapp commented Nov 25, 2021

WOW, this looks fantastic!

@nareshkamboju
Copy link

@chaws This is super useful for me !

@jscook2345
Copy link
Contributor

Code and demo LGTM. If @mrchapp and @nareshkamboju approve, I think it's safe to merge this.

@chaws
Copy link
Collaborator Author

chaws commented Nov 29, 2021

Thanks for review, @jscook2345 ! Please don't merge it yet as I need to apply feedback from @mrchapp and @nareshkamboju . The backend code won't change much, but some of JS will.

@chaws
Copy link
Collaborator Author

chaws commented Dec 3, 2021

Hey guys, I finished the update and it's looking like this:

Screenshot from 2021-12-03 15-49-07

I exaggerated the dragonboard env so it can stand out like a sore thumb. But this will keep updating on the fly and the bar width should change based on the number of testjobs as well.

If you like this now, I can merge it and we give it a go. Feedbacks are always welcome :)

@mrchapp
Copy link
Contributor

mrchapp commented Dec 3, 2021

I'm all for it. Let's take it for a test drive and see how it feels. Thanks!

@chaws
Copy link
Collaborator Author

chaws commented Dec 6, 2021

Ack! I'll just add a bit more tests to keep coverage above 80%, then I'll merge and roll it out to qa-reports.

@chaws chaws force-pushed the strips branch 2 times, most recently from cf089d1 to 4e75a09 Compare December 6, 2021 14:10
Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
It was requested that the project bars should be proportional to the
number of test jobs each environment has. This way, I introduced a
variable called shrink_factor that determines how a testjob
progress bar should shrink based on its number of testjobs when compared
with the environment with the most jobs.

Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
The old green was a bit too dark and hard on the eyes. This
new green should be better.

Signed-off-by: Charles Oliveira <charles.oliveira@linaro.org>
@chaws chaws merged commit 1f245d9 into Linaro:master Dec 6, 2021
@chaws chaws deleted the strips branch December 6, 2021 14:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants