Skip to content

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Jan 29, 2025

What changes were proposed in this pull request?

This pr removes a test file StagePageSuite.scala that is no longer needed.

Why are the changes needed?

The current StagePageSuite.scala contains one test case and one private method. The reasons for cleaning them up are as follows:

  1. The assertion in the test case "ApiHelper.COLUMN_TO_INDEX should match headers of the task table" was cleaned up in SPARK-44490 | [SPARK-44490][WEBUI] Remove unused TaskPagedTable in StagePage #42085. Currently, this test case only creates a StageData object and an AppStatusStore object, with no other operations or assertions. Moreover, the creation of these objects is also covered in other test cases, such as KVStoreProtobufSerializerSuite, AppStatusStoreSuite, etc. Therefore, this is already an unnecessary test case and can be cleaned up.

  2. The private method renderStagePage has not been used since SPARK-21809 | [SPARK-21809] : Change Stage Page to use datatables to support sorting columns and searching #21688, so it can be cleaned up.

After cleaning up the above content, StagePageSuite.scala becomes an empty file, so it can be completely deleted.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

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

No

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. The points look reasonable to me, too. Thank you, @LuciferYang .

@LuciferYang
Copy link
Contributor Author

Thank you @dongjoon-hyun

@LuciferYang LuciferYang changed the title [SPARK-51026][CORE][TESTS] Remove the unnecessary test file StagePageSuite.scala. [SPARK-51026][CORE][TESTS] Remove the unnecessary test file StagePageSuite.scala Jan 29, 2025
LuciferYang added a commit that referenced this pull request Jan 29, 2025
…eSuite.scala`

### What changes were proposed in this pull request?
This pr removes a test file `StagePageSuite.scala` that is no longer needed.

### Why are the changes needed?
The current `StagePageSuite.scala` contains one test case and one private method. The reasons for cleaning them up are as follows:

1. The assertion in the test case "ApiHelper.COLUMN_TO_INDEX should match headers of the task table" was cleaned up in SPARK-44490 | #42085. Currently, this test case only creates a `StageData` object and an `AppStatusStore` object, with no other operations or assertions. Moreover, the creation of these objects is also covered in other test cases, such as `KVStoreProtobufSerializerSuite`, `AppStatusStoreSuite`, etc. Therefore, this is already an unnecessary test case and can be cleaned up.

2. The private method `renderStagePage` has not been used since SPARK-21809 | #21688, so it can be cleaned up.

After cleaning up the above content, `StagePageSuite.scala` becomes an empty file, so it can be completely deleted.

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

### How was this patch tested?
Pass GitHub Actions

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

Closes #49721 from LuciferYang/SPARK-51026.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
(cherry picked from commit 3badfd2)
Signed-off-by: yangjie01 <[email protected]>
@LuciferYang
Copy link
Contributor Author

Merged into master and branch-4.0. Thanks @dongjoon-hyun

zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
…eSuite.scala`

### What changes were proposed in this pull request?
This pr removes a test file `StagePageSuite.scala` that is no longer needed.

### Why are the changes needed?
The current `StagePageSuite.scala` contains one test case and one private method. The reasons for cleaning them up are as follows:

1. The assertion in the test case "ApiHelper.COLUMN_TO_INDEX should match headers of the task table" was cleaned up in SPARK-44490 | apache#42085. Currently, this test case only creates a `StageData` object and an `AppStatusStore` object, with no other operations or assertions. Moreover, the creation of these objects is also covered in other test cases, such as `KVStoreProtobufSerializerSuite`, `AppStatusStoreSuite`, etc. Therefore, this is already an unnecessary test case and can be cleaned up.

2. The private method `renderStagePage` has not been used since SPARK-21809 | apache#21688, so it can be cleaned up.

After cleaning up the above content, `StagePageSuite.scala` becomes an empty file, so it can be completely deleted.

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

### How was this patch tested?
Pass GitHub Actions

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

Closes apache#49721 from LuciferYang/SPARK-51026.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
(cherry picked from commit fb742ff)
Signed-off-by: yangjie01 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants