Skip to content

build: remove unused REGISTRYURL and GCS download path for registry build#22372

Merged
stonezdj merged 9 commits intogoharbor:mainfrom
SoumyaRaikwar:22333-remove-unused-registryurl
Jan 29, 2026
Merged

build: remove unused REGISTRYURL and GCS download path for registry build#22372
stonezdj merged 9 commits intogoharbor:mainfrom
SoumyaRaikwar:22333-remove-unused-registryurl

Conversation

@SoumyaRaikwar
Copy link
Copy Markdown
Contributor

@SoumyaRaikwar SoumyaRaikwar commented Sep 21, 2025

This PR addresses issue #22333.

Changes:

  • Drop REGISTRYURL variable and stop propagating it to sub-make.
  • Simplify make/photon/Makefile to always build the registry from source via the existing builder script.
  • Remove the Google Storage URL that was previously used to download a prebuilt registry binary.

Rationale:

  • The REGISTRYURL parameter and the related GCS download path are no longer used in the build pipeline.
  • Building the registry from source is the supported path and avoids relying on external binary artifacts.

Notes:

  • No Go code changes. CI should verify Makefile behavior remains intact.

@MinerYang
Copy link
Copy Markdown
Contributor

MinerYang commented Sep 22, 2025

Hi @SoumyaRaikwar ,

Thanks for contributing to harbor community.
However this Param is not unused. It will be consumed on demand.

Best,
Miner

@reasonerjt
Copy link
Copy Markdown
Contributor

@SoumyaRaikwar
Thank you for the PR. However, when checking the PR we find there's a misunderstanding in #22333, that this parm may still be needed in some custom cases when some downstream tries to download binaries from a 3rd server in the build process.

@wy65701436 please follow up and clarify.

Comment thread Makefile
Comment thread Makefile
Comment thread make/photon/Makefile
Comment thread make/photon/Makefile
SoumyaRaikwar pushed a commit to SoumyaRaikwar/harbor that referenced this pull request Sep 22, 2025
…binary (address review)

- Keep REGISTRYURL variable (empty by default) and pass-through to sub-make
- Restore conditional registry download path and _get_binary helper in photon Makefile
- Aligns with reviewer guidance on goharbor#22372

Signed-off-by: Your Name <your.email@example.com>
Comment thread Makefile Outdated
@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

SoumyaRaikwar commented Sep 22, 2025

Thanks for the review. I’ve addressed the feedback:

  • Restored REGISTRYURL in the top-level Makefile (left empty by default).
  • Passed REGISTRYURL through to the photon sub-make build.
  • Restored the conditional download path in make/photon/Makefile for non-BUILDREG builds.
  • Restored _get_binary helper.
  • Kept removal of the hardcoded GCS URL.

@stonezdj Please take another look. Thanks!"

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.92%. Comparing base (c8c11b4) to head (898e674).
⚠️ Report is 655 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main   #22372       +/-   ##
===========================================
+ Coverage   45.36%   65.92%   +20.55%     
===========================================
  Files         244     1074      +830     
  Lines       13333   116413   +103080     
  Branches     2719     2937      +218     
