snakemake-executor-plugin-aws-batch-flex 0.2.1__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. snakemake_executor_plugin_aws_batch_flex-0.2.3/.release-please-manifest.json +3 -0
  2. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/CHANGELOG.md +55 -0
  3. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/PKG-INFO +31 -17
  4. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/README.md +28 -15
  5. snakemake_executor_plugin_aws_batch_flex-0.2.3/docs/design.md +125 -0
  6. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/docs/further.md +14 -3
  7. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/docs/guide.md +159 -105
  8. snakemake_executor_plugin_aws_batch_flex-0.2.3/docs/intro.md +7 -0
  9. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/docs/reference.md +28 -29
  10. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/docs/setup.md +15 -10
  11. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/README.md +11 -6
  12. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/pyproject.toml +3 -2
  13. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/bootstrap.py +34 -160
  14. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/bundle.py +7 -0
  15. snakemake_executor_plugin_aws_batch_flex-0.2.3/src/snakemake_executor_plugin_aws_batch_flex/check.py +173 -0
  16. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/executor.py +119 -99
  17. snakemake_executor_plugin_aws_batch_flex-0.2.3/src/snakemake_executor_plugin_aws_batch_flex/launcher.py +139 -0
  18. snakemake_executor_plugin_aws_batch_flex-0.2.3/src/snakemake_executor_plugin_aws_batch_flex/loader.py +43 -0
  19. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/profiles.py +10 -3
  20. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/remote.py +48 -31
  21. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/transfer.py +12 -3
  22. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/README.md +2 -4
  23. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_script_python.py +1 -1
  24. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_smkflex.py +3 -3
  25. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_units.py +22 -0
  26. snakemake_executor_plugin_aws_batch_flex-0.2.1/.release-please-manifest.json +0 -3
  27. snakemake_executor_plugin_aws_batch_flex-0.2.1/docs/intro.md +0 -6
  28. snakemake_executor_plugin_aws_batch_flex-0.2.1/src/snakemake_executor_plugin_aws_batch_flex/check.py +0 -129
  29. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/.github/workflows/release.yml +0 -0
  30. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/.github/workflows/tests.yml +0 -0
  31. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/.gitignore +0 -0
  32. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/LICENSE +0 -0
  33. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/environment.yml +0 -0
  34. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/auto.smk +0 -0
  35. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/benchmark.smk +0 -0
  36. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/checkpoint.smk +0 -0
  37. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/conda.smk +0 -0
  38. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/conda_named.smk +0 -0
  39. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/config/pdsheet.tsv +0 -0
  40. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/directory.smk +0 -0
  41. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/disk.smk +0 -0
  42. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/ecr.smk +0 -0
  43. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/entrypoint.smk +0 -0
  44. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/envs/tiny.yaml +0 -0
  45. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/fanout.smk +0 -0
  46. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/fargate.smk +0 -0
  47. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/find-profile.sh +0 -0
  48. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/group.smk +0 -0
  49. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/mixed.smk +0 -0
  50. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/oom.smk +0 -0
  51. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/orphan-test.sh +0 -0
  52. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/orphans.smk +0 -0
  53. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/pdsheet.smk +0 -0
  54. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/pipeline.smk +0 -0
  55. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/pyimage.smk +0 -0
  56. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/pyrule.smk +0 -0
  57. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/retries.smk +0 -0
  58. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/rscript.smk +0 -0
  59. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/run.sh +0 -0
  60. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/script.smk +0 -0
  61. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/scripts/pandas_script.py +0 -0
  62. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/scripts/py_script.py +0 -0
  63. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/scripts/r_script.R +0 -0
  64. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/scripts/sh_script.sh +0 -0
  65. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/scripts/which_python.py +0 -0
  66. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/secrets.smk +0 -0
  67. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/shadow.smk +0 -0
  68. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/shm.smk +0 -0
  69. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/tempdir.smk +0 -0
  70. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/conformance/wrapper.smk +0 -0
  71. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/run.sh +0 -0
  72. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/tutorial/Snakefile +0 -0
  73. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/tutorial/config.yaml +0 -0
  74. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/tutorial/envs/calling.yaml +0 -0
  75. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/tutorial/envs/mapping.yaml +0 -0
  76. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/tutorial/envs/plot.yaml +0 -0
  77. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/pipelines/tutorial/scripts/plot-quals.py +0 -0
  78. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/smoke-test/README.md +0 -0
  79. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/examples/smoke-test/Snakefile +0 -0
  80. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/release-please-config.json +0 -0
  81. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/scripts/bake-ami.sh +0 -0
  82. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/scripts/cleanup-ami.sh +0 -0
  83. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/scripts/cleanup-jobdefs.sh +0 -0
  84. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/scripts/setup.sh +0 -0
  85. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/scripts/update-ami.sh +0 -0
  86. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/__init__.py +0 -0
  87. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/condacache.py +0 -0
  88. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/headjob.py +0 -0
  89. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/hints.py +0 -0
  90. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/hostenv.py +0 -0
  91. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/imageinfo.py +0 -0
  92. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/jobdefs.py +0 -0
  93. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/jobfixes.py +0 -0
  94. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/jobmonitor.py +0 -0
  95. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/naming.py +0 -0
  96. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/orphans.py +0 -0
  97. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/patches.py +0 -0
  98. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/preflight.py +0 -0
  99. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/settings.py +0 -0
  100. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/sizing.py +0 -0
  101. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/sources.py +0 -0
  102. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/tags.py +0 -0
  103. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/src/snakemake_executor_plugin_aws_batch_flex/usage.py +0 -0
  104. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/.terraform.lock.hcl +0 -0
  105. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/fargate.tf +0 -0
  106. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/main.tf +0 -0
  107. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/outputs.tf +0 -0
  108. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/spot.tf +0 -0
  109. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/terraform.tfvars.example +0 -0
  110. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/userdata.snakemake.txt +0 -0
  111. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/variables.tf +0 -0
  112. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/terraform/versions.tf +0 -0
  113. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/conftest.py +0 -0
  114. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/fakeaws/sitecustomize.py +0 -0
  115. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/fixtures/existing_userdata.txt +0 -0
  116. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_bake_script.py +0 -0
  117. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_cleanup_ami.py +0 -0
  118. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_cleanup_jobdefs.py +0 -0
  119. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_conda_mount.py +0 -0
  120. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_condacache.py +0 -0
  121. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_conformance.py +0 -0
  122. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_host_env.py +0 -0
  123. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_imageinfo.py +0 -0
  124. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_integration.py +0 -0
  125. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_prereqs.py +0 -0
  126. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_setup.py +0 -0
  127. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_tags.py +0 -0
  128. {snakemake_executor_plugin_aws_batch_flex-0.2.1 → snakemake_executor_plugin_aws_batch_flex-0.2.3}/tests/test_userdata.py +0 -0
