Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyautoplot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
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
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
Jan David Mol
pyautoplot
Commits
a29afa9e
Commit
a29afa9e
authored
8 years ago
by
ruudbeukema
Browse files
Options
Downloads
Patches
Plain Diff
Added explanation of test-mode switches available in the scripts to the README file
parent
4f2750b5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README
+49
-0
49 additions, 0 deletions
README
with
49 additions
and
0 deletions
README
+
49
−
0
View file @
a29afa9e
------------------------------------------------------------------------------------------------------------------------
DEPLOYMENT FOR PRODUCTION USE
------------------------------------------------------------------------------------------------------------------------
In script/create_html.py: TESTLINE = "" must be active
In script/launch-msplots.sh: TESTLINE = "" must be active
PYAUTOPLOT_TAG=latest must be active
------------------------------------------------------------------------------------------------------------------------
DEPLOYMENT FOR TESTING ON THE PRODUCTION SYSTEM
------------------------------------------------------------------------------------------------------------------------
In order to test the script on the production system in parallel to the stable script, please ensure that the TESTLINE
parameter is set to some text in both shell- and python-script, e.g:
TESTLINE = "-test"
Additionally, set the PYAUTOPILOT_TAG to a text different from latest, in order to distinguish it from the stable
pyautoplot:latest on the production system, e.g:
PYAUTOPLOT_TAG=my_test
Additionally, make sure to run in the docker-launch-msplots.sh script with environment variable TAG set to my_test (or
whatever you defined for PYAUTOPLOT_TAG). Therefore copy the default inspection-plots-observations.sh script and modify
the --export=TAG=latest line, e.g:
----------------------------------------------------
#!/bin/bash
OBSID=$1
exec sbatch \
--partition=cobalt \
--nice=1000 \
--mem=4000 \
--nodes=20-50 --cpus-per-task=2 \
--job-name="inspection-$OBSID" \
--output=/data/log/inspection-plots-$OBSID.log \
--export=TAG=my_test \ <-- instead of --export=TAG=latest
docker-launch-msplots.sh "$@"
----------------------------------------------------
Now you can manually run the inspection-plots script with some SAS ID, completely separate from the one used in the
production flow.
NOTE: DON'T FORGET TO REVERT TO AN EMPTY 'TESTLINE' AND 'PYAUTOPLOT_TAG=latest' ONCE YOU'RE DONE TESTING AND WANT TO USE
THE SCRIPT IN THE PRODUCTION FLOW!
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