Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
dd1718d4
Commit
dd1718d4
authored
1 year ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
run: copy data env in a dedicated empty directory
This will avoid picky the temporary copy as a valid data env by mistake.
parent
8ac4768d
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python-libs/poulpe/runner.py
+10
-6
10 additions, 6 deletions
python-libs/poulpe/runner.py
with
10 additions
and
6 deletions
python-libs/poulpe/runner.py
+
10
−
6
View file @
dd1718d4
...
...
@@ -97,11 +97,13 @@
do_snapshot
=
NO_SNAPSHOT
if
reference
.
parent
==
tmp
.
parent
:
do_snapshot
=
_may_snapshot
(
reference
)
if
BTRFS_DEBUG
and
do_snapshot
==
COULD_SNAPSHOT_BUT_NOT_SUBVOLUME
:
m
=
"
skipping btrfs snapshot: data env not a subvolume
"
print
(
m
,
file
=
sys
.
stderr
)
# IMPORTANT NOTE: here assume we always copy the data env on the same file
# system as the source. It is important regarless of using btrfs so we can
# assume this will remains the case in the future.
do_snapshot
=
_may_snapshot
(
reference
)
if
BTRFS_DEBUG
and
do_snapshot
==
COULD_SNAPSHOT_BUT_NOT_SUBVOLUME
:
m
=
"
skipping btrfs snapshot: data env not a subvolume
"
print
(
m
,
file
=
sys
.
stderr
)
start
=
time
.
monotonic
()
if
do_snapshot
in
COPY_AS_SNAPSHOT
:
...
...
@@ -171,7 +173,9 @@
tmp_data
=
None
if
run_in_copy
:
tmp_data
=
data_env_path
.
parent
/
f
"
TMP-
{
data_env_path
.
name
}
"
tmp_dir
=
data_env_path
.
parent
/
"
.tmp/
"
os
.
makedirs
(
tmp_dir
,
exist_ok
=
True
)
tmp_data
=
tmp_dir
/
data_env_path
.
name
copy_data_env
(
data_env_path
,
tmp_data
)
data_env_path
=
tmp_data
...
...
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