Improvement/cldsrv 875 integrate shared prettier#6124
Improvement/cldsrv 875 integrate shared prettier#6124benzekrimaha wants to merge 10 commits intodevelopment/9.3from
Conversation
Hello benzekrimaha,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Review by Claude Code |
e57392c to
e85ae46
Compare
|
|
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
Review by Claude Code |
Review by Claude Code |
|
Review by Claude Code |
|
LGTM |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
| @@ -74,85 +78,100 @@ permissions: | |||
| contents: read | |||
| packages: write | |||
There was a problem hiding this comment.
The concurrency group uses pull_request.head.sha, which changes with every new commit pushed to the PR. This means each push creates a different concurrency group, so previous runs won't be canceled — defeating the purpose of cancel-in-progress: true.
Use the PR number (or head_ref) instead so that successive pushes to the same PR cancel prior runs:
```suggestion
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
58c9beb to
902ab8b
Compare
|
|
LGTM |
1 similar comment
|
LGTM |
| This will start the developement server, watching for changes and restarting | ||
| as needed. | ||
|
|
||
| ### Formatting |
There was a problem hiding this comment.
Then I think we should ignore package.json ?
There was a problem hiding this comment.
either add it to the ignore or we inforce the linting in it , it's a choice to make we can check with others what they prefer
| "ft_sse_arn": "cd tests/functional/sse-kms-migration && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 10000 cleanup.js arnPrefix.js --exit", | ||
| "lint": "eslint $(git ls-files '*.js')", | ||
| "lint_md": "mdlint $(git ls-files '*.md')", | ||
| "format:changed": "scripts/format-changed.sh", |
There was a problem hiding this comment.
| "format:changed": "scripts/format-changed.sh", | |
| "format:check:diff": "scripts/format-changed.sh", |
Maybe ?
There was a problem hiding this comment.
tried to keep the same name as the sh , can indeed be changed
There was a problem hiding this comment.
the script can be renamed as well
There was a problem hiding this comment.
Maybe a quick comment to explain the goal of the script and how it's working ?
|
LGTM |
| "ft_sse_arn": "cd tests/functional/sse-kms-migration && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json -t 10000 cleanup.js arnPrefix.js --exit", | ||
| "lint": "eslint $(git ls-files '*.js')", | ||
| "lint_md": "mdlint $(git ls-files '*.md')", | ||
| "format:changed": "scripts/format-changed.sh", |
There was a problem hiding this comment.
the script can be renamed as well
16e46ef to
d8df099
Compare
| indentation, run formatting before pushing dependency changes: | ||
|
|
||
| ```bash | ||
| yarn format |
In this commit lint.yaml was converted to a reusable workflow using workflow_call removing the separate standalone lint run and keeps lint under the main tests workflow. prettier-diff.sh no longer tries to infer branches using BASE_SHA / BASE_REF / hardcoded defaults.Diff range is now provided by workflow invocation, instead of the script logic. Issue: CLDSRV-875
| lint: | ||
| uses: ./.github/workflows/lint.yaml | ||
| with: | ||
| git-diff-args: ${{ github.event_name == 'push' && format('{0}..{1}', github.event.before, github.sha) || 'HEAD~1..HEAD' }} |
There was a problem hiding this comment.
not correct : should run on the diff from "upstream" to now.
for exemple: if we push 1 commit, then another 1 → script must run on the whole diff (2 commits), not just the last one
The previous approach used github.event.before..github.sha for push events, which only covered the commits in the last push. When pushing multiple times to a branch, only the latest push was checked.Now the lint workflow computes the merge base with origin/HEAD (the default branch) so prettier always checks the full branch diff,regardless of how many pushes were made. Issue:CLDSRV-875
Issue: CLDSRV-875