Skip to content

ci(profiling): Add more sanitizers#3989

Merged
realFlowControl merged 1 commit into
masterfrom
florian/more-sanitizers
Jun 16, 2026
Merged

ci(profiling): Add more sanitizers#3989
realFlowControl merged 1 commit into
masterfrom
florian/more-sanitizers

Conversation

@realFlowControl

@realFlowControl realFlowControl commented Jun 16, 2026

Copy link
Copy Markdown
Member

Description

This PR does multiple things:

  • fix the no-profile correctness test (file extensions is .zst and not .lz4)
  • set stricter ASAN/LSAN options
  • add a UBSAN test with strict settings

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@github-actions github-actions Bot added the profiling Relates to the Continuous Profiler label Jun 16, 2026
@datadog-official

datadog-official Bot commented Jun 16, 2026

Copy link
Copy Markdown

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/apm-reliability/dd-trace-php | check libxml2 version   View in Datadog   GitLab

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 54.08% (-0.03%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4441d72 | Docs | Datadog PR Page | Give us feedback!

@realFlowControl realFlowControl force-pushed the florian/more-sanitizers branch from 0348dc4 to d6c26b3 Compare June 16, 2026 07:25
@realFlowControl realFlowControl marked this pull request as ready for review June 16, 2026 07:31
@realFlowControl realFlowControl requested a review from a team as a code owner June 16, 2026 07:31

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d6c26b3fa4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/prof_asan.yml Outdated
Comment thread .github/workflows/prof_asan.yml Outdated
@realFlowControl realFlowControl force-pushed the florian/more-sanitizers branch 4 times, most recently from d3704d7 to 852b766 Compare June 16, 2026 08:26
@realFlowControl realFlowControl marked this pull request as draft June 16, 2026 09:39
@realFlowControl realFlowControl force-pushed the florian/more-sanitizers branch from 852b766 to 4441d72 Compare June 16, 2026 09:53
@realFlowControl realFlowControl marked this pull request as ready for review June 16, 2026 10:20
@realFlowControl realFlowControl merged commit 4342700 into master Jun 16, 2026
846 of 848 checks passed
@realFlowControl realFlowControl deleted the florian/more-sanitizers branch June 16, 2026 10:45
cd profiling/tests
cp -v $(php-config --prefix)/lib/php/build/run-tests.php .
export DD_PROFILING_OUTPUT_PPROF=/tmp/pprof
export ASAN_OPTIONS="${ASAN_OPTIONS:+$ASAN_OPTIONS:}abort_on_error=1:halt_on_error=1:detect_leaks=1:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:detect_container_overflow=1:detect_odr_violation=2:symbolize=1:disable_coredump=0:unmap_shadow_on_exit=1"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why disable_coredump=0, if you do not collect the artifacts, though?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, good catch. I was undecided between having a core dump and uploading it to the artifacts or not, so I decided for the middle way :-P
I'll open a follow-up PR and set disable_coredump=1.

@github-actions github-actions Bot added this to the 1.22.0 milestone Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

profiling Relates to the Continuous Profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants