Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build test lint tidy vuln check install clean help validate-schemas corpus dryrun-k8s dryrun-slurm
.PHONY: build test lint tidy vuln check install clean help validate-schemas schema corpus dryrun-k8s dryrun-slurm

BINARY := bammm
CMD := ./cmd/bammm
Expand Down Expand Up @@ -39,6 +39,10 @@ vuln:
validate-schemas:
./scripts/validate-schemas.sh

## schema: regenerate schema/splat.schema.json from the Go types
schema:
go test ./internal/splat/schema -update

## corpus: scrape a scheduler corpus from GitHub (usage: make corpus SCHED=slurm; SCHED=pairs hunts cross-scheduler pairs)
corpus:
uv run scripts/corpus/fetch_corpus.py $(SCHED)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ make test # go test -race ./...
make lint # golangci-lint
make check # lint + test
make validate-schemas # kubeconform Tier 2 schema validation
make schema # regenerate schema/splat.schema.json from the Go types
make dryrun-k8s # Tier 3: kubectl --dry-run=server (needs a cluster + operators)
make dryrun-slurm # Tier 3: sbatch --test-only (needs slurmctld)
```
Expand Down
112 changes: 56 additions & 56 deletions SPEC.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/array-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ spec:
walltime: PT30M
resources:
tasks: 1
cpus_per_task: 1
memory_per_task: "512Mi"
cpusPerTask: 1
memoryPerTask: "512Mi"
limits:
cpus_per_task: 1
memory_per_task: "1Gi"
cpusPerTask: 1
memoryPerTask: "1Gi"
array:
indices: "0-4" # 5 elements (0,1,2,3,4)
max_concurrent: 2 # at most 2 running simultaneously
maxConcurrent: 2 # at most 2 running simultaneously
execution:
container:
image: busybox:latest
Expand Down
6 changes: 3 additions & 3 deletions examples/aws-batch-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ spec:
walltime: PT1H
resources:
tasks: 1
cpus_per_task: 2
memory_per_task: "4Gi"
cpusPerTask: 2
memoryPerTask: "4Gi"
lifecycle:
max_retries: 3
maxRetries: 3
execution:
container:
image: "amazon/amazon-ecs-sample:latest"
Expand Down
24 changes: 12 additions & 12 deletions examples/container-hpc-bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ spec:
resources:
nodes: 1
tasks: 1
cpus_per_task: 16
memory_per_task: "64Gi"
disk_per_task: "500Gi"
cpusPerTask: 16
memoryPerTask: "64Gi"
diskPerTask: "500Gi"
execution:
# K8s schedulers will use this:
container:
Expand Down Expand Up @@ -55,14 +55,14 @@ spec:
--output "${SAMPLE_ID}.vcf.gz"
fi

working_dir: /scratch/genomics
workingDir: /scratch/genomics
environment:
vars:
SAMPLE_ID: "NA12878"
TMPDIR: /scratch/tmp

placement:
node_selector:
nodeSelector:
node-type: high-memory
constraint: "avx2"
exclusive: false
Expand All @@ -71,7 +71,7 @@ spec:
stdout: "/scratch/logs/genomics-{job_id}.out"
stderr: "/scratch/logs/genomics-{job_id}.err"

file_staging:
fileStaging:
inputs:
- src: "s3://my-genomics/samples/NA12878.bam"
dst: "/scratch/genomics/NA12878.bam"
Expand All @@ -83,22 +83,22 @@ spec:

volumes:
- name: reference
mount_path: /data
read_only: true
mountPath: /data
readOnly: true
nfs:
server: nfs.genomics.internal
path: /exports/reference/hg38
- name: scratch
mount_path: /scratch
empty_dir: true
mountPath: /scratch
emptyDir: true

notifications:
email: "bioinformatician@example.com"
events: [end, fail]

lifecycle:
max_retries: 1
ttl_after_finished: PT4H
maxRetries: 1
ttlAfterFinished: PT4H

extensions:
slurm:
Expand Down
Loading
Loading