@@ -1,5 +1,60 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.3](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/compare/v0.2.2...v0.2.3) (2026-11-30)
4
+
5
+
6
+ ### Documentation
7
+
8
+ * how the plugin works, for reviewers; plainer wording ([463e1a0](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/463e1a02296e6097fbfae3409fa50a17e411ecd7))
9
+
10
+ ## [0.2.2](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/compare/v0.2.1...v0.2.2) (2026-11-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add the repository URL to the package metadata, which the Snakemake plugin catalog reads ([ba2f0ec](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/ba2f0ec1ecae7e57fb151fbfa31840b21fbfa96a))
16
+
17
+
18
+ ### Documentation
19
+
20
+ * describe the aws-batch plugin neutrally, with when each plugin suits ([de34a1b](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/de34a1b16785c07db6549cb4d29723c872997745))
21
+ * lead with off-the-shelf container images ([2bb2742](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/2bb2742fed359b1c91a2f51b8685e6dd3389dfab))
22
+ * package description says images need no Snakemake, not that jobs run in containers ([5eb2911](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/5eb29110c84ebb8d62373b9e770ceb0b9427b436))
23
+ * say on the catalog page that the S3 storage plugin and Snakemake 9.5 are needed ([dc55327](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/dc5532710f58c40d03508238aecf47e7c6f72fe6))
24
+
25
+
26
+ ### Miscellaneous Chores
27
+
28
+ * release 0.2.1 ([3b93b0d](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/3b93b0d8c9c4570b3beed242ef2e6421f3ccdcf8))
29
+ * release 0.2.2 ([70e677b](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/70e677ba0e18377e3fbb389b8a5418278dd26b31))
30
+
31
+ ## [0.2.1](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/compare/v0.2.1...v0.2.1) (2026-11-01)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * add the repository URL to the package metadata, which the Snakemake plugin catalog reads ([ba2f0ec](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/ba2f0ec1ecae7e57fb151fbfa31840b21fbfa96a))
37
+
38
+
39
+ ### Documentation
40
+
41
+ * describe the aws-batch plugin neutrally, with when each plugin suits ([de34a1b](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/de34a1b16785c07db6549cb4d29723c872997745))
42
+ * lead with off-the-shelf container images ([2bb2742](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/2bb2742fed359b1c91a2f51b8685e6dd3389dfab))
43
+ * package description says images need no Snakemake, not that jobs run in containers ([5eb2911](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/5eb29110c84ebb8d62373b9e770ceb0b9427b436))
44
+ * say on the catalog page that the S3 storage plugin and Snakemake 9.5 are needed ([dc55327](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/dc5532710f58c40d03508238aecf47e7c6f72fe6))
45
+
46
+
47
+ ### Miscellaneous Chores
48
+
49
+ * release 0.2.1 ([3b93b0d](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/3b93b0d8c9c4570b3beed242ef2e6421f3ccdcf8))
50
+
51
+ ## [0.2.1](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/compare/v0.2.1...v0.2.1) (2026-10-31)
52
+
53
+
54
+ ### Miscellaneous Chores
55
+
56
+ * release 0.2.1 ([3b93b0d](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/commit/3b93b0d8c9c4570b3beed242ef2e6421f3ccdcf8))
57
+
3
58
  ## [0.2.1](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/compare/v0.2.0...v0.2.1) (2026-10-31)
