Skip to content

Share object across fuzz targets & increase build timeout#662

Merged
edznux-dd merged 1 commit into
mainfrom
edouard/faster-fuzz-compile-increase-timeout
Jul 17, 2026
Merged

Share object across fuzz targets & increase build timeout#662
edznux-dd merged 1 commit into
mainfrom
edouard/faster-fuzz-compile-increase-timeout

Conversation

@edznux-dd

Copy link
Copy Markdown
Collaborator

What does this PR do?:

Shared object are now reused instead of being recompiled for every target.
Also bumping the timeout to 1h30 (which should be plenty enough now).

The fuzz jobs are async & daily, having larger timeout shouldn't be noticeable for end users.

Motivation:

Fuzz tests generation where timing out.

Additional Notes:

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a security review (run the dd:platform-security-review
    skill, or file a request via the PSEC review form).
    bewaire also runs automatically on every PR.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

@edznux-dd
edznux-dd requested a review from a team as a code owner July 16, 2026 08:32

@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: 173bc7b1c2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +165 to +167
objectFiles.from(
project.fileTree(sharedObjDir) { include("*.o") },
project.fileTree(objDir) { include("*.o") }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid linking stale per-target profiler objects

When a developer or CI runner reuses a workspace that already built fuzz targets before this change, the old per-target directories still contain profiler objects because NativeCompileTask.compile() only creates the output directory and writes the current sources; it does not remove obsolete *.o files. This link input now adds the new shared profiler objects and every *.o left in objDir, so linkFuzz_* can link duplicate copies of profiler objects such as arguments.o and fail with duplicate symbols. Please clean/relocate the target object directory or include only the fuzz driver object from objDir.

Useful? React with 👍 / 👎.

@dd-octo-sts

dd-octo-sts Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #29483831347 | Commit: 77261e1 | Duration: 15m 26s (longest job)

All 32 test jobs passed

Status Overview

JDK glibc-aarch64/debug glibc-amd64/debug musl-aarch64/debug musl-amd64/debug
8 - - -
8-ibm - - -
8-j9 - -
8-librca - -
8-orcl - - -
11 - - -
11-j9 - -
11-librca - -
17 - -
17-graal - -
17-j9 - -
17-librca - -
21 - -
21-graal - -
21-librca - -
25 - -
25-graal - -
25-librca - -

Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled

Summary: Total: 32 | Passed: 32 | Failed: 0


Updated: 2026-07-17 08:16:32 UTC

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Tests

🔄 Datadog auto-retried 1 job - 0 passed on retry View in Datadog

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

@kaahos kaahos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me!

@edznux-dd
edznux-dd merged commit 6669cc6 into main Jul 17, 2026
330 of 336 checks passed
@edznux-dd
edznux-dd deleted the edouard/faster-fuzz-compile-increase-timeout branch July 17, 2026 09:57
@github-actions github-actions Bot added this to the 1.47.0 milestone Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants