Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QMLBench Regression Finder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daniel Smith
QMLBench Regression Finder
Commits
c49850a9
Commit
c49850a9
authored
Jul 27, 2020
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix add job formatting diagnostics
parent
918463e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
regressionFinder.py
regressionFinder.py
+1
-1
toolbox.js
toolbox.js
+2
-1
No files found.
regressionFinder.py
View file @
c49850a9
...
...
@@ -646,7 +646,7 @@ def lookupCommitByRef(ref, module=""):
try
:
# Get the fetch addresses so we can pull and check out the revision.
for
item
in
commitJSON
[
"revisions"
]:
if
patchset
==
item
[
"_number"
]:
if
patchset
==
commitJSON
[
"revisions"
][
item
]
[
"_number"
]:
return
(
commitJSON
[
"revisions"
][
item
][
"fetch"
][
"anonymous http"
][
"url"
],
module
)
except
Exception
:
print
(
f"Unable to get fetch URL for desired patchset
{
patchset
}
"
)
...
...
toolbox.js
View file @
c49850a9
...
...
@@ -129,7 +129,7 @@ function jobFormatter(job, hosts, callback) {
}
/logs/
${
job
.
test_hosts
[
0
]}
/
${
job
.
jobHash
}
.txt'">View Log</button>`
;
}
if
(
job
.
status
!=
"
failed
"
&&
job
.
status
!=
"
cancelled
"
)
{
if
(
job
.
status
!=
"
failed
"
&&
job
.
status
!=
"
cancelled
"
&&
job
.
status
!=
"
finished
"
)
{
view
.
cancelButton
=
`<button onclick="doCancel('
${
job
.
jobHash
}
')"
${
job
.
status
==
"
cancelling
"
?
"
disabled
"
:
""
}
>Cancel</button>`
;
...
...
@@ -138,6 +138,7 @@ function jobFormatter(job, hosts, callback) {
if
(
view
.
timeEstimate
)
view
.
timeEstimate
=
`<br>
${
view
.
timeEstimate
}
`
console
.
log
(
job
,
view
);
// Return a formatted HTML string of the job to insert into the page.
fetch
(
`http://
${
domain
}
:
${
webPort
}
/templates/job.mustache`
)
.
then
((
response
)
=>
response
.
text
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment