Skip to content

Conversation

@erman-gurses
Copy link
Contributor

@erman-gurses erman-gurses commented Dec 1, 2025

Remove tabs to pass pre-commit

@erman-gurses erman-gurses changed the title Fix tab for pre-commit Fix tabs for pre-commit Dec 1, 2025
@erman-gurses erman-gurses changed the title Fix tabs for pre-commit Remove tabs to pass pre-commit Dec 1, 2025
@erman-gurses
Copy link
Contributor Author

erman-gurses commented Dec 1, 2025

Pre-commit passed but patch does not match with the rocm-systems upstream now

@jayhawk-commits
Copy link
Contributor

The lines being removed in the patch have tabs, the fixes must be done on rocm-systems first.

@geomin12
Copy link
Contributor

geomin12 commented Dec 1, 2025

@erman-gurses do you want to do the fix in rocm-systems? i can too

@erman-gurses
Copy link
Contributor Author

@erman-gurses do you want to do the fix in rocm-systems? i can too

Yes, I will check that part too.

@geomin12
Copy link
Contributor

geomin12 commented Dec 1, 2025

@erman-gurses do you want to do the fix in rocm-systems? i can too

Yes, I will check that part too.

Joseph has it here: ROCm/rocm-systems#2090

@erman-gurses
Copy link
Contributor Author

erman-gurses commented Dec 1, 2025

@erman-gurses do you want to do the fix in rocm-systems? i can too

Yes, I will check that part too.

Joseph has it here: ROCm/rocm-systems#2090

Oh nice, thanks for letting me know. Approved too.

Copy link
Member

@ScottTodd ScottTodd left a comment

Choose a reason for hiding this comment

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

We can allow tabs in the patches/ folder as needed. I sent #2359 for that.

The lines being removed in the patch have tabs, the fixes must be done on rocm-systems first.

pre-commit is the only required check in TheRock right now. It must always pass. We shouldn't be merging through that failing check here or wait for cross-repository changes.

ScottTodd added a commit that referenced this pull request Dec 1, 2025
This fixes failures reported here:
#2338 (comment)

```
No-tabs checker..........................................................Failed
- hook id: forbid-tabs
- exit code: 1

Tabs detected in file: patches/amd-mainline/rocm-systems/0002-Revert-hsakmt-bump-vgpr-count-for-gfx1151-1807.patch

Error: Process completed with exit code 1.
```

We won't need #2351 once this is
merged.

Tested that the hook still runs for other directories:
```
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing core/0002-Revert-hsakmt-bump-vgpr-count-for-gfx1151-1807.patch

Check Yaml...........................................(no files to check)Skipped
Check for merge conflicts................................................Passed
Check for added large files..............................................Passed
Mixed line ending........................................................Passed
black................................................(no files to check)Skipped
clang-format.........................................(no files to check)Skipped
mdformat.............................................(no files to check)Skipped
No-tabs checker..........................................................Failed
- hook id: forbid-tabs
- exit code: 1

Tabs detected in file: core/0002-Revert-hsakmt-bump-vgpr-count-for-gfx1151-1807.patch
```
@erman-gurses
Copy link
Contributor Author

Closing since the problem was addressed in #2359

@github-project-automation github-project-automation bot moved this from TODO to Done in TheRock Triage Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants