Skip to content

Add cloudberry-env.sh#1166

Merged
tuhaihe merged 1 commit intoapache:mainfrom
leborchuk:AddCBDBEnv
Jul 21, 2025
Merged

Add cloudberry-env.sh#1166
tuhaihe merged 1 commit intoapache:mainfrom
leborchuk:AddCBDBEnv

Conversation

@leborchuk
Copy link
Copy Markdown
Contributor

@leborchuk leborchuk commented Jun 18, 2025

Add cloudberry-env.sh file and replacing greenplum-path.sh

The changes will be made in a future Apache Cloudberry release to
ensure compliance with Apache Software Foundation guidelines.

See details in

Fixes #1149

@tuhaihe tuhaihe requested review from edespino and tuhaihe July 1, 2025 03:45
@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 4, 2025

Hi, there is one PR on the notice blog post about the file renaming: apache/cloudberry-site#294. Welcome to take a look! Thanks. @leborchuk @yjhjstz (Also, see https://lists.apache.org/thread/b8o974mnnqk6zpy86dgll2pgqcvqgnwm)

We need to finalize the renamed file name. If it looks good, we can publish the blog and continue the renaming work.

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 4, 2025

For the file renaming, we need to replace all the strings related to greenplum_path in the source code completely, not just these three places. So it's a huge work and needs more care. Thanks @leborchuk!

@leborchuk
Copy link
Copy Markdown
Contributor Author

For the file renaming, we need to replace all the strings related to greenplum_path in the source code completely, not just these three places. So it's a huge work and needs more care. Thanks @leborchuk!

Yep, I see 85 greenplum_path occurencies of greenplum_path in a source code

xifos@xifos-dev-jammy:~/git/cloudberry$ grep -l -r greenplum_path * | wc -l
85

What I am going to do is replace them in the next PR. I have already checked these PR in my development environment and wanted to move forward step by step.

Is it OK? (I still could replace all occurrences in one PR if needed)

@leborchuk
Copy link
Copy Markdown
Contributor Author

Sorry for the noise here. The file generate-greenplum-path.sh has been changed, so I should rebase. I left generate-greenplume-path.sh as-is with the "NOTICE from the Apache Cloudberry PPMC".

I think we will delete it when all the work is done.

@tuhaihe tuhaihe moved this from Done to In progress in Apache Cloudberry (Incubating) 2.1.0 Jul 6, 2025
@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 6, 2025

For the file renaming, we need to replace all the strings related to greenplum_path in the source code completely, not just these three places. So it's a huge work and needs more care. Thanks @leborchuk!

Yep, I see 85 greenplum_path occurencies of greenplum_path in a source code

xifos@xifos-dev-jammy:~/git/cloudberry$ grep -l -r greenplum_path * | wc -l
85

What I am going to do is replace them in the next PR. I have already checked these PR in my development environment and wanted to move forward step by step.

Is it OK? (I still could replace all occurrences in one PR if needed)

‌Let's replace them all in this PR.

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 6, 2025

Sorry for the noise here. The file generate-greenplum-path.sh has been changed, so I should rebase. I left generate-greenplume-path.sh as-is with the "NOTICE from the Apache Cloudberry PPMC".

I think we will delete it when all the work is done.

Since we're replacing all the old filenames in this PR, the NOTICE file becomes unnecessary. I recommend removing both the license headers and NOTICE references in this PR as well. @leborchuk FYI.

@leborchuk
Copy link
Copy Markdown
Contributor Author

Sorry for the noise here. The file generate-greenplum-path.sh has been changed, so I should rebase. I left generate-greenplume-path.sh as-is with the "NOTICE from the Apache Cloudberry PPMC".
I think we will delete it when all the work is done.

Since we're replacing all the old filenames in this PR, the NOTICE file becomes unnecessary. I recommend removing both the license headers and NOTICE references in this PR as well. @leborchuk FYI.

Yep, removed the NOTICE and all occurrences of greenplum_path that were found in the code. Some of them were manually executed scripts, like src/backend/gporca/scripts/get_debug_event_counters.py, or inside beehave tests. I just changed them using a sed script and didn't check if they still worked or not. I launched build&configure&create/destroy&check_world, and everything worked fine. I believe that should be enough )

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 15, 2025

Sorry for the noise here. The file generate-greenplum-path.sh has been changed, so I should rebase. I left generate-greenplume-path.sh as-is with the "NOTICE from the Apache Cloudberry PPMC".
I think we will delete it when all the work is done.

