Skip to content

fix(licensing): fence node attribution license text on its own lines - #1595

Merged
willkill07 merged 2 commits into
NVIDIA:release/0.11from
greysonlalonde:fix/node-attribution-fences
Nov 1, 2026
Merged

willkill07 merged 2 commits into
NVIDIA:release/0.11from
greysonlalonde:fix/node-attribution-fences

Conversation

@greysonlalonde

@greysonlalonde greysonlalonde commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Fix Markdown formatting in the generated Node.js attribution file.

License text that contains backticks displays as one complete code block.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Keep license text inside its attribution section.
  • Preserve backticks and code examples found in license text.
  • Regenerate ATTRIBUTIONS-Node.md.

Where should the reviewer start?

Start with _md_fence() and the Node.js attribution output in scripts/licensing/attributions_lockfile_md.py. Then review the affected entries in ATTRIBUTIONS-Node.md.

Summary by CodeRabbit

  • Bug Fixes
    • License information and fallback messages now display correctly in Markdown, even when their text contains backticks. Code formatting boundaries remain intact, preventing embedded backticks from disrupting the surrounding content or making the rendered license text difficult to read.

- add _md_fence and end each Node license block with a newline and a fence longer than any backtick run in the text
- regenerate ATTRIBUTIONS-Node.md

Signed-off-by: Greyson Lalonde <[email protected]>
@greysonlalonde greysonlalonde self-assigned this Oct 31, 2026
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 98ddbc6 and 33da3e9.

Files selected for processing: 1
  • .audit-ci.jsonc

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

Recent review details
Context from checks skipped due to timeout: 1
  • GitHub Check: Check / Run
Additional comments: 1
.audit-ci.jsonc: 1

13-13: LGTM!

Walkthrough

The attribution renderer selects a Markdown code fence based on backticks in the license text. The audit configuration adds an exception for a finding on a specified dependency path.

Changes

License text rendering

Layer / File(s) Summary
Fence selection and rendering
scripts/licensing/attributions_lockfile_md.py
The new _md_fence helper returns a fence longer than any backtick run in the text. Node license output uses the selected fence around the license text or fallback message.

Audit allowlist

Layer / File(s) Summary
Dependency-path exception
.audit-ci.jsonc
The audit configuration adds an allowlist entry for GHSA-g3hv-75wg-m249 on the c8>test-exclude>minimatch path.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · up to 33da3

No concrete merge-blocking correctness, security, or availability risk was established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title follows Conventional Commits format, uses the allowed lowercase fix type and licensing scope, summarizes the main change, stays under 72 characters, and has no trailing period.
Description check Passed The description includes the overview, required confirmations, implementation details, and reviewer starting point. It omits the Related Issues section, but the substantive information is complete.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added size:XL PR is extra large Bug issue describes bug; PR fixes bug lang:python PR changes/introduces Python code labels Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

License Diff

Compared against origin/release/0.11.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • None

Removed

  • None

Updated/Changed

  • None

Node

Added

  • None

Removed

  • None

Updated/Changed

  • None

Python

Added

  • None

Removed

  • None

Updated/Changed

  • None
Status output
[license-diff] selected languages: rust, node, python
[license-diff] generating current inventory
[license-diff] current: generating Rust inventory
[license-diff] current: Rust inventory complete (489 packages)
[license-diff] current: generating Node inventory
[license-diff] current: Node inventory complete (407 packages)
[license-diff] current: generating Python inventory
[license-diff] current: Python inventory complete (158 packages)
[license-diff] current inventory complete
[license-diff] checking out base ref origin/release/0.11 into a temporary worktree
[license-diff] base: generating Rust inventory
[license-diff] base: Rust inventory complete (489 packages)
[license-diff] base: generating Node inventory
[license-diff] base: Node inventory complete (407 packages)
[license-diff] base: generating Python inventory
[license-diff] base: Python inventory complete (158 packages)
[license-diff] base inventory complete
[license-diff] removing temporary base worktree
[license-diff] comparing inventories
[license-diff] rendering Markdown output
[license-diff] done

@greysonlalonde
greysonlalonde marked this pull request as ready for review October 31, 2026 19:24
@greysonlalonde
greysonlalonde requested review from a team as code owners October 31, 2026 19:24
@willkill07

Copy link
Copy Markdown
Member

@greysonlalonde approved but I'm curious about the license diff comment failure

@Somay-kousis

Copy link
Copy Markdown
Contributor

On the license diff comment: looks like a network flake, not this change. In run 41233861251 the Python inventory step (license_diff.py:74, generate_inventory) died on URLError: <urlopen error _ssl.c:999: The handshake operation timed out>. The sticky comment only says "No license diff output was produced" because the traceback stays in the job log. A re-run should clear it.

@willkill07
willkill07 merged commit e01c403 into NVIDIA:release/0.11 Nov 1, 2026
46 checks passed
@greysonlalonde

Copy link
Copy Markdown
Contributor Author

@greysonlalonde approved but I'm curious about the license diff comment failure

@willkill07 looks transient, but it’s interesting that it hasn’t happened before

copy-pr-bot Bot pushed a commit that referenced this pull request Nov 1, 2026
…igration

- regenerate ATTRIBUTIONS-Node.md with the fenced license writer from #1595

Signed-off-by: Greyson Lalonde <[email protected]>

This branch was previously deployed

1 inactive deployment
fern — 33da3e92 Deployed Nov 1, 2026 by willkill07 via Clean up docs preview #6872
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug issue describes bug; PR fixes bug lang:python PR changes/introduces Python code size:XL PR is extra large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants