Skip to content

INTEGRATION [PR#6297 > development/9.5] CLDSRV-1002: format the whole codebase with prettier - #6309

Merged
bert-e merged 17 commits into
development/9.5from
w/9.5/improvement/CLDSRV-1002/prettier-whole-repo
Sep 28, 2026
Merged

bert-e merged 17 commits into
development/9.5from
w/9.5/improvement/CLDSRV-1002/prettier-whole-repo

Conversation

@bert-e

@bert-e bert-e commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

This pull request has been created automatically.
It is linked to its parent pull request #6297.

Do not edit this pull request directly.
If you need to amend/cancel the changeset on branch
w/9.5/improvement/CLDSRV-1002/prettier-whole-repo, please follow this
procedure:

 git fetch
 git checkout w/9.5/improvement/CLDSRV-1002/prettier-whole-repo
 # <amend or cancel the changeset by _adding_ new commits>
 git push origin w/9.5/improvement/CLDSRV-1002/prettier-whole-repo

Please always comment pull request #6297 instead of this one.

DarkIsDude and others added 17 commits September 24, 2026 12:07
The lint job of the tests workflow runs prettier --check on every file,
next to ESLint, instead of a separate workflow diffing the files a pull
request touches; the diff script goes away.

Issue: CLDSRV-1002
Prettier and max-len both cap lines at 120 columns, but Prettier cannot
break string literals, template literals or comments, so it leaves some
lines longer and max-len reports them: 109 errors on the reformatted tree.
Fixing them would mean hand-split strings or disable comments, which is
the concatenation noise the reformat removes. Turn max-len off.

The eslint-disable max-len directives become unused, which ESLint 9
reports as warnings and the lint job fails on (--max-warnings 0), so they
are removed with it.

Issue: CLDSRV-1002
The website fixtures' exact bytes are asserted as ETags in websiteHead.js
and websiteHeadWithACL.js. monitoring/dashboard.json is generated from
dashboard.py by grafanalib; it is also marked as generated so GitHub
collapses its diff.

Issue: CLDSRV-1002
Plain output of `yarn prettier:write`, no manual edit on top.

Issue: CLDSRV-1002
Prettier pads markdown table cells for alignment, which pushed this table
to 82 columns and tripped MD013. mdlint's config lives in the shared
Guidelines package and cannot be relaxed per repo, so shorten the widest
cell instead.

Issue: CLDSRV-1002
Adds .git-blame-ignore-revs, which GitHub reads automatically; the file
explains the one-time git config needed locally.

Issue: CLDSRV-1002
Prettier reflowed the code to 120 columns, which left many messages and
test descriptions as chains of short literals joined with `+`. Merge
adjacent literals into a single string wherever the result fits; strings
that cannot fit are re-split into as few pieces as possible.

Issue: CLDSRV-1002
Strings that were wrapped by hand for the old 80-column limit kept their
short pieces after the Prettier reflow, often as one short line followed
by several full ones. Re-split them into as few balanced pieces as fit in
120 columns, or into a single literal when it fits.

Issue: CLDSRV-1002
Where a message was built as a plain string concatenated with a template
literal, merge the pieces into a single template literal. Kept separate
from the plain-string merges so it can be reviewed, or dropped, on its
own.

Issue: CLDSRV-1002
Merging the hand-wrapped literals exposed pieces that had been joined
without a separating space (and one doubled space), in test names and in
a few error messages. Add the missing spaces.

Issue: CLDSRV-1002
Covers code added to development/9.4 after the cleanup was written and
every remaining plain, template or mixed pair joined with + on one line,
so no-useless-concat has nothing left to report. The ACL XML builder now
pushes whole fragments instead of separate hardcoded entries joined with
''. String values are unchanged, checked by comparing the parsed string
contents of every file before and after.

Issue: CLDSRV-1002
Joins that glued two words (badconfig, localCachesentinel, ...), a
missing space after a colon, a double space, and the localCache password
assertion message. No test asserts these messages.

Issue: CLDSRV-1002
Nothing is left for it to report after the string cleanup; enabling it
stops new '...' + '...' joins on one line. Chains split over several lines
are not reported, by the rule's design.

Issue: CLDSRV-1002
From review: drop quotes docker-compose does not need, keep the async
check ternary on three lines (an empty trailing comment stops prettier
joining it), merge the completempu test title, add blank lines between
tests, indent the encryption test XML bodies with the code, and drop the
quotes around function names in describe titles.

Issue: CLDSRV-1002
The template literal carried the code indentation into the response body,
between the XML declaration and the root element. Only that whitespace
changes; the document is the same.

Issue: CLDSRV-1002
`.then(() => cb()).catch(cb)` calls cb a second time with the error when
cb itself throws. Pass cb as the rejection handler instead, and let the
bucket logging cleanup return its promise to mocha.

Issue: CLDSRV-1002
…-whole-repo' into w/9.5/improvement/CLDSRV-1002/prettier-whole-repo

# Conflicts:
#	lib/api/apiUtils/object/coldStorage.js
#	tests/unit/api/apiUtils/coldStorage.js
@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.00692% with 364 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.55%. Comparing base (089b3a3) to head (691aabf).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/management/configuration.js 24.24% 25 Missing ⚠️
lib/kms/wrapper.js 62.29% 23 Missing ⚠️
lib/management/index.js 17.85% 23 Missing ⚠️
lib/management/push.js 25.80% 23 Missing ⚠️
lib/api/objectGet.js 84.21% 21 Missing ⚠️
lib/api/apiUtils/object/objectLockHelpers.js 34.78% 15 Missing ⚠️
lib/management/credentials.js 7.14% 13 Missing ⚠️
lib/api/apiUtils/authorization/tagConditionKeys.js 63.33% 11 Missing ⚠️
lib/routes/routeWorkflowEngineOperator.js 15.38% 11 Missing ⚠️
lib/Config.js 23.07% 10 Missing ⚠️
... and 61 more
Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/api/apiUtils/authorization/serviceUser.js 100.00% <ø> (ø)
lib/api/apiUtils/bucket/bucketCreation.js 96.35% <100.00%> (ø)
lib/api/apiUtils/bucket/bucketShield.js 100.00% <100.00%> (ø)
lib/api/apiUtils/bucket/createKeyForUserBucket.js 100.00% <ø> (ø)
...api/apiUtils/bucket/getReplicationConfiguration.js 100.00% <100.00%> (ø)
...b/api/apiUtils/bucket/validateReplicationConfig.js 84.61% <100.00%> (-1.10%) ⬇️
lib/api/apiUtils/bucket/validateSearch.js 96.42% <100.00%> (ø)
lib/api/apiUtils/object/applyZenkoUserMD.js 80.00% <100.00%> (ø)
lib/api/apiUtils/object/checkHttpHeadersSize.js 88.88% <100.00%> (ø)
lib/api/apiUtils/object/checkReadLocation.js 100.00% <100.00%> (ø)
... and 136 more
@@                 Coverage Diff                 @@
##           development/9.5    #6309      +/-   ##
===================================================
- Coverage            86.57%   86.55%   -0.02%     
===================================================
  Files                  213      213              
  Lines                14620    14607      -13     
===================================================
- Hits                 12657    12643      -14     
- Misses                1963     1964       +1     
Flag Coverage Δ
checksums-disabled-tests 35.39% <13.79%> (+0.01%) ⬆️
file-ft-tests 70.04% <69.45%> (-0.03%) ⬇️
file-ft-tests-null-compat 70.47% <69.45%> (-0.03%) ⬇️
kmip-ft-tests 28.17% <7.41%> (+0.02%) ⬆️
mongo-v0-ft-tests 71.11% <69.94%> (-0.01%) ⬇️
mongo-v1-ft-tests 71.16% <69.94%> (+<0.01%) ⬆️
multiple-backend 36.15% <20.11%> (+0.02%) ⬆️
s3c-ft-tests-v0 65.03% <65.20%> (-0.02%) ⬇️
s3c-ft-tests-v0-null-compat 65.08% <65.20%> (-0.02%) ⬇️
s3c-ft-tests-v1 65.00% <65.00%> (-0.02%) ⬇️
sur-tests 36.68% <16.65%> (+0.04%) ⬆️
sur-tests-inflights 39.48% <16.70%> (+0.02%) ⬆️
unit 74.29% <65.74%> (-0.03%) ⬇️
utapi-v2-tests 35.37% <14.58%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@bert-e
bert-e merged commit aab026e into development/9.5 Sep 28, 2026
36 of 37 checks passed
@bert-e
bert-e deleted the w/9.5/improvement/CLDSRV-1002/prettier-whole-repo branch September 28, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants