Skip to content

Disable the SC2329 false positive in test/localtest.sh - #491

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
jansen.wenberg/shellcheck-sc2329
Nov 16, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
jansen.wenberg/shellcheck-sc2329

Conversation

@Jansen-w

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds SC2329 to the existing # shellcheck disable=SC2317 comment on the curl() override in test/localtest.sh.

Motivation

The newer shellcheck on the CI runner reports SC2329 ("This function is never invoked") for this function, so the shellcheck job fails on all PRs to main. The warning is a false positive. Line 80 runs export -f curl, and the install script (/tmp/script.sh, line 89) calls the override as a child process. SC2317 is already disabled for the same reason.

PR #488 has the same line. The two changes are identical, so they do not conflict.

The newer shellcheck on the CI runner reports SC2329 for the curl()
override, so all PRs to main fail. The function is exported with
export -f and the install script calls it as a child process, so the
warning is a false positive. SC2317 is already disabled for the same
reason.

Environment: Datadog workspace
@Jansen-w
Jansen-w requested a review from a team as a code owner November 16, 2026 19:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T19:09:02.088752Z daaa17b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Jansen-w
Jansen-w added this pull request to stack #492 November 16, 2026 19:08
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Tests  Pipelines

⚠️ Warnings

Your PR has warnings. Tests failed — unable to determine if these are from required jobs.

🧪 1 Test failed in 1 job

DataDog/agent-linux-install-script | e2e — ❌ 1 test failed

View more details

❌ TestMain from github.com/DataDog/agent-linux-install-script/test/e2e   View in Datadog
Failed

FAIL	github.com/DataDog/agent-linux-install-script/test/e2e [setup failed]

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: daaa17b | Docs | View more details | Give us feedback!

@Jansen-w

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-11-16 21:24:28 UTC ℹ️ Start processing command /merge


2026-11-16 21:24:32 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 36m (p90).


2026-11-16 22:00:43 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 9bc781e into main Nov 16, 2026
354 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the jansen.wenberg/shellcheck-sc2329 branch November 16, 2026 22:00
@coignetp coignetp mentioned this pull request Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants