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
b9a8a851
Commit
b9a8a851
authored
1 year ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
data-setup: add a --bundle-brick argument to the full data-setup
Lets make larger use of this.
parent
0afcc61b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
suites/hg/setup-data/setup-full.py
+13
-0
13 additions, 0 deletions
suites/hg/setup-data/setup-full.py
with
13 additions
and
0 deletions
suites/hg/setup-data/setup-full.py
+
13
−
0
View file @
b9a8a851
...
...
@@ -35,6 +35,11 @@
help
=
"
Path to a working-copy data brick for this data-env
\n
(See
'
suites/hg/make-working-copy-brick.py
'
)
"
,
)
@click.option
(
"
--bundle-brick
"
,
type
=
click
.
Path
(
exists
=
True
,
dir_okay
=
True
,
file_okay
=
True
,
path_type
=
Path
),
help
=
"
Path to a bundles data brick for this data-env
\n
(See
'
suites/hg/brick-setup/create-bundle-brick
'
)
"
,
)
@click.option
(
"
--force
"
,
is_flag
=
True
,
help
=
"
Overwrites the data-env description file if it exists
"
,
...
...
@@ -44,6 +49,7 @@
repo
:
Path
,
name
,
wc_brick
,
bundle_brick
,
force
:
bool
,
):
"""
Record information about a data environment, given a folder
...
...
@@ -92,6 +98,7 @@
data_env
=
str
(
data_env
)
repo
=
str
(
repo
)
wc_brick
=
str
(
wc_brick
)
if
wc_brick
is
not
None
else
None
bundle_brick
=
str
(
bundle_brick
)
if
bundle_brick
is
not
None
else
None
# XXX should probably automatically find scripts and run them.
# However there are few of them now so explicit listing seems simpler.
...
...
@@ -123,6 +130,12 @@
subprocess
.
run
(
[
SCRIPT_DIR
/
"
setup-55-delta-chain.py
"
,
data_env
],
check
=
True
)
if
bundle_brick
is
not
None
:
click
.
echo
(
"
Setting up bundles related benchmark
"
)
subprocess
.
run
(
[
SCRIPT_DIR
/
"
setup-60-bundles
"
,
data_env
,
bundle_brick
],
check
=
True
,
)
if
__name__
==
"
__main__
"
:
...
...
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