Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
core
picodata
Commits
4d739e77
Commit
4d739e77
authored
6 months ago
by
Виталий Шунков
Browse files
Options
Downloads
Patches
Plain Diff
ci: add debug to fetch tags script
add limit to fetch
parent
e6d0f4b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1268
ci: add debug to fetch tags script
Pipeline
#50208
failed
6 months ago
Stage: test
Stage: docker
Stage: stress-test
Stage: front-deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/get_tags.py
+8
-1
8 additions, 1 deletion
tools/get_tags.py
with
8 additions
and
1 deletion
tools/get_tags.py
+
8
−
1
View file @
4d739e77
...
...
@@ -13,6 +13,7 @@ PROJECT_DIR = pathlib.Path(__file__).parent.parent
def
run_shell
(
path
,
shell
=
True
,
executable
=
'
/bin/bash
'
,
text
=
True
):
retry
=
GET_SOURCES_ATTEMPTS
limit
=
100
timeout
=
3
while
retry
>
0
:
try
:
...
...
@@ -27,13 +28,19 @@ def run_shell(path, shell=True, executable='/bin/bash', text=True):
return
print
(
"
fetching tag for
"
,
path
)
subprocess
.
run
(
proc
=
subprocess
.
run
(
"
git fetch --deepen 50
"
,
shell
=
shell
,
executable
=
executable
,
text
=
text
,
cwd
=
"
{}/{}
"
.
format
(
PROJECT_DIR
,
path
),
)
print
(
"
stdout={}, stderr={}, code={}
"
.
format
(
proc
.
stdout
,
proc
.
stderr
,
proc
.
returncode
))
limit
-=
1
if
limit
<
0
:
print
(
"
can
'
t fetch tags
"
)
return
2
except
Exception
as
e
:
print
(
"
can
'
t run:
"
+
str
(
e
))
retry
-=
1
...
...
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