Repository navigation
test(harness): the worker inherits the runner's Cartesia key, and CI runs the worker-secrets tests - #309
Open
khushalsonawat wants to merge 4 commits into
Open
test(harness): the worker inherits the runner's Cartesia key, and CI runs the worker-secrets tests#309khushalsonawat wants to merge 4 commits into
khushalsonawat wants to merge 4 commits into
Conversation
…y that test_worker_never_inherits_host_voice_provider_credentials still said the worker never gets the runner's CARTESIA_API_KEY. f0b3fce (#69) allowed it on purpose, two days after the test was written: the runner's key voices the simulated caller, and a job's own value can't replace it. The test failed since, outside CI's list. It now holds that rule, and still holds that the runner's LiveKit and Deepgram credentials stay out. TH-9550 Signed-off-by: khushalsonawat <khushalsonawat@gmail.com>
test_harness_secrets.py guards what a sandbox worker inherits, and one of its tests failed for months unseen because CI never ran the file. The whole file passes on this branch. TH-9550 Signed-off-by: khushalsonawat <khushalsonawat@gmail.com>
…issing LiveKit key The test asserted that the worker inherits the runner's Cartesia key, but its name said it never inherits a voice credential. It is renamed. A job that sends no LiveKit key now has its own case: the runner's LIVEKIT_API_KEY must not be inherited either. Before, the job's own value always hid it. Both from the #309 check. TH-9550 Signed-off-by: khushalsonawat <khushalsonawat@gmail.com>
Member
Author
|
Review result for this PR (one reviewer, tests and CI):
|
One conflict in sdk-smoke.yml: both sides added test files at the same place in the pytest list (this branch tests/test_harness_secrets.py; the base tests/test_harness.py with its deselects, test_contract_model.py and test_contract_writer.py). Both kept. tests/test_harness_secrets.py: 17 passed. TH-9550 Signed-off-by: khushalsonawat <khushalsonawat@gmail.com>
Member
Author
|
CI after merging the base (8b2a7d8): SDK smoke's clean-install failed on one test, and that failure comes from the base, not from this PR.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
tests/test_harness_secrets.py::test_worker_never_inherits_host_voice_provider_credentials(nowtest_worker_inherits_only_the_runners_cartesia_voice_credential) has failed since August. It says the sandbox worker never inherits the runner'sCARTESIA_API_KEY. Two days after it was written, f0b3fce (#69, "pass the caller voice and Vertex region through to the worker") put that key in the worker allow-list on purpose: the runner's Cartesia key voices the simulated caller (call_runner.py,cartesia_key). The same commit made it a name a job can't replace. The allow-list is right and the test is stale. It isn't in CI'ssdk-smoke.ymllist, so nothing caught it.Type of Change
Changes
sdk-smoke.ymlnow runstests/test_harness_secrets.py, so a failure there can't go unseen again.CARTESIA_API_KEYdoesn't replace it, and the runner's LiveKit and Deepgram credentials still stay out, including when a job sends no LiveKit key of its own. The test is renamed to say what it checks.Testing
tests/test_harness_secrets.py: 17 passed, the whole file (Python 3.12.3, hermetic). No other test in it fails on this branch.Related Issues
Refs: TH-9550 (found while moving #307 onto this branch)