Skip to content

Start args - #64

Merged
malachig merged 3 commits into
mainfrom
start_args
Sep 11, 2026
Merged

malachig merged 3 commits into
mainfrom
start_args

Conversation

@malachig

Copy link
Copy Markdown
Member

Updates to get --analysis-release and --cromwell-version options working properly for start.sh so that a user can be explicit about the version of the analysis WDLs and Cromwell software that will be automatically installed on the Cromwell VM.

Also, additional changes to deal with the recent deprecation of debian-11 google cloud image family and migrate to use of debian-12. Additional work would be needed to migrate to debian-13.

malachig and others added 3 commits September 10, 2026 15:36
- The flag-parsing loop broke out entirely on the first unrecognized
  flag instead of skipping it, so any custom flag (--analysis-release,
  --cromwell-version, etc.) placed after an unrecognized passthrough
  flag leaked straight through to `gcloud compute instances create`
  and caused "unrecognized arguments" errors. Now unrecognized flags
  are collected into a GCLOUD_ARGS array and the loop keeps scanning.
- Recognized flags only handled space-separated `--flag value` syntax;
  `--flag=value` caused the next CLI token to be silently swallowed as
  the value instead. Long options are now normalized (`--flag=value`
  split into `--flag` `value`) before matching, so both forms work.
- `-h`/`--help` as the very first argument was treated as the instance
  name (since it's non-empty) rather than triggering help, only
  working when passed after the instance name. Now checked up front.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3bJwQWtWCGFQhQSUgJmbG
- debian-11 image family was removed from the debian-cloud project
  (Debian 11 bullseye's LTS ended 2026-08-31), causing
  "imageFamilyViews/debian-11 was not found". Switch to debian-12.
- Debian 12's pip enforces PEP 668 (externally-managed-environment),
  which blocks the startup script's system-wide `pip install requests`
  as root. Install it via the python3-requests apt package instead,
  matching the rest of PACKAGES and avoiding the same issue on future
  Debian releases.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3bJwQWtWCGFQhQSUgJmbG
The startup script runs with no controlling TTY (as a GCE
startup-script), so debconf's "unable to re-open stdin" warning during
apt-get is harmless noise. Set DEBIAN_FRONTEND=noninteractive to quiet
it without changing behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3bJwQWtWCGFQhQSUgJmbG

@malachig malachig left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all seems to be working as expected.

@ksinghal28 ksinghal28 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@malachig
malachig merged commit 1a1d842 into main Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants