Skip to content

test: child run edge cases, input secret key formats, proxy access check timeout - #36

Merged
metalwarrior665 merged 2 commits into
masterfrom
test/child-runs-and-secrets
Nov 13, 2026
Merged

metalwarrior665 merged 2 commits into
masterfrom
test/child-runs-and-secrets

Conversation

@metalwarrior665

Copy link
Copy Markdown
Member

This covers two test gaps from the 2 Nov review (phase 6, g09 and g11). Only tests and the fake API change, and no bugs turned up.

Child runs (g09). These matter more now that instagram-rs starts its video downloads through Actor::call.

  • Lost run: a tracked run the API answers 404 for is looked up again, 13 times in all, then replaced. It stays in the history as LOST.
  • Run still ending: a tracked run still ABORTING or TIMING-OUT is waited for and then resurrected, not replaced.
  • Starts after the parent is aborting: once the parent run is aborting, a start with abort_with_parent is refused with its message. A start without it still goes.
  • Abort timeout: aborting the child runs with the parent gives up after ABORT_WITH_PARENT_TIMEOUT when the API doesn't answer. This test runs on real time, about 10 s.
  • Fake API: it can now answer 404 for a run (remove_run) and return a sequence of statuses for one (set_run_statuses).

Input secrets and proxy (g11).

  • Key formats: the key of the existing fixture, re-encoded with openssl, decrypts the JS-encrypted values in every supported format. The formats are plain PKCS#1, PKCS#1 encrypted with AES-128-CBC or AES-256-CBC, and plain PKCS#8.
    • A wrong AES passphrase fails.
    • An encrypted PKCS#8 key is refused with its type. This differs from Node, but the platform sends legacy PKCS#1 keys.
  • Proxy access check: a status page that times out (real time, two 4 s attempts) or keeps answering 5xx counts as access on the platform too, as in JS. A version of each test where the status page answers in time was run to confirm that it fails. A first attempt on paused time passed even then, so those tests run on real time.

Generated by Claude Code

The same key as PKCS#1 (plain, AES-128-CBC, AES-256-CBC) and plain PKCS#8
decrypts the JS-encrypted values, a wrong AES passphrase fails, and an
encrypted PKCS#8 key is refused with its type. A status page that times
out or keeps failing counts as access, on the platform too, as in JS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148RYR4BTGyCYHENSRZjC3S
A tracked run the API no longer returns is looked up 13 times, then
replaced and kept in the history as LOST. A run still ABORTING or
TIMING-OUT is waited for and resurrected. Once the parent is aborting,
a start with abort_with_parent is refused and one without it still goes.
Aborting the child runs gives up after ABORT_WITH_PARENT_TIMEOUT when the
API does not answer. The fake API can now answer 404 for a run and
return a sequence of statuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0148RYR4BTGyCYHENSRZjC3S
@metalwarrior665
metalwarrior665 merged commit be020d8 into master Nov 13, 2026
6 checks passed
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