Since we're replacing all the old filenames in this PR, the NOTICE file becomes unnecessary. I recommend removing both the license headers and NOTICE references in this PR as well. @leborchuk FYI.

Yep, removed the NOTICE and all occurrences of greenplum_path that were found in the code. Some of them were manually executed scripts, like src/backend/gporca/scripts/get_debug_event_counters.py, or inside beehave tests. I just changed them using a sed script and didn't check if they still worked or not. I launched build&configure&create/destroy&check_world, and everything worked fine. I believe that should be enough )

Cool! Thanks @leborchuk, will check it later.

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 15, 2025

  • gpAux/client/scripts/greenplum_clients_path.sh - This file also needs to be changed.

Copy link
Copy Markdown
Member

@tuhaihe tuhaihe left a comment

Choose a reason for hiding this comment

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

@leborchuk thanks for your contribution. Just left a few comments, FYI.

Comment thread gpMgmt/test/behave/mgmt_utils/steps/mgmt_utils.py Outdated
Comment thread gpMgmt/Makefile Outdated
Comment thread gpMgmt/Makefile Outdated
@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 15, 2025

Also, I found we need to update the following line to pass the license check:

<exclude>gpMgmt/bin/generate-greenplum-path.sh</exclude>
.

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 15, 2025

BTW, welcome to help review this PR: #1171. We need to add the license check to the CI workflow.

@leborchuk
Copy link
Copy Markdown
Contributor Author

  • gpAux/client/scripts/greenplum_clients_path.sh

Fixed, rename to cloudberry_clients_path

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 17, 2025

  • gpAux/client/scripts/greenplum_clients_path.sh

Fixed, rename to cloudberry_clients_path

Cool! The NOTICE header can be removed from /gpAux/client/scripts/cloudberry_clients_path.sh too. Thanks!

After this tweak, welcome to squash these commits into one, which would be better to have a good commit message body with enough context, and can take this template for reference.

Then, we can approve this PR and start to merge.

leborchuk pushed a commit to leborchuk/cloudberry-site that referenced this pull request Jul 21, 2025
The changes will be made in a future Apache Cloudberry release to
ensure compliance with Apache Software Foundation guidelines.

See details in

discussion [Bug] Rename greenplum_path.sh and generate-greenplum-path.sh to remove trademarked references #1149
mailing list https://lists.apache.org/thread/b8o974mnnqk6zpy86dgll2pgqcvqgnwm

PR could be merged after apache/cloudberry#1166
@leborchuk
Copy link
Copy Markdown
Contributor Author

Remove NOTICE and squash changes.

I also opened apache/cloudberry-site#300 to fix the site docs - pls see it )

@tuhaihe
Copy link
Copy Markdown
Member

tuhaihe commented Jul 21, 2025

Remove NOTICE and squash changes.

I also opened apache/cloudberry-site#300 to fix the site docs - pls see it )

Great! Thanks @leborchuk!

…se new name

This file will be renamed in a future Apache Cloudberry release to
ensure compliance with Apache Software Foundation guidelines.
We will announce the change on the project mailing list and website.

See: https://lists.apache.org/thread/b8o974mnnqk6zpy86dgll2pgqcvqgnwm
@tuhaihe tuhaihe merged commit 7ec9bdf into apache:main Jul 21, 2025
26 checks passed
tuhaihe pushed a commit to leborchuk/cloudberry-site that referenced this pull request Aug 25, 2025
The changes will be made in a future Apache Cloudberry release to
ensure compliance with Apache Software Foundation guidelines.

See details in

discussion [Bug] Rename greenplum_path.sh and generate-greenplum-path.sh to remove trademarked references #1149
mailing list https://lists.apache.org/thread/b8o974mnnqk6zpy86dgll2pgqcvqgnwm

PR could be merged after apache/cloudberry#1166
tuhaihe pushed a commit to apache/cloudberry-site that referenced this pull request Aug 25, 2025
The changes will be made in a future Apache Cloudberry release to
ensure compliance with Apache Software Foundation guidelines.

See details in

discussion [Bug] Rename greenplum_path.sh and generate-greenplum-path.sh to remove trademarked references #1149
mailing list https://lists.apache.org/thread/b8o974mnnqk6zpy86dgll2pgqcvqgnwm

PR could be merged after apache/cloudberry#1166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[Bug] Rename greenplum_path.sh and generate-greenplum-path.sh to remove trademarked references

3 participants