Disable flaky test_sidebar_invariants property test (#53410)

Richard Feldman created

The `test_sidebar_invariants` property test has been flaking recently.
Marking it as `#[ignore]` to unblock CI while the root cause is
investigated.

Release Notes:

- N/A

Change summary

crates/gpui_macros/src/property_test.rs | 2 ++
crates/sidebar/src/sidebar_tests.rs     | 1 +
2 files changed, 3 insertions(+)

Detailed changes

crates/gpui_macros/src/property_test.rs 🔗

@@ -14,6 +14,7 @@ pub fn test(args: TokenStream, item: TokenStream) -> TokenStream {
 
     let test_name = func.sig.ident.clone();
     let inner_fn_name = format_ident!("__{test_name}");
+    let outer_fn_attributes = &func.attrs;
 
     let parsed_args = parse_args(func.sig.inputs, &test_name);
 
@@ -54,6 +55,7 @@ pub fn test(args: TokenStream, item: TokenStream) -> TokenStream {
         #arg_errors
 
         #[::gpui::proptest::property_test(proptest_path = "::gpui::proptest", #args)]
+        #(#outer_fn_attributes)*
         fn #test_name(#proptest_args) {
             #inner_fn
 

crates/sidebar/src/sidebar_tests.rs 🔗

@@ -6101,6 +6101,7 @@ mod property_test {
         cases: 50,
         ..Default::default()
     })]
+    #[ignore = "temporarily disabled to unblock PRs from landing"]
     async fn test_sidebar_invariants(
         #[strategy = gpui::proptest::collection::vec(0u32..DISTRIBUTION_SLOTS * 10, 1..5)]
         raw_operations: Vec<u32>,