Skip to content

Add AGENTS.md with guidance for updating libddwaf - #205

Merged
jandro996 merged 5 commits into
masterfrom
jandro996/add-agents-md
Jul 28, 2026
Merged

Add AGENTS.md with guidance for updating libddwaf#205
jandro996 merged 5 commits into
masterfrom
jandro996/add-agents-md

Conversation

@jandro996

@jandro996 jandro996 commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

Test plan

  • AGENTS.md content reviewed against the current repo state (Waf.java, build.gradle, .github/workflows/actions.yml, README.md) for accuracy, including the known -PlibddwafDir vs -PlibddwafConfig doc/code mismatch.
  • 4 additional inaccuracies found by automated Codex review (config-dir-vs-file, TestsPass fan-in, ReachabilityFenceTest exclusion, submodule init) were verified against source and fixed in follow-up commits before merge.
  • N/A — documentation-only change, no code paths affected.

Documents the two-source-of-truth version pinning (submodule vs
libddwafVersion in CI), the silent-failure risk of hardcoded string
keys in the JNI result/diagnostics parsing, and the step-by-step
checklist derived from cross-referencing prior update PRs.
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Jul 28, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 57.30% (+0.00%)

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

Broaden the file beyond the libddwaf-update task so it's useful as
the repo's general agent entry point, and replace hardcoded line
numbers with grep patterns so the checklist doesn't go stale as
files change.
@jandro996
jandro996 marked this pull request as ready for review July 28, 2026 08:30
@jandro996
jandro996 requested a review from a team as a code owner July 28, 2026 08:30
@jandro996
jandro996 requested a review from dromanol July 28, 2026 08:30

@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: 05813e8c2c

ℹ️ 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 AGENTS.md Outdated
Comment thread AGENTS.md Outdated
- The -PlibddwafConfig example pointed at a .cmake file path; the
  property is actually a directory (build.gradle's
  cmakeNativeLibDebug appends /libddwaf-config-debug.cmake to it).
- TestsPass does not fan in Coverage or ClangFormat; correct the
  actual needs chain (Test, Dev_Tests, Jmh_Build, Spotless,
  Jar_File_Stage_build_jar -> all Native_binaries_Stage_* incl.
  ASan/static analyzer).
@jandro996

Copy link
Copy Markdown
Member Author

@codex review

@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: e816ba3f40

ℹ️ 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 AGENTS.md Outdated
Codex review on PR #205 flagged that plain ./gradlew check does not
cover the GC race regression (APPSEC-62784) exercised by the Alpine
JDK 21/25 CI matrix, since ReachabilityFenceTest is excluded from the
standard test task and only wired into check via -PuseZGC.
@jandro996

Copy link
Copy Markdown
Member Author

@codex review

@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: 4f5243d41e

ℹ️ 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 AGENTS.md
Codex review on PR #205 flagged that on a fresh checkout without
--recurse-submodules, libddwaf/ is empty and not a git repo, so cd
libddwaf + git fetch/checkout silently operate on the outer
superproject instead. Add git submodule update --init first.
@jandro996
jandro996 merged commit 888654c into master Jul 28, 2026
43 checks passed
@jandro996
jandro996 deleted the jandro996/add-agents-md branch July 28, 2026 10:35
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