Repository navigation
test(ci): exercise the host-ASAN presubmit against TheRock#8455 #12538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
dileepr1
wants to merge
40
commits into
develop
Choose a base branch
from
users/dravindr/asan_test_8455
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+148
−21
Draft
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
5e85b83
Use main branch for testing
428fd01
docs(ci): clarify which trigger consumes linux_amdgpu_families
dileepr1 fddd7ad
ci(asan): stop the sanity check from hiding hip-tests and rocrtst res…
dileepr1 90128c5
Test users/raramakr/asan-presubmit-test branch
4a5a96f
use latest main sha
de30b81
ci: update TheRock ref to test host-asan presubmit
05604bc
Use host-asan as build variant
da1647f
ci(asan): declare this workflow a presubmit gate explicitly
dileepr1 e95986a
ci(asan): rename presubmit input to asan_presubmit
dileepr1 862047f
Merge branch 'develop' into users/dravindr/asan_test
dileepr1 08cce2e
ci(asan): point TheRock refs at users/dravindr/host_asan_prs_test
dileepr1 b30b97a
ci(asan): retrigger validation run
dileepr1 7a68d4c
Merge remote-tracking branch 'origin/develop' into users/dravindr/asa…
dileepr1 10dc6b8
ci(asan): retrigger with TheRock f7df346e7 (sanity ASAN preload)
dileepr1 16421ae
ci(asan): retrigger with TheRock e9bf3f869 (leak suppression + error …
dileepr1 1ae5e21
ci(asan): retrigger with TheRock a839e1e6d (preload for hip_check)
dileepr1 fc398d0
ci(asan): retrigger with TheRock ab67b82e2 (absolute symbolizer path)
dileepr1 a70295b
ci(asan): retrigger with workflow-level ASAN env (drops script-side b…
dileepr1 21c53ef
ci(asan): retrigger with sanity-scoped ASAN env + per-process hip_che…
dileepr1 a05b287
ci(asan): retrigger with configure_asan_env.py refactor (#8123)
dileepr1 c783eb8
ci(asan): retrigger with verify_asan_link_order=0
dileepr1 12bf9b2
ci(asan): rerun with #7780 only, on current main
dileepr1 439d5fd
ci(asan): rerun with the baseline-gate fix
dileepr1 7373da8
Merge remote-tracking branch 'origin/develop' into users/dravindr/asa…
dileepr1 67bbb88
ci(asan): rerun with the ASAN runtime layout fixes
dileepr1 7826f8e
Merge remote-tracking branch 'origin/develop' into users/dravindr/asa…
dileepr1 b69d3ae
ci(asan): test the #8455 trigger policy instead of #7780's input
dileepr1 86e5631
Merge remote-tracking branch 'origin/develop' into users/dravindr/asa…
dileepr1 168fcad
ci(asan): re-run against the reworked TheRock#8455
dileepr1 bf797dd
Merge origin/develop into users/dravindr/asan_test_8455
dileepr1 5c6f3f7
ci(asan): keep develop's summary job rename
dileepr1 f501b0d
Merge remote-tracking branch 'origin/develop' into users/dravindr/asa…
dileepr1 c127ef4
ci(asan): pass pr_number so the external-repo path filter uses the API
dileepr1 865e39c
chore: touch rocrtst source to defeat the path filter
dileepr1 8b502b6
ci(asan): rerun with sanity non-blocking
dileepr1 39d9e87
Merge origin/develop into users/dravindr/asan_test_8455
dileepr1 16f85b9
fix(clr): instrument host objects when TheRock selects ASan
dileepr1 e718d5c
fix(clr): pass a plain -fsanitize=address that ccache keeps
dileepr1 67ab4cb
fix(clr): accept instrumented ASan symbol output
dileepr1 ca906e1
merge origin/develop, keeping the host-asan presubmit workflow
dileepr1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Copyright (c) Advanced Micro Devices, Inc., or its affiliates. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| # Post-build check invoked as: | ||
| # cmake -DFILE=<shared object> -P check_asan_instrumentation.cmake | ||
| # A link-only -fsanitize=address DSO has weak __asan_report_* symbols and no | ||
| # __asan_init. Instrumented objects reference __asan_init. | ||
|
|
||
| if(NOT FILE) | ||
| message(FATAL_ERROR "FILE must be the shared object to check") | ||
| endif() | ||
|
|
||
| find_program(NM_TOOL NAMES nm llvm-nm REQUIRED) | ||
| execute_process( | ||
| COMMAND ${NM_TOOL} -D ${FILE} | ||
| RESULT_VARIABLE _nm_rc | ||
| OUTPUT_VARIABLE _nm_out | ||
| ERROR_VARIABLE _nm_err) | ||
| if(NOT _nm_rc EQUAL 0) | ||
| message(FATAL_ERROR "nm -D ${FILE} failed (${_nm_rc}): ${_nm_err}") | ||
| endif() | ||
| # __asan_init is emitted only when at least one object was instrumented. | ||
| # Do not anchor this to whitespace: CMake's regex engine does not treat a | ||
| # newline after the symbol as a line boundary for `$`, which made a genuine | ||
| # `U __asan_init` false-negative after llvm-strip. | ||
| if(NOT _nm_out MATCHES "__asan_init") | ||
| set(_asan_lines "") | ||
| string(REPLACE "\n" ";" _nm_lines "${_nm_out}") | ||
| foreach(_line IN LISTS _nm_lines) | ||
| if(_line MATCHES "asan") | ||
| string(APPEND _asan_lines "\n ${_line}") | ||
| endif() | ||
| endforeach() | ||
| if(_asan_lines STREQUAL "") | ||
| set(_asan_lines "\n (no asan symbols in the dynamic table)") | ||
| endif() | ||
| message(FATAL_ERROR | ||
| "${FILE} is not instrumented with ASan (dynamic symbol __asan_init is missing). " | ||
| "The library was linked with the ASan runtime but its objects were not compiled " | ||
| "with -fsanitize=address. Dynamic asan symbols:${_asan_lines}") | ||
| endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,3 +64,5 @@ char* GetEnv(const char* env_var_name) { | |
| } | ||
|
|
||
| } // namespace rocrtst | ||
|
|
||
| // Touched to force a CI build for host-ASAN validation (TheRock#8455). Revert before merge. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 AI-assisted pre-review (for @cfreeamd) [Required] This comment-touch must be reverted before merge (as the comment itself notes). No functional change — just a CI trigger artifact. |
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 AI-assisted pre-review (for @cfreeamd)
[Required] This pins to a mutable branch ref (
users/dravindr/host_asan_8455_test) rather than a commit SHA. The original lines usedc01e3a3f3f67966dd35612cf363b49964f33cd47— branch refs can be force-pushed, silently changing what the CI runs. All threeref:occurrences here must be replaced with a pinned SHA before merge.