Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-48127][INFRA] Fix dev/scalastyle to check hadoop-cloud and jvm-profiler modules #46376

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented May 4, 2024

What changes were proposed in this pull request?

This PR aims to fix dev/scalastyle to check hadoop-cloud and jam-profiler modules.
Also, the detected scalastyle issues are fixed.

Why are the changes needed?

To prevent future scalastyle issues.

Scala style violation was introduced here, but we missed because we didn't check all optional modules.

jvm-profiler module was added newly at Apache Spark 4.0.0 but we missed to add this to dev/scalastyle. Note that there was no scala style issues in that module at that time.

hadoop-cloud module was added at Apache Spark 2.3.0.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs with newly revised dev/scalastyle.

Was this patch authored or co-authored using generative AI tooling?

No.

@dongjoon-hyun
Copy link
Member Author

cc @panbingkun and @gengliangwang

@dongjoon-hyun
Copy link
Member Author

All tests passed.

Screenshot 2024-05-03 at 21 36 06

@dongjoon-hyun
Copy link
Member Author

Could you review this PR, @viirya ?

@viirya
Copy link
Member

viirya commented May 4, 2024

Good catch!

@dongjoon-hyun
Copy link
Member Author

Thank you, @viirya !

@dongjoon-hyun dongjoon-hyun deleted the SPARK-48127 branch May 4, 2024 05:02
sinaiamonkar-sai pushed a commit to sinaiamonkar-sai/spark that referenced this pull request May 5, 2024
… `jvm-profiler` modules

### What changes were proposed in this pull request?

This PR aims to fix `dev/scalastyle` to check `hadoop-cloud` and `jam-profiler` modules.
Also, the detected scalastyle issues are fixed.

### Why are the changes needed?

To prevent future scalastyle issues.

Scala style violation was introduced here, but we missed because we didn't check all optional modules.
- apache#46022

`jvm-profiler` module was added newly at Apache Spark 4.0.0 but we missed to add this to `dev/scalastyle`. Note that there was no scala style issues in that `module` at that time.
- apache#44021

`hadoop-cloud` module was added at Apache Spark 2.3.0.
- apache#17834

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs with newly revised `dev/scalastyle`.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#46376 from dongjoon-hyun/SPARK-48127.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@panbingkun
Copy link
Contributor

panbingkun commented May 6, 2024

late LGTM. 
Thank you very much for fix it.

dongjoon-hyun pushed a commit that referenced this pull request May 9, 2024
…-ganglia-lgpl` and `jvm-profiler` to `sbt-checkstyle`

### What changes were proposed in this pull request?
The pr aims to add
- `spark-ganglia-lgpl` to `lint-java`
- `spark-ganglia-lgpl` and `jvm-profiler` to `sbt-checkstyle`

### Why are the changes needed?
1.Because the module `spark-ganglia-lgpl` has `java` code
2.Because the module `spark-ganglia-lgpl` & `jvm-profiler` has `scala` code
3.Although these module codes currently comply with the specification, in order to avoid problems like #46376, they will occur again in future modifications.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
- Manually test.
- Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #46501 from panbingkun/minor_spark-ganglia-lgpl.

Authored-by: panbingkun <panbingkun@baidu.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
JacobZheng0927 pushed a commit to JacobZheng0927/spark that referenced this pull request May 11, 2024
… `jvm-profiler` modules

### What changes were proposed in this pull request?

This PR aims to fix `dev/scalastyle` to check `hadoop-cloud` and `jam-profiler` modules.
Also, the detected scalastyle issues are fixed.

### Why are the changes needed?

To prevent future scalastyle issues.

Scala style violation was introduced here, but we missed because we didn't check all optional modules.
- apache#46022

`jvm-profiler` module was added newly at Apache Spark 4.0.0 but we missed to add this to `dev/scalastyle`. Note that there was no scala style issues in that `module` at that time.
- apache#44021

`hadoop-cloud` module was added at Apache Spark 2.3.0.
- apache#17834

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs with newly revised `dev/scalastyle`.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#46376 from dongjoon-hyun/SPARK-48127.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
JacobZheng0927 pushed a commit to JacobZheng0927/spark that referenced this pull request May 11, 2024
…-ganglia-lgpl` and `jvm-profiler` to `sbt-checkstyle`

### What changes were proposed in this pull request?
The pr aims to add
- `spark-ganglia-lgpl` to `lint-java`
- `spark-ganglia-lgpl` and `jvm-profiler` to `sbt-checkstyle`

### Why are the changes needed?
1.Because the module `spark-ganglia-lgpl` has `java` code
2.Because the module `spark-ganglia-lgpl` & `jvm-profiler` has `scala` code
3.Although these module codes currently comply with the specification, in order to avoid problems like apache#46376, they will occur again in future modifications.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
- Manually test.
- Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#46501 from panbingkun/minor_spark-ganglia-lgpl.

Authored-by: panbingkun <panbingkun@baidu.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants