Repository navigation
build_and_test: --run, NOT RUN for test-runner failures, --no-parallel - #121
Merged
Merged
Conversation
…ailures, --no-parallel, device-agnostic hints
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.
Why
Measuring the skill for the promo video found three gaps in
build_and_test.py:Tests: FAIL (0/2 passed), which looks like the tests themselves are broken (Principle 2).--simulator 'iPhone 16 Pro', which isn't available on current Xcode.Changes
--run(build mode only; refused in one line with--test):BuildRunner.get_built_app()reads-showBuildSettings -jsonand takes the.apptarget.get_destination_udid()matches name and OS against simctl; the runtime loop is now shared with_find_simulator_os. Then it callsSimulatorBooter.boot(wait_ready),AppLauncher.install/launch. PrintsLaunched: <bundle> on <device> (pid N). Each failure is one line naming the step that failed and exits 1.--jsonaddsrun.is_runner_failure()returns true when 0 tests passed and every error is a runner-start message. Output:Tests: NOT RUN (test runner couldn't start on the simulator)+ hint--no-parallel.--jsonadds"status": "not_run".--no-parallel→-parallel-testing-enabled NO.--simulator '<name>'and point tosim_list.py.Verification
pytest tests/: 339 passed (newtest_build_run.py,test_build_reporter.py); black and ruff clean on scripts/.--runprintedLaunched: … (pid N)on both a booted and a shut-down simulator;--run --jsonincludesrun;--run --testwas refused in one line;--testand--test --no-parallelboth passed 5/5.--runreturned "launch failed" once and I couldn't reproduce it after that; no retry added.