4
59
 
5
60
 
@@ -1,8 +1,9 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: snakemake-executor-plugin-aws-batch-flex
3
- Version: 0.2.1
4
- Summary: Snakemake executor plugin for AWS Batch that runs every rule in its own container image
3
+ Version: 0.2.3
4
+ Summary: Snakemake executor plugin for AWS Batch that runs each rule in an off-the-shelf container image, such as a biocontainer, with no Snakemake inside
5
5
  Project-URL: Homepage, https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex
6
+ Project-URL: Repository, https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex
6
7
  Project-URL: Documentation, https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex#getting-started
7
8
  Project-URL: Issues, https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/issues
8
9
  Project-URL: Changelog, https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/CHANGELOG.md
@@ -34,25 +35,35 @@ Description-Content-Type: text/markdown
34
35
 
35
36
  # snakemake-executor-plugin-aws-batch-flex
36
37
 
37
- A Snakemake executor plugin that runs each job on [AWS Batch](https://aws.amazon.com/batch/) in
38
- the image named by its rule's `container:` directive: a stock image from Docker Hub,
39
- quay.io/biocontainers, your own ECR repository, and so on. The images don't need Snakemake or
40
- Python inside them.
38
+ Run Snakemake workflows on [AWS Batch](https://aws.amazon.com/batch/) with off-the-shelf
39
+ container images. Each rule runs in the image its `container:` directive names, exactly as
40
+ published: a biocontainer from quay.io, a stock image from Docker Hub, your own ECR image. You
41
+ don't build images with Snakemake in them, and the images don't need Python either.
41
42
 
42
- **How it works.** On EC2, a Snakemake environment is baked into the machine image (AMI) that
43
+ ## How it works
44
+
45
+ On EC2, a Snakemake environment is baked into the machine image (AMI) that
43
46
  Batch starts instances from, and mounted read-only into every job's container; this is how
44
47
  Nextflow brings its AWS CLI to jobs. On Fargate, which has no instances to customise, Snakemake
45
48
  is installed into the container when the job starts. Inputs and outputs go through S3 with
46
49
  Snakemake's S3 storage plugin. Instances start when jobs arrive and stop when the queue is
47
50
  empty, so you pay only while jobs run.
48
51
 
49
- **How it differs from the aws-batch plugin.** The other AWS Batch executor in the plugin
50
- catalog,
52
+ ## Which AWS Batch plugin
53
+
54
+ The Snakemake organisation maintains
51
55
  [snakemake-executor-plugin-aws-batch](https://github.com/snakemake/snakemake-executor-plugin-aws-batch),
52
- runs `snakemake` inside each job's container, so every image a rule uses needs Snakemake and the
53
- S3 storage plugin installed; biocontainers and other stock images can't be used as they are.
54
- This plugin brings Snakemake to the job instead, so each rule can use any image, and conda envs
55
- work in images without conda. It also:
56
+ which runs `snakemake` inside each job's container. Its jobs use an image that has Snakemake and
57
+ the S3 storage plugin, either its published image or ones you build on top of it, and a rule
58
+ can name its own image through a resource. That suits workflows whose tools fit in one image or
59
+ a few custom ones. This plugin brings Snakemake to the job instead, so each rule runs in its own
60
+ `container:` image unchanged, such as a biocontainer, and conda envs work in images without
61
+ conda. In return, it needs its own AMI on EC2, or installs Snakemake when each job starts. (As
62
+ of October 2026; see each plugin's docs for the current details.)
63
+
64
+ ## What else it does
65
+
66
+ The plugin also:
56
67
 
57
68
  - sets up the AWS side (AMI, queue, roles, bucket, profile) with one command;
58
69
  - mixes EC2, Spot and Fargate queues in one run;
@@ -61,16 +72,19 @@ work in images without conda. It also:
61
72
  - reports what each rule used at the end of a run, with `set-resources:` and `set-threads:`
62
73
  suggestions to paste into your profile.
63
74
 
75
+ ## Documentation
76
+
64
77
  This page goes from an empty AWS account to a finished test run
65
78
  ([Getting started](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex#getting-started)), then covers running your own workflows and the per-rule
66
- resources. The rest is in three more pages:
79
+ resources. The rest is in four more pages:
67
80
 
68
81
  - [Guide](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/docs/guide.md): published pipelines, moving from a cluster, long runs with `smkflex`,
69
82
  conda, the usage table, Spot and Fargate, private images, and troubleshooting;
70
83
  - [Reference](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/docs/reference.md): every profile setting and `smkflex` command, IAM, what has been
71
84
  tested, and the limits;
72
85
  - [Setup and upkeep](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/docs/setup.md): university and company accounts, updating the machine image,
73
- setting up by hand, and removing everything.
86
+ setting up by hand, and removing everything;
87
+ - [Design](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/docs/design.md): how the plugin works, for reviewers and contributors.
74
88
 
75
89
  ## Getting started
76
90
 
@@ -186,7 +200,7 @@ later the instance shuts down.
186
200
  ### 6. Set a budget alert
187
201
 
188
202
  Before running real pipelines, set a budget alert, so that a mistake (a huge job, a forgotten
189
- setting) costs an email rather than a surprise bill. In the AWS console, go to **Billing and
203
+ setting) reaches you as an email before it becomes a large bill. In the AWS console, go to **Billing and
190
204
  Cost Management** > **Budgets** > **Create budget** > **Use a template** > **Monthly cost
191
205
  budget**, and enter an amount (e.g. $50) and your email address. AWS then emails you at 85% and
192
206
  100% of it, and when the month's forecast goes over. It costs nothing.
@@ -199,7 +213,7 @@ dollars (an estimate, not measured). S3 storage is about $0.02 per GB per month.
199
213
  the end of every run shows what that run used (see
200
214
  [What a run used](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/docs/guide.md#what-a-run-used)).
201
215
 
202
- That completes the setup. Next, depending on what you're running:
216
+ Next, depending on what you're running:
203
217
 
204
218
  - a workflow of your own: [Your own workflow](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex#your-own-workflow);
205
219
  - a pipeline from the Snakemake workflow catalog: [Running a published pipeline](https://github.com/SSmith-NUIG/snakemake-executor-plugin-aws-batch-flex/blob/main/docs/guide.md#running-a-published-pipeline);
@@ -1,24 +1,34 @@
1
1
  # snakemake-executor-plugin-aws-batch-flex
2
2
 
3
- A Snakemake executor plugin that runs each job on [AWS Batch](https://aws.amazon.com/batch/) in
4
- the image named by its rule's `container:` directive: a stock image from Docker Hub,
5
- quay.io/biocontainers, your own ECR repository, and so on. The images don't need Snakemake or
6
- Python inside them.
3
+ Run Snakemake workflows on [AWS Batch](https://aws.amazon.com/batch/) with off-the-shelf
4
+ container images. Each rule runs in the image its `container:` directive names, exactly as
5
+ published: a biocontainer from quay.io, a stock image from Docker Hub, your own ECR image. You
6
+ don't build images with Snakemake in them, and the images don't need Python either.
7
7
 
8
- **How it works.** On EC2, a Snakemake environment is baked into the machine image (AMI) that
8
+ ## How it works
9
+
10
+ On EC2, a Snakemake environment is baked into the machine image (AMI) that
9
11
  Batch starts instances from, and mounted read-only into every job's container; this is how
10
12
  Nextflow brings its AWS CLI to jobs. On Fargate, which has no instances to customise, Snakemake
11
13
  is installed into the container when the job starts. Inputs and outputs go through S3 with
12
14
  Snakemake's S3 storage plugin. Instances start when jobs arrive and stop when the queue is
13
15
  empty, so you pay only while jobs run.
14
16
 
15
- **How it differs from the aws-batch plugin.** The other AWS Batch executor in the plugin
16
- catalog,
17
+ ## Which AWS Batch plugin
18
+
19
+ The Snakemake organisation maintains
17
20
  [snakemake-executor-plugin-aws-batch](https://github.com/snakemake/snakemake-executor-plugin-aws-batch),
18
- runs `snakemake` inside each job's container, so every image a rule uses needs Snakemake and the
19
- S3 storage plugin installed; biocontainers and other stock images can't be used as they are.
20
- This plugin brings Snakemake to the job instead, so each rule can use any image, and conda envs
21
- work in images without conda. It also:
21
+ which runs `snakemake` inside each job's container. Its jobs use an image that has Snakemake and
22
+ the S3 storage plugin, either its published image or ones you build on top of it, and a rule
23
+ can name its own image through a resource. That suits workflows whose tools fit in one image or
24
+ a few custom ones. This plugin brings Snakemake to the job instead, so each rule runs in its own
25
+ `container:` image unchanged, such as a biocontainer, and conda envs work in images without
26
+ conda. In return, it needs its own AMI on EC2, or installs Snakemake when each job starts. (As
27
+ of October 2026; see each plugin's docs for the current details.)
28
+
29
+ ## What else it does
30
+
31
+ The plugin also:
22
32
 
23
33
  - sets up the AWS side (AMI, queue, roles, bucket, profile) with one command;
24
34
  - mixes EC2, Spot and Fargate queues in one run;
@@ -27,16 +37,19 @@ work in images without conda. It also:
27
37
  - reports what each rule used at the end of a run, with `set-resources:` and `set-threads:`
28
38
  suggestions to paste into your profile.
29
39
 
40
+ ## Documentation
41
+
30
42
  This page goes from an empty AWS account to a finished test run
31
43
  ([Getting started](#getting-started)), then covers running your own workflows and the per-rule
32
- resources. The rest is in three more pages:
44
+ resources. The rest is in four more pages:
33
45
 
34
46
  - [Guide](docs/guide.md): published pipelines, moving from a cluster, long runs with `smkflex`,
35
47
  conda, the usage table, Spot and Fargate, private images, and troubleshooting;
36
48
  - [Reference](docs/reference.md): every profile setting and `smkflex` command, IAM, what has been
37
49
  tested, and the limits;
38
50
  - [Setup and upkeep](docs/setup.md): university and company accounts, updating the machine image,
39
- setting up by hand, and removing everything.
51
+ setting up by hand, and removing everything;
52
+ - [Design](docs/design.md): how the plugin works, for reviewers and contributors.
40
53
 
41
54
  ## Getting started
42
55
 
@@ -152,7 +165,7 @@ later the instance shuts down.
152
165
  ### 6. Set a budget alert
153
166
 
154
167
  Before running real pipelines, set a budget alert, so that a mistake (a huge job, a forgotten
155
- setting) costs an email rather than a surprise bill. In the AWS console, go to **Billing and
168
+ setting) reaches you as an email before it becomes a large bill. In the AWS console, go to **Billing and
156
169
  Cost Management** > **Budgets** > **Create budget** > **Use a template** > **Monthly cost
157
170
  budget**, and enter an amount (e.g. $50) and your email address. AWS then emails you at 85% and
158
171
  100% of it, and when the month's forecast goes over. It costs nothing.
@@ -165,7 +178,7 @@ dollars (an estimate, not measured). S3 storage is about $0.02 per GB per month.
165
178
  the end of every run shows what that run used (see
166
179
  [What a run used](docs/guide.md#what-a-run-used)).
167
180
 
168
- That completes the setup. Next, depending on what you're running:
181
+ Next, depending on what you're running:
169
182
 
170
183
  - a workflow of your own: [Your own workflow](#your-own-workflow);
171
184
  - a pipeline from the Snakemake workflow catalog: [Running a published pipeline](docs/guide.md#running-a-published-pipeline);
@@ -0,0 +1,125 @@
1
+ # How the plugin works
2
+
3
+ This page explains how the code works. How to use the
4
+ plugin is in the [README](../README.md) and the [Guide](guide.md).
5
+
6
+ ## The parts
7
+
8
+ All Python is in `src/snakemake_executor_plugin_aws_batch_flex/`. Each module starts with a
9
+ docstring that says what it is for.
10
+
11
+ | Runs | Module | What it does |
12
+ | --- | --- | --- |
13
+ | In Snakemake, on your machine | `settings.py` | The `aws-batch-flex-...` settings, their defaults and their checks |
14
+ | | `executor.py` | The executor Snakemake calls: submits jobs, checks on them, cancels them, prints the usage table |
15
+ | | `preflight.py` | Startup checks of the queue, its compute environments, the job role and the AMI's Snakemake version |
16
+ | | `jobdefs.py` | Batch job definitions: one per image and platform, registered on first use |
17
+ | | `sizing.py`, `tags.py`, `naming.py` | A job's vCPUs and memory, its tags, and its Batch name |
18
+ | | `imageinfo.py` | Reads an image's `ENTRYPOINT` from its registry and adapts the job's command to it |
19
+ | | `orphans.py` | Finds jobs left running by an earlier, interrupted run of the same workflow |
20
+ | | `usage.py`, `hints.py` | The end-of-run usage table, and plain-language hints for failed jobs |
21
+ | | `patches.py`, `sources.py` | Workarounds in Snakemake (below), and which workflow files go to the jobs |
22
+ | | `bootstrap.py` | Writes the shell script that starts each job |
23
+ | Inside each job | `condacache.py` | Reuses built conda environments: per instance, and optionally from S3 |
24
+ | | `jobmonitor.py` | Samples the job's memory, CPU and disk use for the usage table |
25
+ | | `jobfixes.py` | Workarounds applied in the job before Snakemake starts (below) |
26
+ | | `loader.py`, `launcher.py` | The first Python a job runs (fetches the job tools), and what starts Snakemake in the job |
27
+ | `smkflex` command | `remote.py` | `smkflex` itself: `run`, `logs`, `status`, `cancel` and `init` |
28
+ | | `profiles.py`, `check.py`, `transfer.py` | Finding the profile; `smkflex check`; `smkflex push` and `pull` |
29
+ | | `bundle.py`, `headjob.py` | `smkflex run`: packs the workflow folder; runs Snakemake inside the head job |
30
+ | Building the AMI | `hostenv.py` | Writes the script that installs the Snakemake environment and Miniforge into the AMI |
31
+
32
+ The shell scripts in `scripts/` build and update the AMI (`bake-ami.sh`, `update-ami.sh`), set
33
+ everything up (`setup.sh`) and remove old images and job definitions. `terraform/` creates the
34
+ queue, compute environment, roles, bucket and log group.
35
+
36
+ ## What happens to one job
37
+
38
+ 1. Snakemake calls `Executor.run_job`, which picks the job's image (the rule's `container:`, or
39
+ the default image), its queue (`batch_queue`, or the profile's), the queue's platform (EC2 or
40
+ Fargate, from its compute environment), and its vCPUs and memory (`sizing.py`).
41
+ 2. `jobdefs.py` registers a job definition for each image and platform the first time it's
42
+ needed, and reuses it afterwards. On EC2 the job definition mounts the AMI's
43
+ `/opt/snakemake-env` read-only, and the instance's conda cache folder.
44
+ 3. The job's command is a short shell script from `bootstrap.py`, followed by Snakemake's own
45
+ command for the job. Batch can't override an image's `ENTRYPOINT`, so for an image that has
46
+ one, `imageinfo.py` wraps the command so that the entrypoint runs it.
47
+ 4. The job goes to Batch with tags for the run, the workflow and the rule (`tags.py`).
48
+ 5. In the container, the shell script moves into a working folder at the same path as on your
49
+ machine where that's safe, so that a Snakefile's `os.path.abspath()` gives the same paths.
50
+ With the AMI's environment, it waits for `/opt/snakemake-env/.ready` and defines a shell
51
+ function called `python` that runs the mounted Snakemake. The rule's own commands run in new
52
+ shells that don't have that function, so they still find the image's Python. On Fargate, the
53
+ script installs Snakemake with uv instead.
54
+ 6. A small loader then downloads the job tools that the executor uploaded once for the run
55
+ (`.smkflex/code/jobtools-<sha256>.py` in the bucket), checks them against the sha256 in their
56
+ name, and runs them. The job tools are `jobfixes.py`, `jobmonitor.py` and `condacache.py`,
57
+ followed by `launcher.py`. The launcher starts Snakemake with two changes
58
+ for `script:` rules: Python scripts run in the image's Python when it has one, and pandas 3
59
+ text arrays reach scripts as numpy arrays.
60
+ 7. Snakemake fetches the job's inputs from S3, runs the rule and uploads the outputs. When the
61
+ job ends, the job monitor prints one line with its peak memory, CPU and disk use.
62
+ 8. Back on your machine, `check_active_jobs` asks Batch about the running jobs, 100 at a time.
63
+ For a failed job, it shows the end of the job's CloudWatch log and of the rule's log files,
64
+ with hints from `hints.py`. At the end of the run, `usage.py` reads each job's usage line and
65
+ prints the table.
66
+
67
+ ## Code that runs inside the job
68
+
69
+ Jobs run in images that only promise `/bin/sh`, so the job's start-up script is shell, which
70
+ Python functions in `bootstrap.py` write. The Python that runs in the job is in ordinary files:
71
+ `loader.py`, `launcher.py` and the job tools (`condacache.py`, `jobmonitor.py`, `jobfixes.py`).
72
+ None of them is imported by the plugin; `bootstrap.py` reads them as text and sends them to the
73
+ job.
74
+
75
+ ECS allows only 8,192 characters for a job's command and environment. To fit, the start-up
76
+ script has its indentation removed, and the job tools go to the bucket once per run, for each
77
+ job to download. The loader goes into every job's command, so `compact_python()` removes its
78
+ docstring, comments and most of its indentation. If the job tools can't be uploaded, the
79
+ command carries the launcher instead, compacted the same way, then compressed with zlib and
80
+ base64-encoded to fit. `tests/test_units.py` checks that compacting leaves the code itself
81
+ unchanged. The job-side files use only the standard library, plus boto3 and the S3 storage
82
+ plugin when they are present, because they run in the job's copy of Snakemake.
83
+
84
+ ## Workarounds
85
+
86
+ Some code works around bugs or gaps in Snakemake (9.27) and the S3 storage plugin (0.3.6). Each
87
+ workaround first checks that the code it changes still takes the arguments it was written for.
88
+ If a newer version changed it, the workaround is switched off, and the executor says so at the
89
+ start of the run. `tests/test_units.py` fails in that case, and CI runs the newest Snakemake
90
+ every week.
91
+
92
+ | Problem | Workaround | Where |
93
+ | --- | --- | --- |
94
+ | Packing the workflow for the jobs crashes when a rule comes from a module on GitHub | Those rules' scripts are left out of the pack; jobs fetch them from GitHub | `patches.skip_remote_module_scripts` |
95
+ | Snakemake only sends files that git tracks, so scripts called from `shell:` can go missing | The whole workflow folder is sent, except what `.gitignore` excludes and `data/`, `results/`, `logs/` and `benchmarks/` | `sources.py` |
96
+ | The S3 plugin caches whether a path is a directory, and a job then makes that answer wrong | It's looked up again | `patches.recheck_s3_directories` |
97
+ | Snakemake tells the job to delete unneeded `temp()` outputs, then waits for them in storage | The option is dropped from the job's command | `patches.keep_unneeded_temp` |
98
+ | A missing input that is only on your machine gives no hint | The error says to upload it with `smkflex push` | `patches.explain_local_only_inputs` |
99
+ | `directory()` outputs move to and from S3 one file at a time | 32 files at a time | `jobfixes.parallel_s3_directories` |
100
+ | numpy in Snakemake's environment needs system libraries that bioconda images lack | They are loaded from the AMI's conda | `jobfixes.make_numpy_loadable` |
101
+ | Storage files' local copies sit under `.snakemake/storage/` | They are kept at their plain paths | `jobfixes.plain_local_paths` |
102
+ | pandas 3 text arrays in `params` can't be loaded by a script with pandas 2 | They are sent as numpy arrays | `launcher.py` |
103
+
104
+ ## smkflex run
105
+
106
+ `smkflex run` packs the workflow folder and the profile (`bundle.py`), uploads the pack to the
107
+ bucket, and submits a head job in `buildpack-deps:bookworm-scm` (Debian 12 with git). The head
108
+ job runs `headjob.py`. It unpacks the workflow, restores Snakemake's `.snakemake` state from the
109
+ bucket, runs Snakemake with this plugin, and saves the state again when Snakemake ends.
110
+
111
+ ## The machine image
112
+
113
+ `scripts/bake-ami.sh` starts an instance from Amazon's ECS-optimized AMI, runs the install
114
+ script from `hostenv.py`, and makes an image of it. The script installs a standalone Python
115
+ with Snakemake and the storage plugins in `/opt/snakemake-env`, pinned to the versions on your
116
+ machine, and Miniforge with git. The Python lives inside that folder, so the environment only
117
+ depends on glibc and runs in any glibc-based image that mounts it at the same path.
118
+
119
+ ## Tests
120
+
121
+ `tests/fakeaws/sitecustomize.py` replaces `boto3.client` with a fake Batch that runs each
122
+ submitted job's command locally with `sh -c`, and the `fs` storage plugin stands in for S3. The
123
+ integration tests (`tests/test_integration.py`, `tests/test_smkflex.py`) therefore run real
124
+ Snakemake workflows from start to finish without AWS. `tests/test_units.py` covers single
125
+ functions. `examples/conformance/run.sh` runs one small workflow per feature on real AWS.
@@ -1,5 +1,16 @@
1
1
  # Setup
2
2
 
3
+ Install the plugin together with the S3 storage plugin, which it uses for all files but doesn't
4
+ depend on (in pixi, both go under `[pypi-dependencies]`):
5
+
6
+ ```bash
7
+ pip install snakemake-executor-plugin-aws-batch-flex snakemake-storage-plugin-s3
8
+ ```
9
+
10
+ Besides `--executor aws-batch-flex`, a run needs a queue and S3 storage, best kept in a profile
11
+ (see the example below): `--aws-batch-flex-queue`, `--default-storage-provider s3` and
12
+ `--default-storage-prefix s3://BUCKET/PREFIX`.
13
+
3
14
  You need a Batch queue whose instances have the Snakemake environment. In the repository,
4
15
  `bash scripts/setup.sh --region eu-west-1` builds the AMI (with Snakemake, conda and pandas),
5
16
  creates the queue, compute environment, roles, log group and S3 bucket with Terraform, and
@@ -58,9 +69,9 @@ rule align:
58
69
  packages, unless their pandas/numpy/polars `params` need packages it lacks;
59
70
  `batch_script_python="host"` always uses Snakemake's instead.
60
71
  - `conda:` and `wrapper:` work with `--sdm conda` (conda from the image, or baked into the AMI).
61
- Built envs are reused rather than rebuilt in every job: by default, by the jobs on the same
62
- EC2 instance; with `aws-batch-flex-conda-cache` set to an S3 URL, also from S3 by later jobs
63
- and runs.
72
+ Jobs reuse the envs that other jobs on the same EC2 instance built; with
73
+ `aws-batch-flex-conda-cache` set to an S3 URL, they also reuse envs that earlier jobs and runs
74
+ stored there.
64
75
  - If `snakemake` is killed, the jobs it left running are cancelled when you restart it.
65
76
  - Private images: ECR works through the IAM roles; other registries through Secrets Manager
66
77
  (`aws-batch-flex-registry-credentials`).