===========================================
+ Hits         6049    76746    +70697     
- Misses       6983    35419    +28436     
- Partials      301     4248     +3947     
Flag Coverage Δ
unittests 65.92% <ø> (+20.55%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 989 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

thanks for your contribution. LGTM

@wy65701436 wy65701436 added the release-note/update Update or Fix label Sep 22, 2025
@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

Hi! @stonezdj , could you please review my pr.

Copy link
Copy Markdown
Contributor

@bupd bupd left a comment

Choose a reason for hiding this comment

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

lgtm

@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

SoumyaRaikwar commented Sep 23, 2025

Hi! @stonezdj @Vad1mo ,could you please review my pr ?

@wy65701436 wy65701436 enabled auto-merge (squash) September 25, 2025 07:43
Copy link
Copy Markdown
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

@stonezdj could you please review my pr

Your Name added 2 commits September 29, 2025 16:20
…uild

Closes goharbor#22333

- Drop REGISTRYURL variable and its propagation
- Simplify make/photon/Makefile to always build registry from source via builder
- Remove Google Storage URL reference used for downloading prebuilt registry binary

Signed-off-by: Your Name <your.email@example.com>
…binary (address review)

- Keep REGISTRYURL variable (empty by default) and pass-through to sub-make
- Restore conditional registry download path and _get_binary helper in photon Makefile
- Aligns with reviewer guidance on goharbor#22372

Signed-off-by: Your Name <your.email@example.com>
Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>
Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>
@stonezdj stonezdj force-pushed the 22333-remove-unused-registryurl branch from 76de3b0 to 0952395 Compare September 29, 2025 08:20
@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

Hi @stonezdj @MinerYang @Vad1mo,

Could you please approve the workflow runs for this PR?

@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

@bupd could you please approve the workflows run on my pr ?

@SoumyaRaikwar
Copy link
Copy Markdown
Contributor Author

@wy65701436 @stonezdj The PR has been approved and auto-merge is enabled, but it seems to be waiting on workflow approval. Could you please approve the CI runs when you get a chance? Thank you!

@SoumyaRaikwar SoumyaRaikwar marked this pull request as draft November 13, 2025 20:58
auto-merge was automatically disabled November 13, 2025 20:58

Pull request was converted to draft

@SoumyaRaikwar SoumyaRaikwar marked this pull request as ready for review November 13, 2025 20:58
Copy link
Copy Markdown
Contributor

@bupd bupd left a comment

Choose a reason for hiding this comment

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

its about time. We should merge this.

@github-actions
Copy link
Copy Markdown

This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.

@github-actions github-actions Bot added the Stale label Jan 23, 2026
@bupd
Copy link
Copy Markdown
Contributor

bupd commented Jan 23, 2026

/label never-stale

@bupd
Copy link
Copy Markdown
Contributor

bupd commented Jan 23, 2026

@SoumyaRaikwar can you rebase your pr to main branch.

@github-actions github-actions Bot removed the Stale label Jan 24, 2026
Signed-off-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
@stonezdj stonezdj enabled auto-merge (squash) January 29, 2026 09:41
@stonezdj stonezdj merged commit fe7f2c3 into goharbor:main Jan 29, 2026
12 checks passed
sias32 pushed a commit to sias32/harbor that referenced this pull request Feb 1, 2026
…uild (goharbor#22372)

* build: remove unused REGISTRYURL and GCS download path for registry build

Closes goharbor#22333

- Drop REGISTRYURL variable and its propagation
- Simplify make/photon/Makefile to always build registry from source via builder
- Remove Google Storage URL reference used for downloading prebuilt registry binary

Signed-off-by: Your Name <your.email@example.com>

* build: keep REGISTRYURL var and fallback download path; restore _get_binary (address review)

- Keep REGISTRYURL variable (empty by default) and pass-through to sub-make
- Restore conditional registry download path and _get_binary helper in photon Makefile
- Aligns with reviewer guidance on goharbor#22372

Signed-off-by: Your Name <your.email@example.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

---------

Signed-off-by: Your Name <your.email@example.com>
Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>
Signed-off-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Co-authored-by: Your Name <your.email@example.com>
Co-authored-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Signed-off-by: sias32 <sias.32@yandex.ru>
sias32 pushed a commit to sias32/harbor that referenced this pull request Feb 2, 2026
…uild (goharbor#22372)

* build: remove unused REGISTRYURL and GCS download path for registry build

Closes goharbor#22333

- Drop REGISTRYURL variable and its propagation
- Simplify make/photon/Makefile to always build registry from source via builder
- Remove Google Storage URL reference used for downloading prebuilt registry binary

Signed-off-by: Your Name <your.email@example.com>

* build: keep REGISTRYURL var and fallback download path; restore _get_binary (address review)

- Keep REGISTRYURL variable (empty by default) and pass-through to sub-make
- Restore conditional registry download path and _get_binary helper in photon Makefile
- Aligns with reviewer guidance on goharbor#22372

Signed-off-by: Your Name <your.email@example.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

---------

Signed-off-by: Your Name <your.email@example.com>
Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>
Signed-off-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Co-authored-by: Your Name <your.email@example.com>
Co-authored-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Signed-off-by: sias32 <sias.32@yandex.ru>
sias32 pushed a commit to sias32/harbor that referenced this pull request Feb 5, 2026
…uild (goharbor#22372)

* build: remove unused REGISTRYURL and GCS download path for registry build

Closes goharbor#22333

- Drop REGISTRYURL variable and its propagation
- Simplify make/photon/Makefile to always build registry from source via builder
- Remove Google Storage URL reference used for downloading prebuilt registry binary

Signed-off-by: Your Name <your.email@example.com>

* build: keep REGISTRYURL var and fallback download path; restore _get_binary (address review)

- Keep REGISTRYURL variable (empty by default) and pass-through to sub-make
- Restore conditional registry download path and _get_binary helper in photon Makefile
- Aligns with reviewer guidance on goharbor#22372

Signed-off-by: Your Name <your.email@example.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

* Update Makefile

Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>

---------

Signed-off-by: Your Name <your.email@example.com>
Signed-off-by: Soumya Raikwar <164396577+SoumyaRaikwar@users.noreply.github.com>
Signed-off-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Co-authored-by: Your Name <your.email@example.com>
Co-authored-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com>
Signed-off-by: sias32 <sias320@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants