Repository navigation
chore(#1609): comment rule, history and doc-link gates, wrong comments fixed, 22 files trimmed - #1671
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Queued for this PR after the rebase onto W1 (#1668), W2a (#1667), W4 (#1670) and W2b. Comments and docs only:
|
…a ESM poller claims
2cbc306 to
f4f9cbe
Compare
|
Rebased onto Conflicts. There were two:
Every comment fix applied cleanly at its new location. Queued items, now done:
Checks:
|
Part of #1609 (part 2: comments). What remains is the per-family trim batches, tracked in #1669 (v0.137.0).
(#N), AWS citations andTODO(#N)are fine.make comment-history-check(scripts/check-comment-history.sh).git diff -U0 "${BASE:-origin/main}"...HEAD -- '*.go'), and of those only the comment text: a//line, or the part after a//that is outside a string literal.(before|until|since|after) ?#N,pre-#N,used to (be|treat|report|answer|return|refuse|accept|drop|mint|store), andbefore (this|the) fix.history-ok:.--self-testruns 13 known-bad and 20 known-good lines, among them "previously-tagged", "is used to return" and "AWS no longer publishes".fetch-depth: 0andBASE=origin/${{ github.base_ref }}. It runs on pull requests only.mainis PR-only, so every push to it is a squash of a PR that already passed this step against the same base, and diffingHEAD~1would add nothing.#Nhits, the false positives were compat facts about older records, and the data exemption above covers the forms the tree uses. I found nothing else that is not narration.make doc-links-check(cmd/check-doc-links).[Name],[Type.Member]or[pkg.Name…]in any Go comment that resolves to nothing.[Text]with a[Text]: URLdefinition in the file._testpackage share a scope.make testcatches a dangling link too. Coverage is 92.6%.[Server.resolveCallerPrincipal]×2,[AuthController.addResourceTags],[EC2Plugin.resourceTags],[ec2NatGatewayProgression.failureMessage],[cfnStampFixture.configRuleARNFor],[ec2_tags.go], AWS shape names with no link definition ([TagKeyOnly]×2,[FailureInfo],[UnknownOperationException]), and a third[operationNameResolvers]. It finds no other false positives on the tree. All 23 are fixed.replay.gostateSnapshotHash: IDs come from the request'sIDMint, not crypto/rand.ec2_instance_profile.goand its test: the deadrandomHexreferences.ec2_types.go: the "randomHex is deleted" tombstone is removed. The 18 EC2generate*IDdocs said "random" and gave wrong lengths ("17"/"8" hex forHex(8), which is 16), and now match the code.kms_types.go: EC2 key material is derived, not random (A replayed CreateKeyPair answers different key material and a different fingerprint #1296).replay_pipeline_test.go: the comment claimed that identifiers are minted from crypto/rand and that the replay diverges in response bodies. The replay now shows zero differences, so the comment is corrected.replay_control_plane_seed_test.go: the "EC2 create could not replay" claim.cfn_deployer.go: "last caller of the shared crypto/rand helper", and the deletedWithDeployerPrincipal, nowWithDeployerAttribution.types.go: "what every mint site did before".ec2_snapshots.go: it claimedec2CheckSecurityGroupsswallows read errors, but it propagates them.iam_eval.go: the deadevaluateConditionKeyreference, nowconditionKeyMatches.cmd/gen-operation-catalog, "~22 services" incfn_deployer.go, "18 services" inoperation_names_test.go(the map has 19).cancelKeyDeletion: the claim thatsetKeyState"checks nothing".elbXMLNS: the RDS/ElastiCachehttps://claim. Both constants arehttp://.ec2_plugin.go79 → 13. Its tagging region is left for W2b. "as of #N" and "through v0.N" are also cleared from it.kms_plugin.go32 → 8;kms_key_metadata.go11 → 1;kms_errors.go10 → 3.invalid_body_inventory_test.go18 → 1.iam_plugin.go14 → 5;iam_types.go12 → 9 (compat facts).msk_plugin.go13 → 2;redshift_plugin.go13 → 1;sns_plugin.go12 → 2.ec2_describe_filters_test.go13 → 0;cfn_rollback.go12 → 9 (compat facts);ec2_instancetypes.go11 → 1;ec2_launchtemplate_versions.go10 → 0.elb_plugin.go10 → 1;elb_tags.go10 → 4 ("previously-tagged" is the domain term).secretsmanager_plugin.go9 → 2;backup_plugin.go9 → 4 (compat facts);scheduler_plugin.go9 → 2;ec2_block_devices.go9 → 1.transfer_plugin.go8 → 0;ids.go4 → 0, with its past-tense narration as well.lambda_*,rds_*,spawn_*,replay*,config.go,server.go,s3_plugin.go,export_test.go,cfn_resources_v*and the files citing them,tagging_*, the EC2 and S3 tagging files,plugins.go,types.go.cfn_deployer.go(42) is also left out because of its size and the regrouping going on around it. It heads thecfn_*batch in Comment diet: trim issue-history narration from the remaining file families #1669. The few one-line link and wrong-comment fixes inside excluded files are deliberate..gofiles, a scratch tool parsed the v0.131.0 version and the branch version withgo/parserwithoutParseComments, printed both withgo/printer, and byte-compared them: all 48 are identical. The only new Go code iscmd/check-doc-links.gofmt -lis clean. Every edit was hand-written per site. A words-preserving re-fill at width 100 was used only on paragraphs an edit left over-long.make lint(0 issues),test,e2e, andiac-e2e(Terraform and CDK,SUBSTRATE_IAC=1).operation-catalog-check docs-reference-check docs-headings-check operation-docs-check authz-reference-check cfn-schema-check doc-links-checkandwire-bookkeeping-check discarded-unmarshal-check discarded-marshal-check discarded-state-check nondeterminism-check comment-history-check.docs-versions,docs-counts-check, and the VitePress build.This merges last of the v0.132.0 PRs. After W1, W2a, W4 and W2b land, I'll rebase, re-run both gates, and the rule then applies to these trims too.