Skip to content

Sbp 481#102

Merged
vtnphan merged 12 commits into
devfrom
sbp-481
Jul 16, 2026
Merged

Sbp 481#102
vtnphan merged 12 commits into
devfrom
sbp-481

Conversation

@vtnphan

@vtnphan vtnphan commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

SBP-481 Reworks Gadi cluster options for bindflow/proteinfold/wisps to use a -A email[:base64(ip)] account string, makes the Gadi project configurable via GADI_PROJECT, and fixes the scheduler not loading .env.

Changes

  • New cluster_utils.py: encode_ip() + GADI_PROJECT (env, defaults "yz52").
  • get_*_config_text() now takes email/ip_address instead of job_id/user_details/timestamp; callers updated.
  • Default params use GADI_PROJECT instead of hardcoded "yz52".
  • run_scheduler.py now calls load_dotenv(), so SEQERA_API_URL etc. are picked up when run standalone.
  • Tests updated/added to match.
Screenshot 2026-07-16 at 10 31 58 am

How to Test

  1. uv sync --all-extras
  2. uv run pytest tests/test_services_cluster_utils.py tests/test_services_bindflow_config.py tests/test_proteinfold_coverage.py tests/test_wisps_coverage.py -v
  3. uv run python -m app.run_scheduler — no longer errors on missing SEQERA_API_URL.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • Added tests
  • Updated docs
  • Linted and tested locally
  • Follows project style guidelines

@vtnphan
vtnphan marked this pull request as ready for review July 16, 2026 00:37

@marius-mather marius-mather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good, just a few comments/questions

Comment thread app/services/bindflow_config.py Outdated
Comment thread app/services/cluster_utils.py
Comment thread app/run_scheduler.py
@vtnphan
vtnphan requested a review from amandazhuyilan July 16, 2026 01:26

@marius-mather marius-mather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looking good now, thanks!

@vtnphan
vtnphan merged commit 7638f71 into dev Jul 16, 2026
3 checks passed
@vtnphan
vtnphan deleted the sbp-481 branch July 16, 2026 03:32
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.

3 participants