tests: the host GL probe starts only on an undeclared engine (Linux e2e)
A new e2e, Linux only (the GLX probe, gfxtest glx, is a child process of Firefox on GTK; Windows has none): a declared engine starts no probe from the launch to the page's WebGL context on firefox-69, and runs it on 68; with zoom.stealth.fpp.hw_seed 0 Mozilla's probe starts on every engine. The process tree is sampled with psutil in a thread from before the launch (tests/_process_sampler.py). A poll can miss a child that lives tens of milliseconds, so the launch runs under the strace stand-in (execve and the clones only): every exec of the probe in the log must be a pid the sampler saw as the probe, the sampler must cover the launch, and the log must hold the browser's exec; otherwise the test is red with the problem, never green on a miss. A unit file drives the real sampler with a fake tree. Rows: wrapper.e2e.suite.linux.3 242 -> 244, Windows exclusion 16 -> 17; wrapper.unit.all.linux 2382 -> 2389, wrapper.unit.all.windows 2383 -> 2390; the firefox-69 gate is registered in tests/data/engine_gates.json.
This commit is contained in:
1 parent
7221b7da06
commit
616919880a
7 files changed
+526
-7
No files matched your search
@@ -14,12 +14,12 @@
|
||||
{"id": "wrapper.e2e.fakeweb", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_fakeweb_p2_e2e.py", "tests/test_fakeweb_p4_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The fake web, offline: our browser on the hard pages (profile P2: a reused routed page reaches networkidle every time, also under a load of three other browsers; the other site is another process) and on the 17-step journey of a person (profile P4), each judged against what stock Firefox does, as tests/fakeweb/pages.json declares it. 4 = 3 + 1. Stock itself is held to that declaration, and compared with ours step by step, by scripts/run_fakeweb.py in .github/workflows/fakeweb.yml. Needs the candidate binary (STEALTHFOX_E2E_BINARY)."},
|
||||
{"id": "wrapper.e2e.fontconfig", "giro": "G2", "os": ["linux"], "min_tests": 2, "exact": true, "tests": ["tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py"], "marker": "e2e", "needs_root": false, "linux_only": "Fontconfig exists only on Linux: the parent of the engine shows <GRE>/fonts to it (FcConfigAppFontAddDir) to rebuild a font from a path and a face index. On Windows DirectWrite opens the file from its path, with no folder to scan and no cache to read, so this test has no Windows counterpart.", "note": "2 = (1) the stand-in that runs the engine under strace stays in the engine's place, as the core launches it (the leader of a process group of its own): a fake engine with a child, no browser; the process the launcher holds lives as long as the fake engine, and the group killed holds strace and the child (the stand-in that exec'd setsid forked and exited 0 at once: candidate 44161687675); (2) the warm launch of the parent reads the bundle from fontconfig's cache and does not scan it again (from firefox-66, engine_at_least). Two launches under strace with the same XDG_CACHE_HOME of the test, the first cold and the second warm: the cold parent opens every font file of <GRE>/fonts (the folder as the disk lists it) before any page and fontconfig writes its cache; the warm parent does not open every one of them, and it opens a *.cache-* file of fontconfig (a few files are opened to be used, so the verdict asks about the whole folder, as a scan does). Scan and drawing are told apart by position: only what the parent opens before the first page counts (the opens that draw are written as after_startup). Evidence in RUNNER_TEMP/invpw-evidence/fontconfig-cache: the interval and the number of opens of the bundle, the names of the files of the bundle each launch opened before the first page, the size of the cache file, the VmRSS of the parent after about:blank and after a page with every family, and a third launch with gfx.bundled-fonts.activate=0 (the behaviour before), which is evidence only. Needs strace on the runner: without it both are red, not skipped. No threshold."},
|
||||
{"id": "wrapper.unit.compositing", "giro": "G1", "os": ["linux", "windows"], "min_tests": 30, "exact": true, "tests": ["tests/test_the_page_bytes_reference_compares_decoded_pixels.py"], "marker": "unit", "needs_root": false, "note": "The helpers of wrapper.e2e.compositing on known inputs, no browser: the PNG compared on decoded pixels (another deBG chunk and compression are the same, one pixel is not, every scanline filter), the comparison with a reference (changed, missing and extra keys named, the entry to record), the type of an engine process, an engine process known by its executable and not by the name it gives itself (Linux), and the CPU of a window, and the shape of the committed Windows reference, and the box cut out of a screenshot (its pixels, a box outside the picture refused, written as a PNG and read back, two boxes told apart by a pixel that is named, the pixels that are not grey)."},
|
||||
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 2382, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_moving_page_model.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/testLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 2383, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_moving_page_model.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_Line truncated
|
||||
{"id": "wrapper.unit.all.linux", "giro": "G1", "os": ["linux"], "min_tests": 2389, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_moving_page_model.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/testLine truncated
|
||||
{"id": "wrapper.unit.all.windows", "giro": "G1", "os": ["windows"], "min_tests": 2390, "exact": true, "tests": ["tests/test_a_162_message_is_read_like_a_161_one.py", "tests/test_a_click_makes_one_mousemove_at_its_point.py", "tests/test_a_closed_context_leaves_nothing_in_the_registry.py", "tests/test_a_closed_page_says_nothing.py", "tests/test_a_closed_pipe_is_a_closed_target.py", "tests/test_a_commit_at_any_point_of_the_hand_over_reaches_the_client_once.py", "tests/test_a_context_proxy_carries_its_measured_udp_exit.py", "tests/test_a_context_route_disables_the_cache.py", "tests/test_a_detached_frame_answers_detached.py", "tests/test_a_dialog_is_a_protocol_object.py", "tests/test_a_dialog_is_answered_after_a_pause.py", "tests/test_a_download_finished_before_it_was_announced_is_finished.py", "tests/test_a_failed_expect_carries_its_call_log.py", "tests/test_a_failed_generation_of_the_security_state_keeps_its_evidence.py", "tests/test_a_failed_launch_stops_the_display.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_launch_asks_nobody_on_the_internet_where_it_leaves_from.py", "tests/test_a_launch_gives_the_core_its_engine_for_the_security_state.py", "tests/test_a_launch_has_one_deadline.py", "tests/test_a_launch_without_a_session_gets_one.py", "tests/test_a_live_event_does_not_overtake_the_replay_of_a_new_page.py", "tests/test_a_module_that_leaves_a_browser_open_fails.py", "tests/test_a_new_page_waits_for_the_engine.py", "tests/test_a_non_finite_number_crosses_the_wire_as_a_tag.py", "tests/test_a_page_closed_before_its_announcement_is_not_announced.py", "tests/test_a_page_is_handed_over_only_when_the_engine_says_it_is_ready.py", "tests/test_a_path_leaves_as_one_stroke.py", "tests/test_a_port_number_is_held_until_it_is_used.py", "tests/test_a_read_whose_probe_ran_out_is_the_callers_timeout.py", "tests/test_a_request_and_a_response_are_light.py", "tests/test_a_request_says_what_it_is.py", "tests/test_a_session_ends_before_the_next_test_starts.py", "tests/test_a_stroke_is_judged_by_its_shape_not_its_length.py", "tests/test_a_unit_test_does_not_read_the_seal_of_the_job.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_expect_reads_its_value_once.py", "tests/test_async_api.py", "tests/test_browser_output_is_drained.py", "tests/test_ci_downloads_are_authenticated.py", "tests/test_ci_drive_gate_goes_through_the_core.py", "tests/test_ci_host_gate.py", "tests/test_ci_lab_geoip.py", "tests/test_ci_lab_geoip_verify.py", "tests/test_ci_lab_intermediates.py", "tests/test_ci_lab_security_state.py", "tests/test_ci_real_geoip_check.py", "tests/test_ci_real_geoip_exit_code.py", "tests/test_ci_runs_once_per_commit.py", "tests/test_ci_suite_run.py", "tests/test_ci_verdict.py", "tests/test_ci_workflows_build_the_geoip_database.py", "tests/test_ci_workflows_set_the_intermediates_list.py", "tests/test_ci_workflows_set_the_security_state.py", "tests/test_cli.py", "tests/test_click_rhythm.py", "tests/test_connect_does_not_start_threads_on_the_loop.py", "tests/test_context_locale_is_a_list.py", "tests/test_core_pin.py", "tests/test_cpu_by_type_window.py", "tests/test_cross_origin_iframe.py", "tests/test_cursor_dispatch.py", "tests/test_cursor_wiring.py", "tests/test_docs_name_the_mcp_repo_as_it_is.py", "tests/test_doh_session_prefs_unit.py", "tests/test_drag_motion.py", "tests/test_e2e_hermetic.py", "tests/test_element_handle_actions.py", "tests/test_every_order_of_the_events_of_a_popup_gives_one_page_event.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_refusal_is_declared.py", "tests/test_every_route_command_is_answered_may_fail.py", "tests/test_every_suite_runs_on_linux_and_windows.py", "tests/test_expose_binding_refusal.py", "tests/test_fakeweb_p4_report.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fixtures_name_why_the_package_is_missing.py", "tests/test_fork.py", "tests/test_frame_dispatch.py", "tests/test_geoip_used.py", "tests/test_goto_follows_the_base_url.py", "tests/test_hook_wiring.py", "tests/test_imports.py", "tests/test_integration.py", "tests/test_juggler_event_buffer.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py", "tests/test_juggler_lives_in_the_core.py", "tests/test_juggler_transport.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_launch_counters_run_on_github.py", "tests/test_launcher_config.py", "tests/test_launcher_helpers.py", "tests/test_motion_never_hides_a_programming_error.py", "tests/test_moving_page_model.py", "tests/test_navigation_response.py", "tests/test_new_page_defaults.py", "tests/test_no_event_of_any_family_is_lost_by_the_hand_over.py", "tests/test_no_legacy_in_the_wrapper.py", "tests/test_no_override_leaves_the_persona_scheme.py", "tests/test_no_thread_is_started_on_the_reader.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pin.py", "tests/test_pin_dicts_Line truncated
|
||||
{"id": "wrapper.e2e.securitystate", "giro": "G2", "os": ["linux", "windows"], "min_tests": 4, "exact": true, "tests": ["tests/test_security_state_engine_e2e.py"], "marker": "e2e", "needs_root": false, "note": "The security state the core declares, against the engine: the engine launched directly in its generate mode makes what it is given (the contract's result, security_state/ with the bytes of the full filter and of the delta, the core's own validation of it); a normal launch declares no pref of the mode and re-imports nothing; a certificate that Mozilla's CRLite test data say is revoked in a delta is refused at the first navigation (SEC_ERROR_REVOKED_CERTIFICATE) while a valid one loads, and the revoked one loads when the ready directory has no data; a ready directory with no or an empty security_state/ starts. Certificates made on the run (a fresh root trusted in cert9.db by the engine's own xpcshell, Mozilla's default test key as the key of CN=int), servers on loopback, no network. Red on firefox-67 (no generate mode)."},
|
||||
{"id": "wrapper.e2e.suite.linux.1", "giro": "G2", "os": ["linux"], "min_tests": 377, "exact": true, "tests": ["tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_declared_webgl_extension_survives_its_use_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_popup_is_reported_when_the_engine_says_it_is_ready_as_playwright_does_e2e.py", "tests/test_a_screenshot_draws_the_text_of_the_bundled_fonts_as_the_content_does_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_accept_language_on_the_wire_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_declared_host_network_e2e.py", "tests/test_detectors_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_element_screenshot_e2e.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_file_chooser.py", "tests/test_fingerprint_surface.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_frames_outlive_the_back_forward_cache_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_display_linux.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_ignore_https_errors_e2e.py", "tests/test_injected_node_surface.py", "tests/test_juggler_connection.py", "tests/test_juggler_posix_pipe.py", "tests/test_juggler_transport.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_navigation_response.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_oop_frame_element.py", "tests/test_oop_frame_geometry.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_realness_behind_a_declared_exit_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_header_order_e2e.py", "tests/test_same_document_goto_e2e.py", "tests/test_screencast.py", "tests/test_screencast_stop_e2e.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_offline_e2e.py", "tests/test_shadow_trusted_input.py", "tests/test_strict_and_force.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_a_launch_scans_no_process_of_the_machine", "tests/test_the_engine_is_born_in_the_job_e2e.py::test_after_close_no_process_of_the_session_is_left", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_ua_widget_not_selectable.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py", "tests/test_webgl_noise_active.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_ofLine truncated
|
||||
{"id": "wrapper.e2e.suite.linux.2", "giro": "G2", "os": ["linux"], "min_tests": 411, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_drag_keeps_its_buttons_pressed_e2e.py", "tests/test_a_field_is_typed_after_a_pause.py", "tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_keepalive_request_reaches_the_client_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_page_that_moves_on_e2e.py", "tests/test_a_pointer_event_is_handled_before_the_call_returns_e2e.py", "tests/test_a_request_says_what_it_is_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_doh_through_the_proxy_e2e.py", "tests/test_doh_under_stress_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_drag_motion.py", "tests/test_expose_binding_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fission_frames_route_and_bindings_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_event_listeners.py", "tests/test_juggler_injected.py::test_a_javascript_that_THROWS_arrives_as_an_error_not_as_None", "tests/test_juggler_injected.py::test_actionability_DISTINGUISHES_instead_of_always_saying_yes", "tests/test_juggler_injected.py::test_reads_that_make_no_sense_are_REJECTED", "tests/test_juggler_injected.py::test_states_DISCRIMINATE_instead_of_always_saying_true", "tests/test_juggler_injected.py::test_the_DOM_READING_group", "tests/test_juggler_injected.py::test_the_selector_engines_respond", "tests/test_juggler_injected.py::test_the_text_reads", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_keyboard_rhythm.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_mouse_events_keep_their_values_e2e.py", "tests/test_new_page_defaults.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_proxy_reaches_the_browser.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_e2e.py", "tests/test_route_post_data_e2e.py", "tests/test_route_sends_a_navigation_elsewhere_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screenshot_of_text_returns_linux_e2e.py", "tests/test_scroll_into_view.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_service_workers_blocked.py", "tests/test_set_input_files_payloads.py", "tests/test_software_compositing_is_declared_e2e.py", "tests/test_the_association_is_ready_when_the_peerconnection_is_born_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_typing_a_character_without_a_key_e2e.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 564 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapLine truncated
|
||||
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 242, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.linux.3", "giro": "G2", "os": ["linux"], "min_tests": 244, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_language_is_the_accept_language_of_every_request_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_launch_and_a_context_timezone_reach_the_page_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_popup_of_a_link_reaches_the_client_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_canvas_measure_text_metrics_e2e.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fakeweb_p2_e2e.py", "tests/test_fission_frames_tree_input_and_pixels_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_hardware_values_are_declared_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_page_element_atoms_run_in_a_sandbox_e2e.py", "tests/test_popup_geometry_is_the_declared_frame_e2e.py", "tests/test_script_cache_written_is_adopted_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py", "tests/test_webgpu_external_texture_e2e.py", "tests/test_window_occlusion_e2e.py"], "marker": "e2e", "needs_root": false, "windows_twin": "wrapper.e2e.suite.windows.3", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 2 rows of linux are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 565 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on linux (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.1", "giro": "G2", "os": ["windows"], "min_tests": 261, "exact": true, "tests": ["tests/test_a_click_waits_for_the_navigation_it_plans_e2e.py", "tests/test_a_closed_browser_leaves_the_others_alone_e2e.py", "tests/test_a_context_init_script_runs_once_e2e.py", "tests/test_a_goto_to_a_refused_port_ends_with_its_reason_e2e.py", "tests/test_a_granted_permission_is_the_one_the_page_asks_for_e2e.py", "tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_left_documents_body_is_evicted_e2e.py", "tests/test_a_page_cannot_probe_the_juggler_e2e.py", "tests/test_a_tiny_download_on_a_served_browser_is_saved_e2e.py", "tests/test_a_worker_comes_back_with_its_page_from_the_cache_e2e.py", "tests/test_browser_output_is_drained.py", "tests/test_canvas_create_pattern_projection_e2e.py", "tests/test_click_rhythm.py", "tests/test_closing_one_of_four_browsers_does_not_hold_the_loop_e2e.py", "tests/test_context_locale_e2e.py", "tests/test_context_proxy_only_resolves_by_doh_e2e.py", "tests/test_detectors_e2e.py", "tests/test_download_is_intercepted_e2e.py", "tests/test_e2e.py", "tests/test_element_handle_actions.py", "tests/test_every_page_draws_its_own_acts.py", "tests/test_every_reader_of_a_webgl_canvas_agrees_e2e.py", "tests/test_fission_identity_parity_e2e.py", "tests/test_fission_iframe_crash_e2e.py", "tests/test_focus_survives_os_deactivation_e2e.py", "tests/test_geolocation_reads_nothing_of_the_host_windows_e2e.py", "tests/test_goto_to_the_same_url_e2e.py", "tests/test_ignore_https_errors_e2e.py", "tests/test_juggler_actions.py", "tests/test_juggler_transport.py", "tests/test_keyboard_rhythm.py", "tests/test_moz_element_paints_a_webgl_canvas_as_drawn_e2e.py", "tests/test_nested_frame_actions.py", "tests/test_popups_reach_the_client_e2e.py", "tests/test_preload_newtab_turns_the_privileged_about_process_off_e2e.py", "tests/test_route_superseded_e2e.py", "tests/test_scroll_only_if_needed_e2e.py", "tests/test_security_state_engine_e2e.py", "tests/test_service_worker.py", "tests/test_service_workers_blocked.py", "tests/test_strict_and_force.py", "tests/test_the_engine_is_born_in_the_job_e2e.py", "tests/test_the_hosts_file_of_the_host_is_never_read_e2e.py", "tests/test_the_shutdown_ping_leaves_by_the_background_task_e2e.py", "tests/test_trial_does_not_act.py", "tests/test_ua_widget_not_selectable.py", "tests/test_webgpu_canvas_readback_is_noised_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 1 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 609 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.2", "giro": "G2", "os": ["windows"], "min_tests": 221, "exact": true, "tests": ["tests/test_a_goto_to_a_response_with_no_document_ends_e2e.py", "tests/test_a_latin_letter_on_a_cyrillic_persona_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_a_regional_indicator_pair_measures_the_same_first_and_after_other_families_e2e.py", "tests/test_a_turn_name_over_tcp_goes_through_the_proxy_of_the_context_e2e.py", "tests/test_add_script_tag.py", "tests/test_an_isolated_page_and_the_next_e2e.py", "tests/test_audio_context_values_are_declared_e2e.py", "tests/test_bundle_font_names_e2e.py", "tests/test_caller_world_handles_e2e.py", "tests/test_canvas_reads_as_drawn.py", "tests/test_canvas_render_stealth.py", "tests/test_css_media_reads_the_declared_screen_and_pointer_e2e.py", "tests/test_declared_host_network_e2e.py", "tests/test_expose_binding_e2e.py", "tests/test_fission_frames_dialogs_downloads_popups_e2e.py", "tests/test_fullscreen_without_wm_e2e.py", "tests/test_goto_networkidle_after_spa_e2e.py", "tests/test_goto_script_redirect_e2e.py", "tests/test_hidden_desktop.py", "tests/test_ice_names_by_the_context_proxy_e2e.py::test_the_ice_name_of_a_context_goes_by_the_proxy_of_that_context", "tests/test_juggler_lifecycle_e2e.py", "tests/test_key_delay_reaches_the_keyboard.py", "tests/test_long_session_e2e.py", "tests/test_mouse.py", "tests/test_native_line_endings_are_windows_e2e.py", "tests/test_navigation_across_processes_e2e.py", "tests/test_networkidle_reaches_the_client_e2e.py", "tests/test_nothing_leaves_but_the_proxy_e2e.py", "tests/test_nothing_of_a_context_leaves_but_through_its_proxy_e2e.py", "tests/test_oop_frame_geometry.py", "tests/test_proxy_socks_auth_e2e.py", "tests/test_resolver_race_e2e.py", "tests/test_route_e2e.py", "tests/test_screencast_stop_e2e.py", "tests/test_the_branding_a_page_loads_is_the_declared_archive_e2e.py", "tests/test_the_device_enumeration_takes_the_declared_time_e2e.py", "tests/test_the_evaluated_code_has_no_debugger_name_e2e.py", "tests/test_the_favicon_stays_out_of_sight_e2e.py", "tests/test_the_font_list_is_the_bundle_e2e.py", "tests/test_the_scheme_is_the_personas_e2e.py", "tests/test_the_whole_udp_chain_by_name_e2e.py::test_a_turn_srflx_by_name_arrives_through_the_relay_when_the_exit_of_the_lab_is_loopback", "tests/test_turn_over_tcp_is_tried_for_real_e2e.py", "tests/test_voices_e2e.py", "tests/test_wait_for_function.py", "tests/test_wait_for_timeout.py", "tests/test_web_fonts_of_closed_contexts_e2e.py", "tests/test_webrtc_realness.py::test_a_gateway_that_is_far_away_still_gives_the_page_a_srflx_born_through_its_relay", "tests/test_webrtc_realness.py::test_a_gather_after_the_page_loaded_through_the_gateway_costs_only_the_road_to_the_server", "tests/test_webrtc_realness.py::test_a_host_with_ipv6_addresses_gathers_through_an_ipv4_relay", "tests/test_webrtc_realness.py::test_a_proxy_that_does_not_relay_udp_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_relay_never_answers_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_a_proxy_whose_udp_leaves_from_another_address_gives_no_srflx_at_all", "tests/test_webrtc_realness.py::test_not_blocked_behind_tcp_only_socks", "tests/test_webrtc_realness.py::test_the_first_candidate_of_a_gather_does_not_wait_for_a_gateway_that_is_far_away", "tests/test_webrtc_realness.py::test_the_turn_over_tcp_of_a_context_goes_through_the_proxy_of_that_context", "tests/test_webrtc_realness.py::test_two_contexts_with_two_proxies_each_gets_the_srflx_of_its_own"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.2", "note": "Part 2 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
{"id": "wrapper.e2e.suite.windows.3", "giro": "G2", "os": ["windows"], "min_tests": 273, "exact": true, "tests": ["tests/test_a_click_in_an_iframe_lands_at_the_frames_own_screen_origin_e2e.py", "tests/test_a_context_that_ends_leaves_no_process_e2e.py", "tests/test_a_cors_preflight_is_not_a_request_of_the_page_e2e.py", "tests/test_a_launch_without_a_session_gets_one_e2e.py", "tests/test_a_mouse_click_makes_one_mousemove_on_its_point_e2e.py", "tests/test_a_page_over_ipv6_gathers_on_a_machine_declared_without_it_e2e.py", "tests/test_a_served_browser_answers_a_plain_client_e2e.py", "tests/test_actions_without_a_point.py", "tests/test_audio_noise_e2e.py", "tests/test_audio_sample_rate_is_declared_e2e.py", "tests/test_bypass_csp_e2e.py", "tests/test_control_a_selects_all_in_a_field_e2e.py", "tests/test_cross_origin_iframe.py", "tests/test_dom_iterables_from_evaluate_e2e.py", "tests/test_drag_motion.py", "tests/test_element_screenshot_e2e.py", "tests/test_fakeweb_p4_e2e.py", "tests/test_fingerprint_consistency.py", "tests/test_first_launch_from_a_new_path.py", "tests/test_fission_frames_history_and_processes_e2e.py", "tests/test_fission_frames_workers_storage_and_special_frames_e2e.py", "tests/test_fission_strategy1_bench.py", "tests/test_goto_and_every_way_it_is_stopped_e2e.py", "tests/test_http3_through_the_proxy_e2e.py", "tests/test_input_is_born_before_the_page_sees_it_e2e.py", "tests/test_ipv6_literal_connect_e2e.py", "tests/test_networkidle_through_a_served_browser_with_routes_e2e.py", "tests/test_page_number_follows_the_call.py", "tests/test_persistent_profile_keeps_state.py", "tests/test_pointer_position.py", "tests/test_popup_destinations_e2e.py", "tests/test_popup_pages.py", "tests/test_proxy_http_auth_e2e.py", "tests/test_requestless_navigation.py", "tests/test_route_abort_code.py", "tests/test_route_post_data_e2e.py", "tests/test_same_document_navigation.py", "tests/test_screencast.py", "tests/test_screenshot_looks_where_you_are.py", "tests/test_service_worker_controller_e2e.py", "tests/test_set_input_files_payloads.py", "tests/test_set_offline_e2e.py", "tests/test_the_callers_code_is_not_counted_e2e.py", "tests/test_the_callers_code_runs_once_e2e.py", "tests/test_the_close_returns_when_the_browser_has_exited_e2e.py", "tests/test_the_launch_counter_is_one_plain_get_before_any_page_e2e.py", "tests/test_webgl_declared_parameters_e2e.py", "tests/test_webgl_shader_language_e2e.py", "tests/test_webgpu_adapter_is_declared_e2e.py", "tests/test_webgpu_external_texture_e2e.py"], "marker": "e2e", "needs_root": false, "linux_twin": "wrapper.e2e.suite.linux.1", "note": "Part 3 of the whole e2e suite of the wrapper (every test that opens the browser: what e2e.yml runs on the published engine), on the engine under test, as two passes through scripts/ci_suite_run.py (4 browsers at once, then the wall_clock tests alone; no rerun). The files of the 4 rows of windows are the files of tests/ that tests/test_the_e2e_suite_is_accounted_for.py holds one by one: a file whole when every test of it is here, else its tests by name. Partition from the junits of runs 44942540063 and 44985244053, test time balanced (about 610 s of estimated wall time, 4 browsers). A new file is added by hand to a row of each system and the minimum of the row goes up by hand. Left out of every row, with the reason in the accounting test: the files and tests of wrapper.e2e.udp.exit and wrapper.e2e.udp.sandbox (root and user namespaces, their own rows), the files of the round after the publication (tests/_post_publication.py), and the tests that skip on windows (a skip is red in the verdict)."},
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
"""A sampler of the processes below a pid, from before a launch to after it, and what proves it missed none: the e2e of the host GL probe.
|
||||
|
||||
Firefox on Linux probes the host's GL in a child of the parent: ``<GRE>/gfxtest glx -f <fd>`` (``GfxInfo::FireGLXTestProcess``, widget/gtk/GfxInfo.cpp;
|
||||
Mozilla's code and logs call it ``glxtest``, the binary is ``gfxtest`` and ``glx`` is the probe it runs). It lives as long as it takes to load the host's GL,
|
||||
answer through the pipe and be reaped by the parent, and a poll of the process tree can fall between two of its samples. So the sampler alone never says
|
||||
"absent". The complete list is the kernel's: under the strace stand-in (``tests/_strace_stand_in.py``) every ``execve`` of every process of the browser's tree is
|
||||
written to the log, because ptrace stops the process AT the call and it cannot run past it unseen. Every exec of a probe in that log must have been seen by
|
||||
the sampler too (same pid, named as a probe), and the sampler must have run from before the launch to after the page had its WebGL context. A probe that
|
||||
strace saw and the sampler did not, a sampler that did not cover the launch, a log that does not hold the browser's own exec, or a sampler that died on an
|
||||
error is a PROBLEM that ``reconcile`` returns, and a test that asserts ``problems == []`` first is red then: a miss is reported, never read as "no probe".
|
||||
|
||||
``TreeSampler`` takes ``read`` (``root -> {pid: (name, ppid, cmdline)}``, psutil by default) and ``clock``, so the unit tests drive it with a fake tree and a
|
||||
counter (tests/test_the_process_sampler_cannot_miss_a_short_lived_probe.py). No browser here.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import re
|
||||
import threading
|
||||
import time
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Callable, Dict, Iterable, List, Optional, Tuple
|
||||
|
||||
#: The names of the probe's executable: ``gfxtest`` since Mozilla merged its probes into one binary, ``glxtest`` before.
|
||||
PROBE_NAMES = ("gfxtest", "glxtest")
|
||||
|
||||
#: What strace has to write for ``read_witness``: the execs, and the clones that make the tree.
|
||||
TRACE = "execve,clone,clone3,fork,vfork"
|
||||
|
||||
Tree = Dict[int, Tuple[str, Optional[int], List[str]]]
|
||||
|
||||
|
||||
@dataclass
|
||||
class Seen:
|
||||
"""A process the sampler saw: every name and command line it had (a child is first seen before its exec, with its parent's name), its parent, and the
|
||||
clock at the first and the last sample that held it."""
|
||||
pid: int
|
||||
ppid: Optional[int]
|
||||
names: List[str]
|
||||
cmds: List[List[str]]
|
||||
first: float
|
||||
last: float
|
||||
|
||||
def is_probe(self) -> bool:
|
||||
return any(n in PROBE_NAMES for n in self.names) or any(c and os.path.basename(c[0]) in PROBE_NAMES for c in self.cmds)
|
||||
|
||||
|
||||
def psutil_tree(root: int) -> Tree:
|
||||
"""``{pid: (name, ppid, cmdline)}`` of every process below ``root`` now. A zombie keeps its name and parent and has no command line."""
|
||||
import psutil
|
||||
|
||||
out: Tree = {}
|
||||
try:
|
||||
children = psutil.Process(root).children(recursive=True)
|
||||
except psutil.Error:
|
||||
return out
|
||||
for proc in children:
|
||||
try:
|
||||
with proc.oneshot():
|
||||
name, ppid = proc.name(), proc.ppid()
|
||||
try:
|
||||
cmd = proc.cmdline()
|
||||
except psutil.Error:
|
||||
cmd = []
|
||||
except psutil.Error:
|
||||
continue
|
||||
out[proc.pid] = (name, ppid, list(cmd))
|
||||
return out
|
||||
|
||||
|
||||
class TreeSampler:
|
||||
"""Samples the tree below ``root`` in a thread, as fast as it can (a step of ``step`` seconds between two reads, so the test's own client keeps the
|
||||
interpreter), from ``start`` to ``stop``. ``start`` takes the first sample before it returns and ``stop`` takes a last one after the thread has ended,
|
||||
so what happens between the two calls is inside the samples. ``first_sample`` is the clock when the first read ENDED, ``last_sample`` the clock when
|
||||
the last read BEGAN: the window the sampler covers."""
|
||||
|
||||
def __init__(self, root: int, read: Callable[[int], Tree] = psutil_tree, clock: Callable[[], float] = time.monotonic, step: float = 0.001) -> None:
|
||||
self.root = root
|
||||
self._read = read
|
||||
self._clock = clock
|
||||
self._step = step
|
||||
self.seen: Dict[int, Seen] = {}
|
||||
self.samples = 0
|
||||
self.first_sample: Optional[float] = None
|
||||
self.last_sample: Optional[float] = None
|
||||
self.error: Optional[BaseException] = None
|
||||
self._stopped = threading.Event()
|
||||
self._lock = threading.Lock()
|
||||
self._thread: Optional[threading.Thread] = None
|
||||
|
||||
def start(self) -> "TreeSampler":
|
||||
self._sample()
|
||||
self._thread = threading.Thread(target=self._poll, name="tree-sampler", daemon=True)
|
||||
self._thread.start()
|
||||
return self
|
||||
|
||||
def stop(self) -> None:
|
||||
self._stopped.set()
|
||||
if self._thread is not None:
|
||||
self._thread.join()
|
||||
if self.error is None:
|
||||
self._sample()
|
||||
|
||||
def _poll(self) -> None:
|
||||
try:
|
||||
while not self._stopped.is_set():
|
||||
self._sample()
|
||||
self._stopped.wait(self._step)
|
||||
except BaseException as exc: # the verdict reports it: a sampler that died covered nothing after it
|
||||
self.error = exc
|
||||
|
||||
def _sample(self) -> None:
|
||||
began = self._clock()
|
||||
tree = self._read(self.root)
|
||||
ended = self._clock()
|
||||
with self._lock:
|
||||
for pid, (name, ppid, cmd) in tree.items():
|
||||
seen = self.seen.get(pid)
|
||||
if seen is None:
|
||||
self.seen[pid] = Seen(pid, ppid, [name] if name else [], [list(cmd)] if cmd else [], began, began)
|
||||
continue
|
||||
seen.last = began
|
||||
if name and name not in seen.names:
|
||||
seen.names.append(name)
|
||||
if cmd and list(cmd) not in seen.cmds:
|
||||
seen.cmds.append(list(cmd))
|
||||
if self.first_sample is None:
|
||||
self.first_sample = ended
|
||||
self.last_sample = began
|
||||
self.samples += 1
|
||||
|
||||
def view(self) -> Tuple[Dict[int, Seen], Optional[float], Optional[float], Optional[BaseException]]:
|
||||
with self._lock:
|
||||
return dict(self.seen), self.first_sample, self.last_sample, self.error
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------------------------------------------------------------- the witness: strace
|
||||
@dataclass
|
||||
class Exec:
|
||||
"""One ``execve`` of the strace log: the pid, the path, the arguments, and the result (``None`` when the log ends before it)."""
|
||||
pid: int
|
||||
path: str
|
||||
argv: List[str] = field(default_factory=list)
|
||||
result: Optional[int] = None
|
||||
|
||||
def ran(self) -> bool:
|
||||
"""The exec replaced the process (0), or the log stops before saying (counted as run: it can only make a test red)."""
|
||||
return self.result is None or self.result == 0
|
||||
|
||||
|
||||
_EXECVE = re.compile(r'^(\d+)\s+execve\("((?:[^"\\]|\\.)*)",\s*\[(.*?)\]')
|
||||
_RESUMED_EXECVE = re.compile(r"^(\d+)\s+<\.\.\. execve resumed>")
|
||||
_RESULT = re.compile(r"\)\s+=\s+(-?\d+)")
|
||||
_QUOTED = re.compile(r'"((?:[^"\\]|\\.)*)"')
|
||||
|
||||
|
||||
def read_execs(lines: Iterable[str]) -> List[Exec]:
|
||||
"""Every ``execve`` of a ``strace -f`` log (no timestamps), with its result: on its line, or on the ``<... execve resumed>`` line of its pid when
|
||||
another thread interrupted it."""
|
||||
out: List[Exec] = []
|
||||
pending: Dict[int, Exec] = {}
|
||||
for line in lines:
|
||||
m = _EXECVE.match(line)
|
||||
if m:
|
||||
found = Exec(int(m.group(1)), m.group(2), _QUOTED.findall(m.group(3)))
|
||||
out.append(found)
|
||||
if "<unfinished ...>" in line:
|
||||
pending[found.pid] = found
|
||||
else:
|
||||
r = _RESULT.search(line[m.end():])
|
||||
found.result = int(r.group(1)) if r else None
|
||||
continue
|
||||
m = _RESUMED_EXECVE.match(line)
|
||||
if m and int(m.group(1)) in pending:
|
||||
r = _RESULT.search(line)
|
||||
pending.pop(int(m.group(1))).result = int(r.group(1)) if r else None
|
||||
return out
|
||||
|
||||
|
||||
def is_probe_exec(found: Exec) -> bool:
|
||||
return os.path.basename(found.path) in PROBE_NAMES
|
||||
|
||||
|
||||
def is_glx_probe(found: Exec) -> bool:
|
||||
"""The GLX probe: the probe's executable with ``glx`` as its command (``gfxtest glx -f <fd>``; ``vaapi``, ``v4l2`` and ``vulkan`` are other probes)."""
|
||||
return is_probe_exec(found) and found.argv[1:2] == ["glx"]
|
||||
|
||||
|
||||
def browser_parents(execs: Iterable[Exec], real_binary: str) -> List[int]:
|
||||
"""The pids that executed the browser itself (the real binary, not a content process): the parent the probe is a child of."""
|
||||
return [e.pid for e in execs if e.ran() and e.path == real_binary and "-contentproc" not in e.argv]
|
||||
|
||||
|
||||
def reconcile(seen: Dict[int, Seen], first_sample: Optional[float], last_sample: Optional[float], error: Optional[BaseException],
|
||||
execs: List[Exec], real_binary: str, launched_at: float, ready_at: Optional[float]) -> Tuple[List[Exec], List[str]]:
|
||||
"""``(probes, problems)``: the execs of a probe that ran, and every reason the observation cannot be trusted. ``problems`` is empty only when strace
|
||||
saw the browser start, the sampler ran from before ``launched_at`` to after ``ready_at`` (the page has its WebGL context), and every probe strace saw
|
||||
the kernel exec was seen by the sampler under the same pid as a probe, and the other way round."""
|
||||
problems = []
|
||||
if error is not None:
|
||||
problems.append("the sampler stopped on an error: %r" % (error,))
|
||||
if first_sample is None or first_sample > launched_at:
|
||||
problems.append("the sampler's first sample (%s) is not before the launch (%s): what the launch started first is not in it" % (first_sample, launched_at))
|
||||
if ready_at is None:
|
||||
problems.append("the page never had its WebGL context: the window of the launch has no end")
|
||||
elif last_sample is None or last_sample < ready_at:
|
||||
problems.append("the sampler's last sample (%s) is before the page had its WebGL context (%s): it stopped early" % (last_sample, ready_at))
|
||||
if not browser_parents(execs, real_binary):
|
||||
problems.append("strace wrote no execve of the browser (%s): the witness is empty, and an empty witness proves no absence" % real_binary)
|
||||
probes = [e for e in execs if is_probe_exec(e) and e.ran()]
|
||||
for e in probes:
|
||||
s = seen.get(e.pid)
|
||||
if s is None or not s.is_probe():
|
||||
problems.append("strace saw pid %d exec %s and the sampler %s: the sampler missed a probe"
|
||||
% (e.pid, " ".join(e.argv[:3]) or e.path, "never saw the pid" if s is None else "saw it only as %s" % (s.names or s.cmds)))
|
||||
witnessed = {e.pid for e in probes}
|
||||
for s in seen.values():
|
||||
if s.is_probe() and s.pid not in witnessed:
|
||||
problems.append("the sampler saw a probe (pid %d, %s) that strace never saw exec: the two do not watch the same tree" % (s.pid, s.names))
|
||||
return probes, problems
|
||||
|
||||
|
||||
def describe(seen: Dict[int, Seen], execs: List[Exec], origin: float) -> str:
|
||||
"""Every process the sampler saw (seconds from ``origin``, names, pid, ppid, head of the command line) and every exec strace wrote."""
|
||||
rows = ["processes seen below the test (first..last sample, from the launch):"]
|
||||
for s in sorted(seen.values(), key=lambda s: (s.first, s.pid)):
|
||||
head = " ".join(a[:80] for a in (s.cmds[-1] if s.cmds else [])[:4])
|
||||
rows.append(" +%.3fs..+%.3fs pid=%d ppid=%s names=%s cmd=%s" % (s.first - origin, s.last - origin, s.pid, s.ppid, "/".join(s.names), head))
|
||||
rows.append("execs strace wrote:")
|
||||
for e in execs:
|
||||
rows.append(" pid=%d result=%s %s" % (e.pid, e.result, " ".join(a[:80] for a in e.argv[:4]) or e.path))
|
||||
return "\n".join(rows)
|
||||
@@ -16,12 +16,14 @@
|
||||
"carries": [
|
||||
"generate mode of the security state does not start Glean at shutdown (telemetry.fog.init_on_shutdown is false)",
|
||||
"the engine tells the client when the parent moves a navigation to another process (onNavigationMoved, with the BrowsingContext and the child id of the process left)",
|
||||
"the ICE host port the engine draws is bound exclusively on Windows: another process cannot bind 127.0.0.1 on it"
|
||||
"the ICE host port the engine draws is bound exclusively on Windows: another process cannot bind 127.0.0.1 on it",
|
||||
"on Linux a declared engine starts no host GL probe (gfxtest glx): GfxInfo answers the declaration"
|
||||
],
|
||||
"files": {
|
||||
"tests/test_security_state_engine_e2e.py": "generate mode does not start Glean at shutdown",
|
||||
"tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py": "the engine tells the client when the parent moves a navigation to another process (onNavigationMoved, with the BrowsingContext and child id of the process left); on an older engine the trace holds no such line",
|
||||
"tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py": "the ICE port the engine draws is its alone: on Windows a second bind of 127.0.0.1 on it is refused (before, it took the checks of the pair and the connection opened late); on Linux the bind is refused on every engine"
|
||||
"tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py": "the ICE port the engine draws is its alone: on Windows a second bind of 127.0.0.1 on it is refused (before, it took the checks of the pair and the connection opened late); on Linux the bind is refused on every engine",
|
||||
"tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py": "a declared engine starts no GLX probe (gfxtest glx) from the launch to the page's WebGL context; on an older engine the probe runs declared or not"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,6 +67,8 @@ EXCLUDED = {
|
||||
(("linux",), "skips on Linux: the hidden desktop is the Windows path; Linux hides via Xvfb"),
|
||||
"tests/test_first_launch_from_a_new_path.py::test_the_first_launch_from_a_new_path_works":
|
||||
(("linux",), "skips on Linux: the launcher process exists only on Windows"),
|
||||
"tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py":
|
||||
(("windows",), "the GLX probe (gfxtest glx) is a child process of Firefox on GTK; Windows reads the adapter in the parent and has no such process"),
|
||||
"tests/test_the_parent_reads_the_bundle_from_fontconfig_s_cache_linux_e2e.py":
|
||||
(("windows",), "wrapper.e2e.fontconfig is linux_only: fontconfig exists only on Linux (DirectWrite opens a font from its path)"),
|
||||
"tests/test_webgl_draws_on_the_engine_s_own_gl_e2e.py::test_webgl_draws_on_the_engine_s_own_gl":
|
||||
@@ -81,7 +83,7 @@ EXCLUDED = {
|
||||
(("windows",), "skips on Windows: the Linux text path"),
|
||||
}
|
||||
#: Changed by hand, together with the list above: an exclusion is a test the candidate does not run, and it may not be added in silence.
|
||||
EXCLUDED_COUNT = 16
|
||||
EXCLUDED_COUNT = 17
|
||||
|
||||
|
||||
@functools.lru_cache(maxsize=None)
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
"""The host's GL probe (``glxtest``) starts only when the engine is not declared (e2e, Linux, from firefox-69).
|
||||
|
||||
Why Linux only: the probe is a process of Firefox on GTK. ``GfxInfo::FireGLXTestProcess`` (widget/gtk/GfxInfo.cpp, fired early in ``XRE_mainStartup``,
|
||||
toolkit/xre/nsAppRunner.cpp, and again by ``GfxInfo::GetData``) spawns ``<GRE>/gfxtest glx -f <fd>``, a child of the parent that dlopens the host's libGL,
|
||||
libEGL, libpci and libdrm and writes what it found to a pipe. Windows has no such process (its GfxInfo reads the adapter in the parent), so this test has
|
||||
no Windows form: the file is in no row of Windows (tests/test_the_e2e_suite_is_accounted_for.py, EXCLUDED) and is not collected there as a test to run.
|
||||
|
||||
What it fixes. With the engine declared (the product's configuration: the core declares the GPU, every feature status and the GL is the engine's own) the
|
||||
probe has no use and is removed where it is born: the hook of ``platform/declaration-gate`` (``StealthNoHostGLProbe`` on the first line of
|
||||
``GfxInfo::FireGLXTestProcess``, ``StealthFillGtkGfxInfoWithoutHost`` in ``GfxInfo::GetData``; src/gfx/thebes/StealthGfxFeatureStatus.cpp of the series).
|
||||
With the engine NOT declared (``zoom.stealth.fpp.hw_seed`` = 0, the negative control) Mozilla's probe starts as in stock Firefox. On firefox-68 the probe
|
||||
runs in both launches, and that is what the test asserts there (``engine_reaches("firefox-69")`` decides).
|
||||
|
||||
Why a page sees it: what the probe reads of the host decided, through the feature status, whether WebGL existed and on which path; a slow or failed probe
|
||||
took WebGL away for the whole session. Each launch also asks a page for ``getContext('webgl')``.
|
||||
|
||||
How it is observed (the process, not a value). A thread samples the processes below this test with psutil from before the launch to after the browser
|
||||
has closed (``tests/_process_sampler.py``). The probe lives for tens of milliseconds and a poll can fall between two samples, so the sampler alone never
|
||||
says "absent": the browser runs under the strace stand-in (``tests/_strace_stand_in.py``, tracing only execve and the clones), and ptrace writes every exec
|
||||
of the tree to the log, because the process is stopped AT the call. Every exec of the probe in the log must be a pid the sampler saw as the probe, the
|
||||
sampler must cover the window from the launch to the page's WebGL context, and the log must hold the browser's own exec; otherwise the test is red with
|
||||
the problem (``reconcile``), never green on a miss. The failure message lists every process seen (times from the launch, names, pid, ppid, command line)
|
||||
and every exec strace wrote.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from _process_sampler import TRACE, TreeSampler, browser_parents, describe, is_glx_probe, read_execs, reconcile
|
||||
from _strace_stand_in import _kill_group, _require_strace_can_trace, _stand_in
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.e2e,
|
||||
pytest.mark.skipif(not sys.platform.startswith("linux"), reason="the GLX probe is a process of Firefox on GTK (Linux)"),
|
||||
]
|
||||
|
||||
SEED = 42
|
||||
|
||||
#: The engine off: Mozilla's own path, the negative control.
|
||||
UNDECLARED = {"zoom.stealth.fpp.hw_seed": 0}
|
||||
|
||||
HAS_WEBGL = "() => document.createElement('canvas').getContext('webgl') !== null"
|
||||
|
||||
|
||||
def _launch(firefox_binary, work, extra_prefs):
|
||||
"""One launch under the strace stand-in, sampled from before it to after the browser has closed. Returns
|
||||
``(glx_probes, problems, webgl, report, parents)``."""
|
||||
from invisible_playwright import InvisiblePlaywright
|
||||
|
||||
work.mkdir(parents=True)
|
||||
real = os.path.realpath(firefox_binary)
|
||||
log, pidfile = work / "strace.log", work / "stand-in.pid"
|
||||
stand_in = _stand_in(firefox_binary, work / "engine", log, pidfile, syscalls=TRACE)
|
||||
sampler = TreeSampler(os.getpid()).start()
|
||||
launched_at = time.monotonic()
|
||||
ready_at, webgl = None, None
|
||||
try:
|
||||
with InvisiblePlaywright(seed=SEED, binary_path=stand_in, headless=True, extra_prefs=extra_prefs) as browser:
|
||||
page = browser.new_page()
|
||||
page.goto("about:blank")
|
||||
webgl = page.evaluate(HAS_WEBGL)
|
||||
ready_at = time.monotonic()
|
||||
finally:
|
||||
_kill_group(pidfile)
|
||||
sampler.stop()
|
||||
seen, first, last, error = sampler.view()
|
||||
execs = read_execs(log.read_text(encoding="utf-8", errors="replace").splitlines())
|
||||
probes, problems = reconcile(seen, first, last, error, execs, real, launched_at, ready_at)
|
||||
report = "%d samples\n%s" % (sampler.samples, describe(seen, execs, launched_at))
|
||||
glx = [(e, seen[e.pid]) for e in probes if is_glx_probe(e) and e.pid in seen]
|
||||
return glx, problems, webgl, report, browser_parents(execs, real)
|
||||
|
||||
|
||||
def _check(firefox_binary, tmp_path, extra_prefs, want_probe):
|
||||
if shutil.which("strace") is None:
|
||||
pytest.fail("needs strace (apt install strace): without it no absence can be proved", pytrace=False)
|
||||
_require_strace_can_trace(tmp_path)
|
||||
glx, problems, webgl, report, parents = _launch(firefox_binary, tmp_path / "launch", extra_prefs)
|
||||
assert problems == [], "the observation cannot be trusted:\n%s\n%s" % ("\n".join(problems), report)
|
||||
assert webgl is True, "getContext('webgl') is null\n" + report
|
||||
if want_probe:
|
||||
assert glx, "no GLX probe (gfxtest glx) below the browser's parent %s\n%s" % (parents, report)
|
||||
strays = [(e.pid, s.ppid) for e, s in glx if s.ppid not in parents]
|
||||
assert not strays, "a GLX probe that is not a child of the browser's parent %s: %s\n%s" % (parents, strays, report)
|
||||
else:
|
||||
assert not glx, "the GLX probe ran on a declared engine: %s\n%s" % ([e.pid for e, _s in glx], report)
|
||||
|
||||
|
||||
def test_a_declared_engine_starts_no_host_gl_probe(firefox_binary, engine_reaches, tmp_path):
|
||||
"""The product's configuration. firefox-69: no probe from the launch to the page's WebGL context. firefox-68: the probe runs (what 68 does)."""
|
||||
_check(firefox_binary, tmp_path, None, want_probe=not engine_reaches("firefox-69"))
|
||||
|
||||
|
||||
def test_an_undeclared_engine_starts_mozilla_s_host_gl_probe(firefox_binary, tmp_path):
|
||||
"""The negative control: with the engine off Mozilla's probe starts as in stock Firefox, on every engine, and the page still has WebGL."""
|
||||
_check(firefox_binary, tmp_path, UNDECLARED, want_probe=True)
|
||||
@@ -0,0 +1,181 @@
|
||||
"""The sampler of the host GL probe's e2e catches a child that lives for one sample, and a miss is a red, never a "no probe" (no browser here).
|
||||
|
||||
tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py asserts that a short-lived child (``gfxtest glx``) does or does not appear
|
||||
below the browser. A poll can fall between two samples of such a child, and in the case "absent" that miss would read as a pass. These tests drive the
|
||||
real ``TreeSampler`` thread with a fake tree (a world the test changes, never a pause) and a counter for a clock, and the real ``reconcile`` with strace
|
||||
lines written by hand:
|
||||
|
||||
* a child that exists for exactly one read of the tree (first with its parent's name, before its exec) is caught, as the probe, with its parent;
|
||||
* known-bad: the sampler stopped before the child was born, or a child that came and went between two reads, or a log with no exec of the browser, is
|
||||
a problem that ``reconcile`` returns; the e2e asserts ``problems == []`` first, so each is red, never "absent";
|
||||
* the strace lines are read as strace -f writes them: a call interrupted by another thread, a failed exec, a content process.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import itertools
|
||||
import threading
|
||||
|
||||
import pytest
|
||||
|
||||
from _process_sampler import TreeSampler, is_glx_probe, read_execs, reconcile
|
||||
|
||||
pytestmark = pytest.mark.unit
|
||||
|
||||
REAL = "/opt/engine/firefox"
|
||||
PROBE = "/opt/engine/gfxtest"
|
||||
BROWSER = 10
|
||||
CHILD = 21
|
||||
|
||||
|
||||
class World:
|
||||
"""A process tree the test changes. ``read`` returns the tree as it is now; ``hold`` keeps a state until the sampler has read it once."""
|
||||
|
||||
def __init__(self, tree):
|
||||
self._tree = dict(tree)
|
||||
self._lock = threading.Lock()
|
||||
self._held = None
|
||||
self.read_it = threading.Event()
|
||||
|
||||
def set(self, tree, hold=False):
|
||||
with self._lock:
|
||||
self._tree = dict(tree)
|
||||
self._held = hold
|
||||
self.read_it.clear()
|
||||
|
||||
def read(self, _root):
|
||||
with self._lock:
|
||||
tree = dict(self._tree)
|
||||
if self._held:
|
||||
self._held = False
|
||||
self.read_it.set()
|
||||
return tree
|
||||
|
||||
|
||||
class Clock:
|
||||
def __init__(self):
|
||||
self._count = itertools.count()
|
||||
self._lock = threading.Lock()
|
||||
|
||||
def __call__(self):
|
||||
with self._lock:
|
||||
return float(next(self._count))
|
||||
|
||||
|
||||
ONLY_BROWSER = {BROWSER: ("firefox", 1, [REAL])}
|
||||
BEFORE_EXEC = {**ONLY_BROWSER, CHILD: ("firefox", BROWSER, [REAL])}
|
||||
PROBE_RUNS = {**ONLY_BROWSER, CHILD: ("gfxtest", BROWSER, [PROBE, "glx", "-f", "33"])}
|
||||
PROBE_ZOMBIE = {**ONLY_BROWSER, CHILD: ("gfxtest", BROWSER, [])}
|
||||
|
||||
LOG = [
|
||||
'10 execve("%s", ["%s", "-foreground"], 0x7ffd /* 40 vars */) = 0' % (REAL, REAL),
|
||||
'10 clone3({flags=CLONE_VM|CLONE_VFORK, exit_signal=SIGCHLD, stack=0x7f, stack_size=0x9000}, 88) = 21',
|
||||
'21 execve("%s", ["%s", "glx", "-f", "33"], 0x7ffd /* 40 vars */ <unfinished ...>' % (PROBE, PROBE),
|
||||
'12 futex(0x7f, FUTEX_WAKE_PRIVATE, 1) = 0',
|
||||
'21 <... execve resumed>) = 0',
|
||||
]
|
||||
|
||||
|
||||
def _run(world, steps, clock):
|
||||
"""Start the sampler, then walk the world through ``steps`` (each held until the sampler has read it), then stop it. ``(sampler, launched, ready)``."""
|
||||
sampler = TreeSampler(BROWSER - 9, read=world.read, clock=clock, step=0).start()
|
||||
launched = clock()
|
||||
for tree in steps:
|
||||
world.set(tree, hold=True)
|
||||
assert world.read_it.wait(30), "the sampler never read the tree"
|
||||
ready = clock()
|
||||
sampler.stop()
|
||||
return sampler, launched, ready
|
||||
|
||||
|
||||
def test_a_child_that_lives_for_one_read_is_caught_as_the_probe_with_its_parent():
|
||||
clock = Clock()
|
||||
world = World({})
|
||||
sampler, launched, ready = _run(world, [ONLY_BROWSER, BEFORE_EXEC, PROBE_RUNS, ONLY_BROWSER], clock)
|
||||
seen, first, last, error = sampler.view()
|
||||
probes, problems = reconcile(seen, first, last, error, read_execs(LOG), REAL, launched, ready)
|
||||
assert problems == []
|
||||
assert [e.pid for e in probes if is_glx_probe(e)] == [CHILD]
|
||||
child = seen[CHILD]
|
||||
assert child.is_probe() and child.ppid == BROWSER and child.names == ["firefox", "gfxtest"], child
|
||||
|
||||
|
||||
def test_a_zombie_with_no_command_line_is_still_the_probe():
|
||||
clock = Clock()
|
||||
world = World({})
|
||||
sampler, launched, ready = _run(world, [ONLY_BROWSER, PROBE_ZOMBIE, ONLY_BROWSER], clock)
|
||||
seen, first, last, error = sampler.view()
|
||||
assert reconcile(seen, first, last, error, read_execs(LOG), REAL, launched, ready)[1] == []
|
||||
|
||||
|
||||
def test_a_sampler_stopped_before_the_probe_reports_the_miss_and_not_an_absence():
|
||||
"""Known-bad: the sampler stopped early. The probe it never saw is in the witness: the result is a problem, so the declared case cannot pass."""
|
||||
clock = Clock()
|
||||
world = World(ONLY_BROWSER)
|
||||
sampler = TreeSampler(1, read=world.read, clock=clock, step=0).start()
|
||||
launched = clock()
|
||||
sampler.stop()
|
||||
world.set(PROBE_RUNS) # born after the sampler stopped
|
||||
world.set(ONLY_BROWSER)
|
||||
ready = clock()
|
||||
seen, first, last, error = sampler.view()
|
||||
probes, problems = reconcile(seen, first, last, error, read_execs(LOG), REAL, launched, ready)
|
||||
assert CHILD not in seen
|
||||
assert any("stopped early" in p for p in problems), problems
|
||||
assert any("the sampler missed a probe" in p for p in problems), problems
|
||||
|
||||
|
||||
def test_a_probe_that_came_and_went_between_two_reads_is_a_miss_even_when_the_window_is_covered():
|
||||
"""Known-bad: the poll fell between two samples of the probe. The window is covered, the sampler saw nothing; strace saw the exec: red."""
|
||||
clock = Clock()
|
||||
world = World({})
|
||||
sampler, launched, ready = _run(world, [ONLY_BROWSER, ONLY_BROWSER], clock)
|
||||
seen, first, last, error = sampler.view()
|
||||
probes, problems = reconcile(seen, first, last, error, read_execs(LOG), REAL, launched, ready)
|
||||
assert problems == ["strace saw pid 21 exec %s glx -f and the sampler never saw the pid: the sampler missed a probe" % PROBE], problems
|
||||
|
||||
|
||||
def test_an_empty_witness_or_a_sampler_that_died_proves_no_absence():
|
||||
clock = Clock()
|
||||
world = World({})
|
||||
sampler, launched, ready = _run(world, [ONLY_BROWSER], clock)
|
||||
seen, first, last, error = sampler.view()
|
||||
problems = reconcile(seen, first, last, error, [], REAL, launched, ready)[1]
|
||||
assert any("the witness is empty" in p for p in problems), problems
|
||||
|
||||
calls = itertools.count()
|
||||
|
||||
def broken(_root):
|
||||
if next(calls):
|
||||
raise OSError("no /proc")
|
||||
return ONLY_BROWSER
|
||||
dead = TreeSampler(1, read=broken, clock=clock, step=0).start()
|
||||
dead._thread.join() # the thread ends on its first read, which raises
|
||||
dead.stop()
|
||||
seen, first, last, error = dead.view()
|
||||
problems = reconcile(seen, first, last, error, read_execs(LOG[:1]), REAL, launched, clock())[1]
|
||||
assert any("stopped on an error" in p for p in problems), problems
|
||||
|
||||
|
||||
def test_a_probe_the_sampler_saw_and_strace_did_not_is_refused():
|
||||
clock = Clock()
|
||||
world = World({})
|
||||
sampler, launched, ready = _run(world, [ONLY_BROWSER, PROBE_RUNS, ONLY_BROWSER], clock)
|
||||
seen, first, last, error = sampler.view()
|
||||
problems = reconcile(seen, first, last, error, read_execs(LOG[:1]), REAL, launched, ready)[1]
|
||||
assert any("strace never saw exec" in p for p in problems), problems
|
||||
|
||||
|
||||
def test_the_strace_lines_are_read_as_strace_writes_them():
|
||||
lines = LOG + [
|
||||
'30 execve("%s", ["%s", "-contentproc", "tab"], 0x7ffd /* 40 vars */) = 0' % (REAL, REAL),
|
||||
'31 execve("/opt/engine/gfxtest", ["/opt/engine/gfxtest", "vaapi", "-d", "/dev/dri/renderD128"], 0x7f /* 9 vars */) = 0',
|
||||
'32 execve("/opt/other/gfxtest", ["/opt/other/gfxtest", "glx"], 0x7f /* 9 vars */) = -1 ENOENT (No such file or directory)',
|
||||
'33 execve("%s", ["%s", "glx", "-f", "40"], 0x7f /* 9 vars */ <unfinished ...>' % (PROBE, PROBE),
|
||||
]
|
||||
execs = read_execs(lines)
|
||||
assert [(e.pid, e.result) for e in execs] == [(10, 0), (21, 0), (30, 0), (31, 0), (32, -1), (33, None)]
|
||||
assert [e.pid for e in execs if is_glx_probe(e) and e.ran()] == [21, 33]
|
||||
assert execs[1].argv == [PROBE, "glx", "-f", "33"]
|
||||
assert execs[3].ran() and not is_glx_probe(execs[3])
|
||||
assert execs[4].ran() is False
|
||||
|
||||
@@ -130,7 +130,8 @@ def test_the_release_being_made_carries_only_its_own_properties():
|
||||
registry = _registry()
|
||||
assert sorted(registry) == ["firefox-68", "firefox-69"]
|
||||
assert sorted(registry["firefox-68"]["files"]) == ["tests/test_a_page_that_moves_on_e2e.py", "tests/test_fakeweb_p2_e2e.py"]
|
||||
assert sorted(registry["firefox-69"]["files"]) == ["tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_security_state_engine_e2e.py"]
|
||||
assert sorted(registry["firefox-69"]["files"]) == ["tests/test_a_held_ice_port_blinds_the_loopback_checks_e2e.py", "tests/test_a_navigation_that_moved_is_told_by_the_engine_e2e.py", "tests/test_security_state_engine_e2e.py",
|
||||
"tests/test_the_host_gl_probe_runs_only_on_an_undeclared_engine_linux_e2e.py"]
|
||||
|
||||
|
||||
def test_a_test_of_the_accumulated_line_gated_on_the_release_being_made_is_named():
|
||||
|
||||
Reference in new issue
Block a user