Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parse-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s2870355
parse-ci
Commits
14e32996
Commit
14e32996
authored
11 months ago
by
s2870355
Browse files
Options
Downloads
Patches
Plain Diff
fix print of sequential
parent
2339d9c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
parse-ci.py
+7
-3
7 additions, 3 deletions
parse-ci.py
with
7 additions
and
3 deletions
parse-ci.py
+
7
−
3
View file @
14e32996
...
...
@@ -143,10 +143,10 @@ def run_ci(compile_info : list[job_data]) -> bool:
runnable_job
=
get_runnable_job
(
compile_info
,
jobs
)
if
runnable_job
is
not
None
:
print_info
(
compile_info
,
jobs
,
[
runnable_job
])
if
'
--sequential
'
in
sys
.
argv
:
(
task
,
output
)
=
run_cli_sequential
(
runnable_job
)
else
:
print_info
(
compile_info
,
jobs
)
(
task
,
output
)
=
run_cli_parallel
(
runnable_job
)
jobs
.
append
((
runnable_job
,
task
,
output
))
change
=
True
...
...
@@ -160,7 +160,7 @@ def run_ci(compile_info : list[job_data]) -> bool:
print
(
"
\t
"
+
i
.
location
)
return
True
def
print_info
(
compile_info
,
jobs
):
def
print_info
(
compile_info
,
jobs
,
additional
=
None
):
os
.
system
(
"
cls||clear
"
)
completed_count
=
0
failed_count
=
0
...
...
@@ -179,7 +179,11 @@ def print_info(compile_info, jobs):
for
job
in
jobs
:
(
job_info
,
task
,
output
)
=
job
print
(
"
\t
"
+
job_info
.
location
)
if
additional
is
None
:
return
for
job
in
additional
:
print
(
"
\t
"
+
job
.
location
)
def
get_stages
(
compile_info
:
list
[
job_data
])
->
list
[
str
]:
stages
=
[]
for
i
in
compile_info
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment