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

Ant task to automatically convert to a simple shim layout #7561

Merged

Conversation

gerashegalov
Copy link
Collaborator

@gerashegalov gerashegalov commented Jan 20, 2023

Closes #7528

Usage:

mvn -B clean generate-sources antrun:run@shimplify-shim-sources -pl sql-plugin -Dshimplify=true -Dshimplify.add.base=323 -Dshimplify.add.shim=324
  • Prints warning if detects a shim containing multiple source roots not shared with other shims. By construction a shim should have only a single directory that is not shared. Example:
shimplify - WARNING - Consider consolidating 340, it spans multiple dedicated directories ['/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/340+/scala', '/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/340/scala']
shimplify - WARNING - Consider consolidating 312db, it spans multiple dedicated directories ['/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/312db/scala', '/home/user/gits/NVIDIA/spark-rapids/sql-plugin/src/main/31xdb/scala']
  • Updates shimplfy json comments without moving the files they are the old locations
  • Move files to the canonical fist-shim-affected location
  • Clones an existing shim to a new shim
  • Removes an existing shim

The goal is to deprecate the range dirs.

Signed-off-by: Gera Shegalov [email protected]

Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
build/shimplify.py Show resolved Hide resolved
docs/dev/shimplify.md Outdated Show resolved Hide resolved
docs/dev/shimplify.md Show resolved Hide resolved
docs/dev/shimplify.md Outdated Show resolved Hide resolved
docs/dev/shimplify.md Show resolved Hide resolved
docs/dev/shimplify.md Outdated Show resolved Hide resolved
docs/dev/shimplify.md Show resolved Hide resolved
docs/dev/shimplify.md Outdated Show resolved Hide resolved
build/shimplify.py Outdated Show resolved Hide resolved
@razajafri
Copy link
Collaborator

Great work! I have left a few comments but I still haven't gone over all the implementation details

@razajafri
Copy link
Collaborator

We should also have a follow-on issue for running this and merging the new structure

gerashegalov and others added 2 commits February 16, 2023 23:56
@gerashegalov
Copy link
Collaborator Author

We should also have a follow-on issue for running this and merging the new structure

added a task in #7487 . I have a pending PR that whose diff will be replaced as generated by shimplify

@gerashegalov
Copy link
Collaborator Author

build

razajafri
razajafri previously approved these changes Feb 17, 2023
-  __add_shim_buildver, __remove_shim_buildver imply should_overwrite
- don't git rm files unless shimplify.move=true

Signed-off-by: Gera Shegalov <[email protected]>
jlowe
jlowe previously approved these changes Feb 21, 2023
Copy link
Member

@jlowe jlowe left a comment

Choose a reason for hiding this comment

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

Minor typo, lgtm.

build/shimplify.py Outdated Show resolved Hide resolved
razajafri
razajafri previously approved these changes Feb 21, 2023
@gerashegalov gerashegalov dismissed stale reviews from razajafri and jlowe via 51100db February 21, 2023 20:56
@gerashegalov
Copy link
Collaborator Author

build

Copy link
Collaborator

@nartal1 nartal1 left a comment

Choose a reason for hiding this comment

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

Great work! I tried these instructions locally and it would be much easier to remove/add shims with this approach.

@gerashegalov
Copy link
Collaborator Author

build

@gerashegalov gerashegalov merged commit c5b8016 into NVIDIA:branch-23.04 Feb 23, 2023
@gerashegalov gerashegalov deleted the generateSymlinks-just-build-v1 branch February 23, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation task Work required that improves the product but is not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven goal to convert an old-style shim to a shimple shim
6 participants