Skip to content

add docker check before running 'make gen_apis' - #22907

Merged
chlins merged 10 commits into
goharbor:mainfrom
yaten2302:enhancement/issue-22906
Mar 13, 2026
Merged

chlins merged 10 commits into
goharbor:mainfrom
yaten2302:enhancement/issue-22906

Conversation

@yaten2302

@yaten2302 yaten2302 commented Mar 3, 2026 •

Copy link
Copy Markdown
Contributor

Comprehensive Summary of your change

This change introduces a check which makes sure that if docker is running or not. If not, it gives an error to the user - Error: Docker is not installed or not in PATH.
This makes easier for new contributors, since they don't have to go to the Makefile and check what's failing.

Issue being fixed

Fixes #22906

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

Signed-off-by: Yaten <yaten598@gmail.com>
@yaten2302
yaten2302 requested a review from a team as a code owner March 3, 2026 11:55
Comment thread Makefile Resolved

@wy65701436 wy65701436 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@Vad1mo Vad1mo added the release-note/infra Infra related changes e.g. release, test, ship etc... label Mar 9, 2026
@codecov

codecov Bot commented Mar 9, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 66.03%. Comparing base (cea461f) to head (4a30935).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #22907      +/-   ##
==========================================
+ Coverage   66.00%   66.03%   +0.02%     
==========================================
  Files        1073     1073              
  Lines      116495   116495              
  Branches     2939     2939              
==========================================
+ Hits        76898    76922      +24     
+ Misses      35343    35321      -22     
+ Partials     4254     4252       -2     
Flag Coverage Ξ”
unittests 66.03% <ΓΈ> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 4 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.

@chlins

chlins commented Mar 9, 2026

Copy link
Copy Markdown
Member

@yaten2302 Please fix the CI.

@wy65701436 wy65701436 added needs/follow-up and removed release-note/infra Infra related changes e.g. release, test, ship etc... labels Mar 10, 2026
@yaten2302

Copy link
Copy Markdown
Contributor Author

@chlins kindly approve the CI checks again please :)
image

@chlins chlins added the release-note/update Update or Fix label Mar 10, 2026
@chlins
chlins enabled auto-merge (squash) March 10, 2026 10:16
@yaten2302 yaten2302 mentioned this pull request Mar 10, 2026
4 of 5 tasks
Comment thread Makefile Resolved

@wy65701436 wy65701436 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please ensure the pipelines pass.

Signed-off-by: Yaten <yaten598@gmail.com>
auto-merge was automatically disabled March 12, 2026 08:01

Head branch was pushed to by a user without write access

@chlins chlins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@chlins
chlins enabled auto-merge (squash) March 12, 2026 08:31

@wy65701436 wy65701436 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@chlins
chlins merged commit 38ee25e into goharbor:main Mar 13, 2026
12 checks passed
isityael pushed a commit to isityael/harbor that referenced this pull request May 5, 2026
* add docker check before running make gen_apis command

Signed-off-by: Yaten <yaten598@gmail.com>

* update makefile to add check if docker is running or not

Signed-off-by: Yaten <yaten598@gmail.com>

* fix indentation

Signed-off-by: Yaten <yaten598@gmail.com>

---------

Signed-off-by: Yaten <yaten598@gmail.com>
Co-authored-by: Wang Yan <wangyan@vmware.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.

Log all errors (if any) while running - make gen_apis for the ease of the user

5 participants