@@ -14,7 +14,7 @@ use anyhow::Context;
1414use bin_tests:: test_runner:: run_crash_no_op;
1515use bin_tests:: {
1616 artifacts:: { self , StandardArtifacts } ,
17- build_artifacts ,
17+ fetch_built_artifacts ,
1818 test_runner:: { run_crash_test_with_artifacts, CrashTestConfig , ValidatorFn } ,
1919 test_types:: { CrashType , TestMode } ,
2020 validation:: PayloadValidator ,
@@ -70,7 +70,7 @@ fn run_standard_crash_test_refactored(
7070) {
7171 let config = CrashTestConfig :: new ( profile, mode, crash_type) ;
7272 let artifacts = StandardArtifacts :: new ( config. profile ) ;
73- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
73+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
7474
7575 let crash_type_str = crash_type. as_str ( ) ;
7676 let validator: ValidatorFn = Box :: new ( move |payload, fixtures| {
@@ -107,7 +107,7 @@ fn test_crash_tracking_bin_errno_preservation() {
107107 CrashType :: NullDeref ,
108108 ) ;
109109 let artifacts = StandardArtifacts :: new ( config. profile ) ;
110- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
110+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
111111
112112 let validator: ValidatorFn = Box :: new ( |_payload, fixtures| {
113113 let status_path = fixtures. output_dir . join ( ERRNO_STATUS_FILENAME ) ;
@@ -132,7 +132,7 @@ fn test_crash_tracking_bin_unhandled_exception() {
132132 CrashType :: UnhandledException ,
133133 ) ;
134134 let artifacts = StandardArtifacts :: new ( config. profile ) ;
135- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
135+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
136136
137137 let validator: ValidatorFn = Box :: new ( |payload, fixtures| {
138138 PayloadValidator :: new ( payload)
@@ -168,7 +168,7 @@ fn test_crash_tracking_bin_runtime_callback_frame() {
168168 CrashType :: NullDeref ,
169169 ) ;
170170 let artifacts = StandardArtifacts :: new ( config. profile ) ;
171- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
171+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
172172
173173 let validator: ValidatorFn = Box :: new ( |payload, fixtures| {
174174 PayloadValidator :: new ( payload) . validate_counters ( ) ?;
@@ -198,7 +198,7 @@ fn test_crash_tracking_thread_name() {
198198 CrashType :: NullDeref ,
199199 ) ;
200200 let artifacts = StandardArtifacts :: new ( config. profile ) ;
201- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
201+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
202202
203203 let validator: ValidatorFn = Box :: new ( |payload, _fixtures| {
204204 let error = & payload[ "error" ] ;
@@ -231,7 +231,7 @@ fn test_crash_tracking_bin_runtime_callback_string() {
231231 CrashType :: NullDeref ,
232232 ) ;
233233 let artifacts = StandardArtifacts :: new ( config. profile ) ;
234- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
234+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
235235
236236 let validator: ValidatorFn = Box :: new ( |payload, fixtures| {
237237 PayloadValidator :: new ( payload) . validate_counters ( ) ?;
@@ -260,7 +260,7 @@ fn test_crash_tracking_bin_no_runtime_callback() {
260260 CrashType :: NullDeref ,
261261 ) ;
262262 let artifacts = StandardArtifacts :: new ( config. profile ) ;
263- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
263+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
264264
265265 let validator: ValidatorFn = Box :: new ( |payload, fixtures| {
266266 PayloadValidator :: new ( payload) . validate_counters ( ) ?;
@@ -338,7 +338,7 @@ fn test_crash_tracking_bin_runtime_callback_frame_invalid_utf8() {
338338 CrashType :: NullDeref ,
339339 ) ;
340340 let artifacts = StandardArtifacts :: new ( config. profile ) ;
341- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
341+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
342342
343343 let validator: ValidatorFn = Box :: new ( |payload, fixtures| {
344344 PayloadValidator :: new ( payload) . validate_counters ( ) ?;
@@ -380,7 +380,7 @@ fn test_crash_tracking_errors_intake_upload() {
380380 . with_env ( "DD_CRASHTRACKING_ERRORS_INTAKE_ENABLED" , "true" ) ;
381381
382382 let artifacts = StandardArtifacts :: new ( config. profile ) ;
383- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
383+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
384384
385385 let validator: ValidatorFn = Box :: new ( |_payload, fixtures| {
386386 let errors_intake_path = fixtures. crash_profile_path . with_extension ( "errors" ) ;
@@ -413,7 +413,7 @@ fn test_crash_tracking_errors_intake_crash_ping() {
413413 . with_env ( "DD_CRASHTRACKING_ERRORS_INTAKE_ENABLED" , "true" ) ;
414414
415415 let artifacts = StandardArtifacts :: new ( config. profile ) ;
416- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
416+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
417417
418418 let validator: ValidatorFn = Box :: new ( |_payload, fixtures| {
419419 let errors_intake_path = fixtures. crash_profile_path . with_extension ( "errors" ) ;
@@ -444,7 +444,7 @@ fn test_crash_tracking_errors_intake_crash_info_parity() {
444444 . with_env ( "DD_CRASHTRACKING_ERRORS_INTAKE_ENABLED" , "true" ) ;
445445
446446 let artifacts = StandardArtifacts :: new ( config. profile ) ;
447- let artifacts_map = build_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
447+ let artifacts_map = fetch_built_artifacts ( & artifacts. as_slice ( ) ) . unwrap ( ) ;
448448
449449 let validator: ValidatorFn = Box :: new ( |crash_info_payload, fixtures| {
450450 let errors_intake_path = fixtures. crash_profile_path . with_extension ( "errors" ) ;
@@ -638,7 +638,7 @@ fn test_crash_tracking_app(crash_type: &str) {
638638 let crashtracker_receiver = artifacts:: crashtracker_receiver ( BuildProfile :: Release ) ;
639639 let crashing_app = artifacts:: crashing_app ( BuildProfile :: Debug , true ) ;
640640
641- let artifacts_map = build_artifacts ( & [ & crashtracker_receiver, & crashing_app] ) . unwrap ( ) ;
641+ let artifacts_map = fetch_built_artifacts ( & [ & crashtracker_receiver, & crashing_app] ) . unwrap ( ) ;
642642
643643 // Create validator based on crash type
644644 let crash_type_owned = crash_type. to_owned ( ) ;
@@ -712,7 +712,8 @@ fn test_panic_hook_mode(mode: &str, expected_category: &str, expected_panic_mess
712712 let crashtracker_receiver = artifacts:: crashtracker_receiver ( BuildProfile :: Release ) ;
713713 let crashtracker_bin_test = artifacts:: crashtracker_bin_test ( BuildProfile :: Debug , true ) ;
714714
715- let artifacts_map = build_artifacts ( & [ & crashtracker_receiver, & crashtracker_bin_test] ) . unwrap ( ) ;
715+ let artifacts_map =
716+ fetch_built_artifacts ( & [ & crashtracker_receiver, & crashtracker_bin_test] ) . unwrap ( ) ;
716717
717718 let expected_category = expected_category. to_owned ( ) ;
718719 let expected_panic_message = expected_panic_message. map ( |s| s. to_owned ( ) ) ;
@@ -785,7 +786,7 @@ fn test_crash_tracking_callstack() {
785786 // compile in debug so we avoid inlining and can check the callchain
786787 let crashing_app = artifacts:: crashing_app ( BuildProfile :: Debug , false ) ;
787788
788- let artifacts_map = build_artifacts ( & [ & crashtracker_receiver, & crashing_app] ) . unwrap ( ) ;
789+ let artifacts_map = fetch_built_artifacts ( & [ & crashtracker_receiver, & crashing_app] ) . unwrap ( ) ;
789790
790791 // Note: in Release, we do not have the crate and module name prepended to the function name
791792 // Here we compile the crashing app in Debug.
@@ -1532,7 +1533,7 @@ fn test_receiver_emits_debug_logs_on_receiver_issue() -> anyhow::Result<()> {
15321533 use std:: time:: Duration ;
15331534
15341535 let receiver = artifacts:: crashtracker_receiver ( BuildProfile :: Debug ) ;
1535- let artifacts = build_artifacts ( & [ & receiver] ) ?;
1536+ let artifacts = fetch_built_artifacts ( & [ & receiver] ) ?;
15361537 let fixtures = bin_tests:: test_runner:: TestFixtures :: new ( ) ?;
15371538
15381539 let missing_file = fixtures. output_dir . join ( "missing_additional_file.txt" ) ;
@@ -1808,7 +1809,7 @@ struct TestFixtures<'a> {
18081809}
18091810
18101811fn setup_test_fixtures < ' a > ( crates : & [ & ' a ArtifactsBuild ] ) -> TestFixtures < ' a > {
1811- let artifacts = build_artifacts ( crates) . unwrap ( ) ;
1812+ let artifacts = fetch_built_artifacts ( crates) . unwrap ( ) ;
18121813
18131814 let tmpdir = tempfile:: TempDir :: new ( ) . unwrap ( ) ;
18141815 let dirpath = tmpdir. path ( ) ;
0 commit comments