Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

feat: load HTTPS scenarios and identify modsim on downloads (SIM-02) - #26

Merged
gavinying merged 1 commit into
v2from
sim-02-remote-sources
Nov 9, 2026
Merged

gavinying merged 1 commit into
v2from
sim-02-remote-sources

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

SIM-02 for the ModioHub device-page guide. Release target: 2.0.0a4.

Changes

  • User-Agent: HTTPS model and scenario downloads now send User-Agent: modsim/<version>. Cloudflare rejected the default Python-urllib/* agent with error 1010, so --config https://… failed with 403 against ModioHub.
  • Remote scenarios: --scenario accepts an HTTPS URL, using the same HTTPS-only, redirect and size rules as models. A remote scenario that names a behavior script is rejected, so downloaded files never select local code.
  • Release: version bumped to 2.0.0a4, with preview notes. modpoll-wot stays pinned at 0.2.0a4.

Verification

  • make check passes; pytest reports 111 passed and 2 skipped.
  • New tests/test_remote_sources.py covers the User-Agent header, remote scenario loading, script rejection, plain HTTP and HTTP redirects.
  • Ran this branch against staging: modsim loaded the ADAM-5017UH TM and scenario directly from modiohub-staging.topmaker.workers.dev, and modpoll 2.0.0a3 read all eight points, which followed the scenario.

🤖 Generated with Claude Code

Send a modsim/<version> User-Agent, since some CDNs reject the default
Python agent, and accept HTTPS scenario URLs that name no scripts.
Prepare 2.0.0a4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gavinying
gavinying merged commit 1d29aff into v2 Nov 9, 2026
9 checks passed
@gavinying
gavinying deleted the sim-02-remote-sources branch November 9, 2026 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant