-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom archive mode #627
Merged
Merged
Custom archive mode #627
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
fbca19a
local/remote switch for rsync
jkbecker a39f39a
fix local rsync dest
jkbecker fc7ea41
add notes to config.yaml
jkbecker f3281d6
Merge branch 'development' of github.com:ericaltendorf/plotman into a…
jkbecker ad86f13
Merge branch 'setup' into archivelocal
jkbecker 715267b
Merge branch 'setup' of github.com:jkbecker/plotman into archivelocal
jkbecker 6882e10
Merge branch 'development' of github.com:jkbecker/plotman into archiv…
jkbecker 829661c
Update config.yaml
jkbecker aae3654
Update src/plotman/archive.py
jkbecker 9f205df
Merge branch 'development' of github.com:ericaltendorf/plotman into a…
jkbecker c570f7c
Merge branch 'archivelocal' of github.com:jkbecker/plotman into archi…
jkbecker c7d8ce2
adapt config template
jkbecker 68b683f
adapt error message
jkbecker 9d5ae8a
doc fix
jkbecker 2d917fa
whitespace, defaults
jkbecker 43ead3d
Update src/plotman/configuration.py
jkbecker 4aee539
Merge branch 'development' into archivelocal
altendky 194dc6d
Update src/plotman/configuration.py
jkbecker c5d5ad6
Update src/plotman/archive.py
jkbecker 59de0c6
Update src/plotman/archive.py
altendky 7f15c43
Merge branch 'development' of github.com:ericaltendorf/plotman into a…
jkbecker 11d06a7
new config file format supporting local archive mode
jkbecker 6df447e
prepare for legacy vs extendable new configs
jkbecker b97c385
merging
jkbecker 4c92cb1
better example value for local mode
jkbecker 57ebfe5
some archive tests
jkbecker 160b3f9
rsync_dest -> arch_dest refactoring
jkbecker fff7c22
Merge branch 'development' into archivelocal
altendky 12a8214
custom archive
altendky c3737ee
less debuggy
altendky 8978b4d
locally detects free space and transfers
altendky 82b3684
rsync argument tweaks
altendky 33e2760
skip malformed df-alike output
altendky 239892a
Merge branch 'development' into custom_archive
altendky 73fe689
switch to scripts
altendky 7480d2d
correct default scripts
altendky a35959c
add a little config example
altendky 28d434f
Merge branch 'development' into custom_archive
altendky 5866683
just break archiving and make it all new
altendky 141ba38
less path
altendky 6e291bb
fix archive prefix identification
altendky 3c8ead9
add preliminary explanation and examples in config
altendky 0a1e96e
misc
altendky f24a372
fixup for archive subcommand as well
altendky 68db1f2
links to wiki for configuration versions
altendky cc25e05
minor cleanup
altendky de73ed4
cleanup temp script files
altendky 2519534
--preallocate --whole-file
altendky 41d9033
correct indentation in example config
altendky 7ad3405
explain disk space script output format
altendky d512f6b
lots of logging from the disk script
altendky 8fa5f37
fixup
altendky 816f430
slight refactor for reporting
altendky 87cbdb8
less recalculation in get_running_archive_jobs()
altendky cf12e4c
hold multiple archival target definitions
altendky efbe6d0
add env with defaults and mandatories for target definitions
altendky 22ce23f
add preset archiving target definitions
altendky 4a4a4f3
log archive transfer activities
altendky d12ffd4
Merge branch 'development' into custom_archive
altendky 50fcceb
Apply suggestions from code review
altendky c87f6e8
add set -evx to archival presets
altendky 1132260
archive -> disk space in log message
altendky 7ab1523
be agnostic to trailing /s on site_root (again)
altendky 2d87e20
add logging (for disk space script output)
altendky 2461304
allow integers as env values to avoid user confusion specifying ports
altendky 4001446
Merge branch 'development' into custom_archive
altendky d7aca71
top level logging: and plots/transfers/application log path configura…
altendky 33b3b97
tidy
altendky c070605
shift some IO up a layer
altendky 77c5ec1
a couple more cfg.logging.plots
altendky ab0614b
Merge branch 'interactive-noauto-start' into custom_archive
altendky af155b2
Merge branch 'interactive-noauto-start' into custom_archive
altendky 3abc9d2
Merge branch 'interactive-noauto-start' into custom_archive
altendky 175aebc
Merge branch 'development' into custom_archive
altendky 2e27644
handle some None outputs
altendky d680322
printf for mawk to avoid scientific notation etc
altendky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,6 @@ | ||
from plotman import archive, configuration, job, manager | ||
from plotman import archive, job | ||
|
||
|
||
def test_compute_priority(): | ||
assert (archive.compute_priority( job.Phase(major=3, minor=1), 1000, 10) > | ||
archive.compute_priority( job.Phase(major=3, minor=6), 1000, 10) ) | ||
|
||
def test_rsync_dest(): | ||
arch_dir = '/plotdir/012' | ||
arch_cfg = configuration.Archive( | ||
rsyncd_module='plots_mod', | ||
rsyncd_path='/plotdir', | ||
rsyncd_host='thehostname', | ||
rsyncd_user='theusername', | ||
rsyncd_bwlimit=80000 | ||
) | ||
|
||
# Normal usage | ||
assert ('rsync://theusername@thehostname:12000/plots_mod/012' == | ||
archive.rsync_dest(arch_cfg, arch_dir)) | ||
|
||
# Usage for constructing just the prefix, for scanning process tables | ||
# for matching jobs. | ||
assert ('rsync://theusername@thehostname:12000/' == | ||
archive.rsync_dest(arch_cfg, '/')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be prudent to check it on startup rather than here. I added a snipped in another comment.