Skip to content

Commit

Permalink
disable asan on arrow_datatype as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Mar 18, 2024
1 parent 71edf5b commit 1e2a145
Show file tree
Hide file tree
Showing 41 changed files with 100 additions and 106 deletions.
46 changes: 20 additions & 26 deletions crates/re_types_builder/src/codegen/cpp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,13 +1363,11 @@ fn arrow_data_type_method(
) -> Method {
hpp_includes.insert_system("memory"); // std::shared_ptr

let (inline, definition_body) = if transparent_forwarded_fqname(obj).is_some() {
(
true,
quote! {
return Loggable<TypeFwd>::arrow_datatype();
},
)
let is_forwarding = transparent_forwarded_fqname(obj).is_some();
let definition_body = if is_forwarding {
quote! {
return Loggable<TypeFwd>::arrow_datatype();
}
} else {
cpp_includes.insert_system("arrow/type_fwd.h");
hpp_declarations.insert("arrow", ForwardDecl::Class(format_ident!("DataType")));
Expand All @@ -1381,24 +1379,29 @@ fn arrow_data_type_method(
true,
);

(
false,
quote! {
static const auto datatype = #quoted_datatype;
return datatype;
},
)
quote! {
static const auto datatype = #quoted_datatype;
return datatype;
}
};
let return_type = if is_forwarding {
// Disable asan since we got rather strange spurious ci failure on Linux with these methods:
// Some Linux runs end up spamming `AddressSanitizer:DEADLYSIGNAL` indefinitely with no additional information.1
hpp_includes.insert_rerun("compiler_utils.hpp"); // RR_DISABLE_ASAN
quote! { RR_DISABLE_ASAN const std::shared_ptr<arrow::DataType>& }
} else {
quote! { const std::shared_ptr<arrow::DataType>& }
};

Method {
docs: "Returns the arrow data type this type corresponds to.".into(),
declaration: MethodDeclaration {
is_static: true,
return_type: quote! { const std::shared_ptr<arrow::DataType>& },
return_type,
name_and_parameters: quote! { arrow_datatype() },
},
definition_body,
inline,
inline: is_forwarding,
}
}

Expand Down Expand Up @@ -1499,23 +1502,14 @@ fn to_arrow_method(
}
};

let return_type = if is_forwarding {
// Disable asan since we got rather strange spurious ci failure on Linux with these methods:
// Some Linux runs end up spamming `AddressSanitizer:DEADLYSIGNAL`` indefinitely with no additional information.1
hpp_includes.insert_rerun("compiler_utils.hpp"); // RR_DISABLE_ASAN
quote! { RR_DISABLE_ASAN Result<std::shared_ptr<arrow::Array>> }
} else {
quote! { Result<std::shared_ptr<arrow::Array>> }
};

Method {
docs: format!(
"Serializes an array of `rerun::{quoted_namespace}::{type_ident}` into an arrow array."
)
.into(),
declaration: MethodDeclaration {
is_static: true,
return_type,
return_type: quote! { Result<std::shared_ptr<arrow::Array>> },
name_and_parameters: quote! {
to_arrow(const #quoted_namespace::#type_ident* instances, size_t num_instances)
},
Expand Down
4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/blueprint/components/active_tab.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/blueprint/components/included_content.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/blueprint/components/panel_expanded.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/blueprint/components/query_expression.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/blueprint/components/root_container.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/blueprint/components/space_view_class.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/class_id.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/color.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/half_sizes2d.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/half_sizes3d.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/keypoint_id.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/material.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/media_type.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/mesh_properties.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/name.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rerun_cpp/src/rerun/components/out_of_tree_transform3d.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1e2a145

Please sign in to comment.