Repository navigation
fix(lint): keep deployment_ledger.py under the 2100-line guard (main red) - #4878
Merged
Daniel Meppiel (danielmeppiel) merged 1 commit intoNov 23, 2026
Merged
Conversation
The #4802 revert (#4855) and #4818 landed together and took the file to 2101 lines. The restored _encode call takes one formatted line, as it did before the revert; no behavior change. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 23, 2026 01:14
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the deployment ledger formatting change.
No open issues 🎉
What changed in this PR
This formatting-only change addresses the deployment ledger's file-length lint failure after #4855 and #4818 landed together, without changing runtime behavior or raising the limit.
Changes:
- Compacts the
_encodecall while preserving all arguments. - Adds
# fmt: skipto retain the single-line layout, reducing the file from 2101 to 2095 lines.
| File | Description |
|---|---|
src/apm_cli/core/deployment_ledger.py |
Compacts _encode to bring the file below the 2100-line guard. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 23, 2026
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This was referenced Nov 23, 2026
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-ledger-budget-fix
branch
November 23, 2026 06:14
Daniel Meppiel (danielmeppiel)
added a commit
that referenced
this pull request
Nov 23, 2026
Co-authored-by: Copilot App <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Main is red on the Lint file-length guard (
.github/actions/lint-chain/action.yml,MAX_LINES=2100):src/apm_cli/core/deployment_ledger.pyreached 2101 lines when the #4802 revert (#4855) and #4818 landed together (main d656ff3).This PR writes the restored
DeploymentMaterializationSession._encodecall on one formatted line (# fmt: skip), the same shape the code had before the revert. The file goes to 2095 lines. There is no behavior change and the budget is not raised.Issue and approved scope
Issue: Refs #4855
Human scope-approval comment: main-red fix under the regent's main-red owner ruling (02:1x); OPS acked compaction with no behavior change and no budget raise.
Does this PR complete the issue, or what remains? It restores green Lint on main; nothing remains.
Type of change
Testing
Validation evidence:
wc -l src/apm_cli/core/deployment_ledger.py: 2095 (main: 2101).uvx [email protected] check src/apm_cli/core/deployment_ledger.py: passed.uvx [email protected] format --check src/apm_cli/core/deployment_ledger.py: passed.Changelog
changelog.d/<pr>.<section>.md, holdingone line: user-visible effect first, 25 words or fewer, ending with
(#PR); breaking changes only under upgrade notes; no Highlights; nonew lines under
## [Unreleased]. Seechangelog.d/README.mdand.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)
Not applicable.