diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 000000000..5e6d8d0e5
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,27 @@
+# Build context for docker/eval/Dockerfile: the two packages and their metadata, nothing that is downloaded,
+# generated or a working copy. Assets live in the mounted roboverse_data, never in the image.
+.git
+.github
+**/__pycache__
+**/*.pyc
+**/.pytest_cache
+**/.mypy_cache
+**/.ruff_cache
+.coverage
+roboverse_data
+packages/metasim/roboverse_data
+packages/metasim/docs
+packages/metasim/Dockerfile
+docs
+results
+bench_results
+gate_out
+scratch*
+scratchpad
+wt
+venv*
+.venv*
+*.egg-info
+third_party
+tools
+examples
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 7c8662427..271cb59b3 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -41,8 +41,19 @@ updates:
python-deps:
patterns: ["*"]
labels: ["dependencies", "no-changelog"]
+ - package-ecosystem: pip
+ # the benchmark environment lock: every bump here is a real pin change the evaluation image picks up
+ directory: /requirements
+ schedule:
+ interval: weekly
+ day: monday
+ groups:
+ bench-lock:
+ patterns: ["*"]
+ labels: ["dependencies", "no-changelog"]
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
+ # actions are pinned by commit SHA with the version in a trailing comment; Dependabot keeps both current
labels: ["dependencies", "no-changelog"]
diff --git a/.github/workflows/attribution.yml b/.github/workflows/attribution.yml
index b4af2aabe..cb144ece2 100644
--- a/.github/workflows/attribution.yml
+++ b/.github/workflows/attribution.yml
@@ -22,15 +22,18 @@ on:
- "tests/test_attribution.py"
- ".github/workflows/attribution.yml"
push:
- branches: [main, develop]
+ branches: [main]
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
attribution:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: "3.11"
- run: python -m pip install --upgrade pip pytest
diff --git a/.github/workflows/backend-compat.yml b/.github/workflows/backend-compat.yml
index 67ccf4903..479ee4f6a 100644
--- a/.github/workflows/backend-compat.yml
+++ b/.github/workflows/backend-compat.yml
@@ -35,8 +35,8 @@ jobs:
install: "superdex-physics superdex-robotics pyrender trimesh"
name: ${{ matrix.backend }} @ latest (py${{ matrix.python }})
steps:
- - uses: actions/checkout@v7
- - uses: actions/setup-python@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: ${{ matrix.python }}
- name: Install MetaSim, then the backend at its newest release
@@ -55,7 +55,15 @@ jobs:
env:
MUJOCO_GL: disable
METASIM_SKIP_VERSION_CHECK: "1" # the point is to run on versions outside `tested`
- run: python -m pytest -k "${{ matrix.backend }}" -q -rs -p no:cacheprovider
+ # --continue-on-collection-errors: a -k selection still collects every module, and a module that imports
+ # another backend at import time (mujoco in a renderer test) must not fail this lane
+ run: python -m pytest -k "${{ matrix.backend }}" -q -rs -p no:cacheprovider --continue-on-collection-errors
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ if: always()
+ with:
+ name: backend-compat-${{ matrix.backend }}
+ path: doctor.txt
+ if-no-files-found: warn
- name: Open or update the tracking issue on failure
if: failure()
env:
@@ -65,5 +73,6 @@ jobs:
run: |
title="backend-compat: ${BACKEND} @ latest fails"
body=$(printf 'The weekly compatibility run of the **%s** backend against its newest release failed.\n\nRun: %s/%s/actions/runs/%s\n\n```\n%s\n```\n\nNext: fix or shim in `packages/metasim/metasim/sim/%s/`, then update `spec` / `tested` in `metasim/sim/_versions.py`.' "$BACKEND" "$GITHUB_SERVER_URL" "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" "$VERSIONS" "$BACKEND")
+ gh label create backend-compat --color B60205 --description "weekly newest-backend run failed" --force >/dev/null 2>&1 || true
existing=$(gh issue list --search "\"$title\" in:title" --state open --json number --jq '.[0].number')
if [ -n "$existing" ]; then gh issue comment "$existing" --body "$body"; else gh issue create --title "$title" --body "$body" --label backend-compat; fi
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index 31bbe9420..d02c8b759 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -7,11 +7,14 @@ on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
+permissions:
+ contents: read
+
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v7
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Require a CHANGELOG entry for library changes
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index 0252bf2a8..2c6282b1c 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -1,29 +1,35 @@
name: Deploy docs to Cloudflare Pages
+# Runs after the Tests workflow succeeded on main (a red main never publishes), and on every release tag,
+# which gets its own frozen copy of the site at
+
+
@@ -16,7 +18,21 @@