-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from cat-bro/failing-test-for-pulsar-user-scen…
…ario Failing test for pulsar user scenario
- Loading branch information
Showing
4 changed files
with
38 additions
and
4 deletions.
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
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 |
---|---|---|
|
@@ -19,13 +19,19 @@ tools: | |
accept: | ||
reject: | ||
- pulsar | ||
- offline | ||
rules: | ||
- if: input_size < 2 | ||
fail: Data size too small | ||
bwa: | ||
scheduling: | ||
require: | ||
- pulsar | ||
toolshed_hifiasm: | ||
cores: 1000 | ||
rules: | ||
- if: input_size < 1000 | ||
cores: 2 | ||
inheritance_test_tool: | ||
scheduling: | ||
accept: | ||
|
@@ -100,6 +106,18 @@ tools: | |
require: | ||
- test_of_min_mem_accepted | ||
|
||
users: | ||
[email protected]: | ||
rules: | ||
- id: pulsar_user_mapping_rule | ||
if: tool.id.startswith('toolshed') or tool.id.startswith('testtoolshed') | ||
scheduling: | ||
accept: | ||
- pulsar # pulsar must be in require/prefer/accept for a job to be scheduled to pulsar | ||
- offline # allow scheduling to a destination even when it is offline | ||
require: | ||
- pulsar-canberra | ||
|
||
destinations: | ||
local: | ||
runner: local | ||
|
@@ -240,3 +258,9 @@ destinations: | |
scheduling: | ||
require: | ||
- test_of_min_mem_accepted | ||
pulsar-canberra: | ||
runner: k8s | ||
max_accepted_cores: 32 | ||
scheduling: | ||
accept: | ||
- pulsar-canberra |
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 |
---|---|---|
|
@@ -176,3 +176,13 @@ def test_min_accepted_mem_honoured(self): | |
tool = mock_galaxy.Tool('tool_for_testing_min_mem_acceptance_match') | ||
destination = self._map_to_destination(tool, user, datasets, tpv_config_paths=[config]) | ||
self.assertEqual(destination.id, "destination_with_min_mem_accepted") | ||
|
||
def test_user_map_to_destination_accepting_offline(self): | ||
user = mock_galaxy.User('albo', '[email protected]') | ||
|
||
config = os.path.join(os.path.dirname(__file__), 'fixtures/mapping-destinations.yml') | ||
|
||
tool = mock_galaxy.Tool('toolshed_hifiasm') | ||
datasets = [mock_galaxy.DatasetAssociation("test", mock_galaxy.Dataset("test.txt", file_size=12 * 1024 ** 3))] | ||
destination = self._map_to_destination(tool, user, datasets, tpv_config_paths=[config]) | ||
self.assertEqual(destination.id, "pulsar-canberra") |
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