Skip to content

Timing errors on some cargo tests on macOS #5940

Closed
@ehuss

Description

@ehuss

Due to the mtime change in #5919, the following tests fail frequently (some are ~50% on my system) on macOS:

  • bench::bench_twice_with_build_cmd
  • bench::pass_through_command_line
  • build_script::flags_go_into_tests
  • build_script::fresh_builds_possible_with_link_libs
  • build_script::fresh_builds_possible_with_multiple_metadata_overrides
  • build_script::optional_build_dep_and_required_normal_dep
  • build_script::rebuild_only_on_explicit_paths
  • freshness::changing_bin_paths_common_target_features_caches_targets
  • freshness::changing_lib_features_caches_targets
  • freshness::changing_profiles_caches_targets
  • freshness::dont_rebuild_based_on_plugins
  • freshness::no_rebuild_transitive_target_deps
  • freshness::no_rebuild_when_rename_dir
  • freshness::path_dev_dep_registry_updates
  • freshness::reuse_workspace_lib
  • freshness::same_build_dir_cached_packages
  • freshness::unused_optional_dep
  • install::do_not_rebuilds_on_local_install
  • install::workspace_uses_workspace_target_dir
  • local_registry::simple
  • metabuild::metabuild_fresh
  • patch::add_ignored_patch
  • patch::add_patch
  • patch::new_major
  • patch::nonexistent
  • patch::patch_depends_on_another_patch
  • patch::patch_git
  • patch::patch_in_virtual
  • patch::replace
  • patch::unused
  • patch::unused_git
  • path::custom_target_no_rebuild
  • path::deep_dependencies_trigger_rebuild
  • path::nested_deps_recompile
  • path::no_rebuild_dependency
  • profile_targets::profile_selection_bench
  • profile_targets::profile_selection_build
  • profile_targets::profile_selection_build_all_targets
  • profile_targets::profile_selection_build_all_targets_release
  • profile_targets::profile_selection_build_release
  • profile_targets::profile_selection_check_all_targets
  • profile_targets::profile_selection_check_all_targets_release
  • profile_targets::profile_selection_check_all_targets_test
  • profile_targets::profile_selection_test
  • profile_targets::profile_selection_test_release
  • registry::bump_version_dont_update_registry
  • required_features::bench_default_features
  • run::run_from_executable_folder
  • run::specify_name
  • rustc::rustc_fingerprint
  • rustflags::cfg_rustflags_normal_source
  • rustflags::cfg_rustflags_precedence
  • test::bin_does_not_rebuild_tests
  • test::pass_through_command_line
  • test::selective_testing
  • tool_paths::custom_runner
  • workspaces::dep_used_with_separate_features

I have a fix for some of them, I'll try to finish the rest tomorrow.

EDIT: Looks like it happens to a lot more than I first anticipated.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions