Release v0.2.0
The changes in this release cover general improvements to the scripts running the policy engine. Here is a full list of changes:
Major changes:
- Added
getopt
functionality allowing the user to specify the following variables in the function call:-
outdir
: parent directory for the log to be placed in -
output-log-prefix
: the prefix to add to the policy file name to specify extra metadata -
policy-file
: path to the policy file -
device
: path or name of the target of the policy
-
- Removed use of environment variables not explicitly set in the
run-mmpol.sh
script. These were also removed from thesubmit-pol-job
script and replaced with the corresponding values to be explicitly passed - Default policy file prefix is automatically created from the
device
path or name if not passed as an argument - Set user:group ownership to $USER:atlab.
- Set permissions
-
log_dir
:2770
to cause subdirectories and files to be group writable and inherit theatlab
group automatically -
log_dir/raw
:1550
to set the sticky bit so the raw log cannot be deleted except by root and theraw
directory cannot be changed -
log_dir/raw/log.gz
:440
-
- Automatically
gzip
the log file - Implements changes suggested in #17 (closed).
run-mmpol
now creates a single directory to store the raw policy output, the split gz files, and the parquet files plus anything else associated with the run. The directory name matches the name of the log file.
Minor changes:
- Changed some variable names to maintain consistency with related scripts
- Full device path is used in the prefix, changing
/
to-
. All metadata entries in the file/directory names are separated by_
for clarity - Added dry-run option to all 3 scripts for testing. Dry runs submit no jobs and make no changes to any directory structure.
- Changed methods for finding the raw log once it's created and moving/renaming it
- Removed default device from
run-mmpol.sh
. Now the device must be specified regardless of which script is run.
Syntax Changes:
- Encased all called variables in
"{}"
for clarity in variable substitution. - Replaced ```` syntax with
$()
when performing command substitution
Issues Fixed:
- Fixes #30 (closed)
- Fixes #26 (closed)
- Fixes #25 (closed)
- Fixes #24 (closed)
- Fixes #17 (closed)