diff --git a/.github/workflows/library.yml b/.github/workflows/library.yml index 822ba73..7f8f5be 100644 --- a/.github/workflows/library.yml +++ b/.github/workflows/library.yml @@ -197,8 +197,14 @@ jobs: # Since webcpp::crypto and webcpp::hash joined, an MSVC lane builds OpenSSL in more # configurations (about 27 minutes each on a runner): on webcpporg/webcpp#24 (run # 43982348264) MSVC 14.3 took 58 minutes and 90 cancelled MSVC 14.5 at 12,600 of its - # 12,948 targets; the runners' speed varies. - timeout-minutes: 150 + # 12,948 targets; the runners' speed varies. Since webcpp::codecs and the formats joined, + # an MSVC lane updates 25,832 targets (16,034 on main's run 44781154690, where MSVC 14.5 + # took 64 minutes with its third-party cache). On main's run 46916884991 a new runner image + # and new third-party inputs left both MSVC lanes without that cache, so each built OpenSSL + # in five configurations and libdatachannel in two (150 minutes of its four b2 jobs, about + # 37 of the lane's): MSVC 14.3 took 118 minutes, and 150 cancelled MSVC 14.5 at 25,000 of + # its 25,832 targets, about 156 minutes at its pace. 210 leaves such a run a third more. + timeout-minutes: 210 strategy: fail-fast: false matrix: ${{ fromJSON(needs.plan.outputs.matrix) }} @@ -268,9 +274,13 @@ jobs: job: ${{ matrix.id }} # The lane registers its toolset in .local/user-config.jam, prints its b2 command and runs - # it; Windows's Python is python. + # it; Windows's Python is python. Its own limit, below the job's, ends a lane that overruns + # as a failed step, not a cancelled job, so that the third-party builds it finished are + # still saved: a lane the job's limit cancelled saved none, and the next run, without + # them, built them again and overran again. - name: Lane id: lane + timeout-minutes: 195 env: LANE: ${{ toJSON(matrix) }} PYTHON: ${{ runner.os == 'Windows' && 'python' || 'python3' }} diff --git a/libs/codecs b/libs/codecs index 80d90d0..570d539 160000 --- a/libs/codecs +++ b/libs/codecs @@ -1 +1 @@ -Subproject commit 80d90d0626a03acde5ecab984533b9ab68f2b68f +Subproject commit 570d5392dd7a712353c9758e967452b0221830f1 diff --git a/libs/crypto b/libs/crypto index 6052c7c..7123aee 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit 6052c7c8df4e14cfa4b53441dc5cf7d7b48ca6e2 +Subproject commit 7123aee59f534a5a4b4400ba482b534382d2e951 diff --git a/libs/hash b/libs/hash index 33b8f9e..dc0068a 160000 --- a/libs/hash +++ b/libs/hash @@ -1 +1 @@ -Subproject commit 33b8f9e045399f29930c6db634fd221c36534e9b +Subproject commit dc0068a5663a93fa2c243326a4b80d9ea9bdff80 diff --git a/libs/secure b/libs/secure index 951401a..44b1557 160000 --- a/libs/secure +++ b/libs/secure @@ -1 +1 @@ -Subproject commit 951401a39cba8855c1866b1cb58f1fa53837c735 +Subproject commit 44b15570ef99b0584d5237ff481dbfb1d29299b8 diff --git a/tools/report/lanes.py b/tools/report/lanes.py index 912e811..1da2cc1 100644 --- a/tools/report/lanes.py +++ b/tools/report/lanes.py @@ -346,7 +346,9 @@ def row(location: str, example: bool, row_name: str, row_type: str) -> tuple[Row slashed(dependency.text or '') for dependency in element.findall( 'dependencies/dependency')) - # A build of a test is its .test, in /.test//...; of an + # A build of a test is its .test, in /.test//..., or, with + # b2's , in //.test//... (two programs of + # one source, as the constant-time lanes' planted leaks, each a directory of its own); of an # example, its .output, in //... toolsets: set[str] = set() owners: dict[str, list[Build]] = {} @@ -361,6 +363,9 @@ def row(location: str, example: bool, row_name: str, row_type: str) -> tuple[Row if target in tests: owner, relative = tests[target], under_root(directory, location) toolset = segment_after(built_in, f'{relative}/{file}') + prefixed = segment_after(built_in, relative) + if toolset is None and prefixed is not None: + toolset = segment_after(built_in, f'{relative}/{prefixed}/{file}') elif file.endswith('.output'): owner, relative = row(location, True, file[:-len('.output')], 'example') toolset = segment_after(built_in, relative) diff --git a/tools/report/report_test.py b/tools/report/report_test.py index 9d10e61..7d5561c 100644 --- a/tools/report/report_test.py +++ b/tools/report/report_test.py @@ -747,6 +747,32 @@ def test_an_action_in_a_tests_own_directory_is_the_tests(root: Path) -> None: check_pages(out) +def test_a_tests_directory_under_a_location_prefix_names_its_toolset(root: Path) -> None: + # b2's puts a test's directory one level deeper, // + # .test//..., as the constant-time lanes give each planted leak, a program of + # a source another program has too. The report reads its toolset there, and its verdict. + text = sample('native-pass').read_text(encoding='utf-8') + moved = text.replace('bin/libs/demo/test/pass.test/', 'bin/libs/demo/test/pass/pass.test/') + assert moved != text, 'the test pass moved' + (root / 'prefixed.xml').write_text(moved, encoding='utf-8') + out = root / 'report' + result = report(out, ('native', root / 'prefixed.xml')) + assert result.returncode == 0, outcome(result) + assert matrix(out / 'demo.html').verdict('pass', 'native') == 'pass' + check_pages(out) + text = sample('native-failures').read_text(encoding='utf-8') + moved = text.replace('bin/libs/planted/test/fails_to_link.test/', + 'bin/libs/planted/test/linked/fails_to_link.test/') + assert moved != text, 'the test fails_to_link moved' + (root / 'prefixed-failures.xml').write_text(moved, encoding='utf-8') + out = root / 'failures' + result = report(out, ('native', root / 'prefixed-failures.xml')) + assert result.returncode == 1, outcome(result) + assert 'native: planted/fails_to_link: link' in result.stderr, outcome(result) + assert matrix(out / 'planted.html').verdict('fails_to_link', 'native') == 'link' + check_pages(out) + + def test_output_cdata_cannot_hold_is_shown(root: Path) -> None: # The test prints ]]>, which ends b2's CDATA early, markup, and a byte that is not UTF-8. data = sample('native-odd-output').read_bytes() @@ -1037,6 +1063,7 @@ def test_samples_read_as_b2_writes_them_today(root: Path) -> None: test_an_own_lane_that_builds_a_size_table_built_something, test_a_failure_outside_every_test_fails_the_lane, test_an_action_in_a_tests_own_directory_is_the_tests, + test_a_tests_directory_under_a_location_prefix_names_its_toolset, test_output_cdata_cannot_hold_is_shown, test_served_test_passes_and_fails_as_a_run, test_emscripten_lane_and_its_link_and_driven_tests,