[ 
https://issues.apache.org/jira/browse/FLINK-39587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077661#comment-18077661
 ] 

Purushottam Sinha commented on FLINK-39587:
-------------------------------------------

Refer to the comment 
https://github.com/apache/flink/pull/27774#discussion_r3173428904

> [Web dashboard] Prettier rules not enforced in CI - cache hides drift 
> ----------------------------------------------------------------------
>
>                 Key: FLINK-39587
>                 URL: https://issues.apache.org/jira/browse/FLINK-39587
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: Runtime / Web Frontend
>            Reporter: Purushottam Sinha
>            Priority: Minor
>
> Problem                                                                       
>                                                                               
>                                                    
> The dashboard configures Prettier strictly but does not enforce it in CI. 
> Files in master quietly violate .prettierrc; when a contributor edits one, 
> the pre-commit hook auto-reformats it, producing unrelated diff churn in 
> feature PRs (recent example: PR #27774 reformats 
> job-manager-logs.component.ts and task-manager-logs.component.ts).            
>                                                                  
>    
> Evidence                                                                      
>                                                                               
>                                                    
>   - package.json:7 — lint runs eslint --cache, so previously-passing files 
> are skipped even after .prettierrc changes.
>   - Azure dashboard step runs npm run build, not npm run ci-check — lint 
> never gates PRs.                                                              
>                                                           
>   - .prettierrc enforces singleQuote: true, bracketSpacing: true; master 
> files like *-logs.component.ts violated both until PR #27774 touched them.
>                                                                               
>                                                                               
>                                                      
> Proposed fix                                                                  
>                                                                               
>                                                    
>   - One-time npm run lint:fix across flink-runtime-web/web-dashboard/src, 
> landed as a single dedicated commit.                                          
>                                                          
>   - Add that SHA to .git-blame-ignore-revs.                                   
>                                                                               
>                                                      
>   - Wire npm run lint (no --cache in CI) into the dashboard's Azure step.
>                                                                               
>                                                                               
>                                                      
>   Acceptance                                                                  
>                                                                               
>                                                      
>   - Fresh clone: npm run lint passes without --cache.                         
>                                                                               
>                                                      
>   - A style-violating commit fails the dashboard CI step.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to