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
9 changes: 8 additions & 1 deletion .github/workflows/build-genecluster-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ permissions:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/genecluster-runner
# IMAGE_NAME is computed (lowercased) in the "Normalize image name" step below.
# GHCR rejects tags containing uppercase characters and the owner is "BioSymphony".

jobs:
build:
Expand All @@ -29,6 +30,12 @@ jobs:
digest: ${{ steps.build.outputs.digest }}

steps:
- name: Normalize image name
# GHCR repository names must be lowercase; github.repository_owner is "BioSymphony".
env:
OWNER: ${{ github.repository_owner }}
run: echo "IMAGE_NAME=${OWNER,,}/genecluster-runner" >> "$GITHUB_ENV"

- name: Checkout
uses: actions/checkout@v6

Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/build-genecluster-superpowers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ permissions:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/genecluster-superpowers
# IMAGE_NAME is computed (lowercased) in the "Normalize image name" step below.
# GHCR rejects tags containing uppercase characters and the owner is "BioSymphony".

jobs:
build:
Expand All @@ -49,6 +50,12 @@ jobs:
digest: ${{ steps.build.outputs.digest }}

steps:
- name: Normalize image name
# GHCR repository names must be lowercase; github.repository_owner is "BioSymphony".
env:
OWNER: ${{ github.repository_owner }}
run: echo "IMAGE_NAME=${OWNER,,}/genecluster-superpowers" >> "$GITHUB_ENV"

- name: Checkout
uses: actions/checkout@v6

Expand Down Expand Up @@ -79,7 +86,7 @@ jobs:
BASE_IMAGE_INPUT: ${{ inputs.base_runner_image }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
run: |
DEFAULT_BASE_IMAGE="${REGISTRY}/${GITHUB_REPOSITORY_OWNER}/genecluster-runner:v0.1"
DEFAULT_BASE_IMAGE="${REGISTRY}/${GITHUB_REPOSITORY_OWNER,,}/genecluster-runner:v0.1"
{
echo "args<<EOF"
echo "BASE_IMAGE=${BASE_IMAGE_INPUT:-$DEFAULT_BASE_IMAGE}"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ skill-audit:
PYTHONDONTWRITEBYTECODE=1 python3 -B skills/biosymphony/scripts/biosymphony_public_skill_audit.py --skill-root skills/biosymphony

capability:
PYTHONDONTWRITEBYTECODE=1 python3 -B skills/biosymphony/scripts/capability_probe.py --json
PYTHONDONTWRITEBYTECODE=1 python3 -B skills/biosymphony/scripts/capability_probe.py --json --no-fail

artifact-scan:
PYTHONDONTWRITEBYTECODE=1 python3 -B skills/biosymphony/scripts/genecluster_preflight.py \
Expand Down
12 changes: 12 additions & 0 deletions skills/biosymphony/scripts/capability_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ def conda_envs(conda_path: str | None) -> dict[str, Any]:
def main() -> int:
parser = argparse.ArgumentParser(description="Probe local BioSymphony capability tiers.")
parser.add_argument("--json", action="store_true", help="Emit machine-readable JSON.")
parser.add_argument(
"--no-fail",
action="store_true",
help=(
"Report-only: always exit 0 even when Tier A is not locally ready. "
"Used by `make capability` so CI (which lacks local GUI apps / tooling / "
"the ValarTTS server) does not fail. Direct invocation without this flag "
"keeps the exit-1 signal for local readiness checks."
),
)
args = parser.parse_args()

path_commands = {cmd: shutil.which(cmd) for cmd in PATH_COMMANDS}
Expand Down Expand Up @@ -173,6 +183,8 @@ def main() -> int:
if missing_mods:
print("Missing Python modules: " + ", ".join(missing_mods))

if args.no_fail:
return 0
return 0 if tier_a_ready else 1


Expand Down