Skip to content

DAOS-18857 build: use env.get() for optional env var checks#18282

Open
knard38 wants to merge 1 commit into
masterfrom
ckochhof/fix/master/daos-18857/patch-002
Open

DAOS-18857 build: use env.get() for optional env var checks#18282
knard38 wants to merge 1 commit into
masterfrom
ckochhof/fix/master/daos-18857/patch-002

Conversation

@knard38
Copy link
Copy Markdown
Contributor

@knard38 knard38 commented May 19, 2026

Description

Replace the verbose 'KEY' in env and env['KEY'] pattern with the idiomatic env.get('KEY') form for SANITIZERS and HEAP_PROFILER checks throughout compiler_setup.py, as suggested in PR #18068 review.

env.get() returns None when the key is absent, which is falsy — semantically equivalent to the original guards.

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

Replace the verbose 'KEY' in env and env['KEY'] pattern with the
idiomatic env.get('KEY') form for SANITIZERS and HEAP_PROFILER checks
throughout compiler_setup.py, as suggested in PR #18068 review.

env.get() returns None when the key is absent, which is falsy —
semantically equivalent to the original guards.

Signed-off-by: Cedric Koch-Hofer <[email protected]>
@knard38 knard38 self-assigned this May 19, 2026
@knard38 knard38 requested review from a team as code owners May 19, 2026 07:54
@knard38 knard38 requested review from daltonbohning and phender May 19, 2026 07:55
@github-actions
Copy link
Copy Markdown

Ticket title is 'Support of Gperftools Heap Profiler'
Status is 'Resolved'
https://daosio.atlassian.net/browse/DAOS-18857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants