Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
aeaef79
fix default worker bug with all steps
bgunnar5 May 4, 2023
ad75ed6
bugfix/worker-all-steps (#419)
bgunnar5 May 4, 2023
f7508dd
version bump and requirements fix
bgunnar5 May 4, 2023
c8c6a44
release/1.10.1 (#420)
bgunnar5 May 4, 2023
98e06f6
Bugfix/filename-special-vars (#425)
bgunnar5 May 25, 2023
b8dd2b2
Create dependabot-changelog-updater.yml
bgunnar5 May 26, 2023
4c40423
testing outputs of modifying changelog
bgunnar5 May 26, 2023
2d231fb
delete dependabot-changelog-updater
bgunnar5 May 26, 2023
6b142d9
feature/pdf-docs (#427)
bgunnar5 Jun 28, 2023
e3e1a30
bugfix/openfoam_singularity_issues (#426)
bgunnar5 Jun 28, 2023
12ff3d7
bugfix/output-path-substitution (#430)
bgunnar5 Jul 11, 2023
5c69c0b
bugfix/scheduler-permission-error (#436)
bgunnar5 Aug 4, 2023
c01f635
Release/1.10.2 (#437)
bgunnar5 Aug 4, 2023
9c52ba2
resolve develop to main merge issues (#439)
bgunnar5 Aug 5, 2023
d63661c
resolve merge conflicts
bgunnar5 Aug 5, 2023
b0f4d86
dependabot/certifi-requests-pygments (#441)
bgunnar5 Aug 17, 2023
c641c5c
bugfix/server-pip-redis-conf (#443)
bgunnar5 Aug 18, 2023
970a06f
bump to version 1.10.3 (#444)
bgunnar5 Aug 18, 2023
0384463
Merge branch 'main' into develop
bgunnar5 Aug 18, 2023
1977f1b
Merge remote-tracking branch 'origin/develop' into develop
bgunnar5 Aug 18, 2023
d8bfbdb
bugfix/sphinx-5.3.0-requirement (#446)
bgunnar5 Aug 22, 2023
8241bfe
feature/vlauncher (#447)
bgunnar5 Sep 28, 2023
50d0fb6
release/1.11.0 (#448)
bgunnar5 Sep 28, 2023
066bea1
resolve merge conflicts
bgunnar5 Oct 5, 2023
99d5659
bugfix/skewed-sample-hierarchy (#450)
bgunnar5 Oct 9, 2023
593dbcd
bugfix/lsf-gpu-typo (#453)
bgunnar5 Oct 23, 2023
f994f96
release/1.11.1 (#454)
bgunnar5 Oct 23, 2023
89093dd
resolve merge conflict
bgunnar5 Oct 23, 2023
5dc8206
Add Pytest Fixtures to Test Suite (#456)
bgunnar5 Nov 2, 2023
38651f2
Bugfix for WEAVE CI (#457)
bgunnar5 Nov 15, 2023
83f4a7c
A new example for having the workflow stop the workers itself. This h…
dylancliche Dec 1, 2023
adf5d66
Updated
dylancliche Dec 4, 2023
d3ee3d5
Made general
dylancliche Dec 4, 2023
536914f
Took contact info out of README
dylancliche Dec 4, 2023
581b7fa
Updated CHANGELOG.md
dylancliche Dec 4, 2023
55ea1c0
Fixed a bug. Where the <targetSpecFile> would show up using scontrol …
dylancliche Dec 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to Merlin will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Pytest fixtures in the `conftest.py` file of the integration test suite
- NOTE: an export command `export LC_ALL='C'` had to be added to fix a bug in the WEAVE CI. This can be removed when we resolve this issue for the `merlin server` command
- Tests for the `celeryadapter.py` module
- New example for stopping an ensemble workflow in `merlin/examples/workflows/stop_ensemble/`.

## [1.11.1]
### Fixed
- Typo in `batch.py` that caused lsf launches to fail (`ALL_SGPUS` changed to `ALL_GPUS`)

## [1.11.0]
### Added
- New reserved variable:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
4 changes: 2 additions & 2 deletions merlin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down Expand Up @@ -38,7 +38,7 @@
import sys


__version__ = "1.11.0"
__version__ = "1.11.1"
VERSION = __version__
PATH_TO_PROJ = os.path.join(os.path.dirname(__file__), "")

Expand Down
2 changes: 1 addition & 1 deletion merlin/ascii_art.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/abstracts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/abstracts/enums/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/openfilelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/opennpylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/sample_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/sample_index_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/security/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/security/encrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/common/security/encrypt_backend_traffic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
4 changes: 2 additions & 2 deletions merlin/common/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down Expand Up @@ -480,7 +480,7 @@ def expand_tasks_with_samples( # pylint: disable=R0913,R0914
if not found_tasks:
for next_index_path, next_index in sample_index.traverse(conditional=condition):
LOG.info(
f"generating next step for range {next_index.min}:{next_index.max} {next_index.max-next_index.min}"
f"generating next step for range {next_index.min}:{next_index.max} {next_index.max - next_index.min}"
)
next_index.name = next_index_path

Expand Down
2 changes: 1 addition & 1 deletion merlin/common/util_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/config/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/config/celeryconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/config/configfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/config/results_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/data/celery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/examples/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
2 changes: 1 addition & 1 deletion merlin/examples/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# LLNL-CODE-797170
# All rights reserved.
# This file is part of Merlin, Version: 1.11.0.
# This file is part of Merlin, Version: 1.11.1.
#
# For details, see https://github.com/LLNL/merlin.
#
Expand Down
70 changes: 70 additions & 0 deletions merlin/examples/workflows/stop_ensemble/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
+----------------------------------------------------+
| |
| Stop Ensemble Example |
| |
| Description: Hello World example including a quit |
| script to stop running and dependent |
| jobs running the Merlin workflow. |
| |
| Important Scripts: -workers.sbatch |
| -hello_samples.yaml |
| -quitScript.sh |
| |
+----------------------------------------------------+


==========================================================
Running the Example
==========================================================

1) merlin run <specification file>
2) sbatch workers.sbatch <specification file> <true/false>

Notes: -<specification file> is your yaml file including
the extension ".yaml".
-The second input parameter to workers.sbatch tells
slurm to either run a diasy chain of dependency
jobs ("true") or no dependency jobs ("false" or
no second input parameter at all).


==========================================================
What is Going On
==========================================================

When the job is allocated, the typical hello_samples will
execute via step_1 and step_2 within the yaml file. After,
a stopWorkers step is executed that will copy the
quitScript.sh bash file from $(SPECROOT) and obtain the
specfile and the specRoot.

These two variables are passed into quitSript.sh
which will find all job IDs of both running and awaiting
job allocations, loop through them, and cancel every
single one that deals with the <specification file>
ran from $(SPECROOT) defined in steps 1 and 2 in the
"Running the Example" section above.


==========================================================
Important Notes
==========================================================

1) quitScript.sh is submitted via sbatch instead of a
straight source or bash -c call because otherwise the
script will stop the workers immediately and the YAML
file then stops, but the task would never obtain a
successfull exit. Therefore, it would have to be purged
each time before starting a new Merlin run. By
submitting it via sbatch, once it is submitted the task
can exit successfully before the workers are stopped.

2) Make sure the stopWorkers task is the very last task
in your workflow as it will stop any and all jobs
that have been allocated for the workflow.

3) The virtual environment name and path are defined
in workers.sbatch. Change these to your specific needs
prior to running.


Loading