Create dagger function to run CLI tests#585
Create dagger function to run CLI tests#585adityachopra29 wants to merge 10 commits intogoharbor:mainfrom
Conversation
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #585 +/- ##
=========================================
- Coverage 10.99% 6.44% -4.55%
=========================================
Files 173 260 +87
Lines 8671 12854 +4183
=========================================
- Hits 953 828 -125
- Misses 7612 11920 +4308
Partials 106 106 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
Signed-off-by: Aditya Chopra <adityachopra2912@gmail.com>
|
Hi @bupd Please take a look at this pr. |
|
@bupd any update on this pr's review? |
bupd
left a comment
There was a problem hiding this comment.
@adityachopra29 Thanks for your contribution,
given that multiple iterations have been done on running harbor inside its always been not a great outcome in terms setup speed and config options.
So, I believe this would be really simple if we just run harbor on docker compose / podman compose
https://github.com/bupd/harbor-podman - check this repo this would much simple and really fast to spin up harbor in ci.
we can setup harbor on ci using the above repo and update the tests to use that harbor instead of demo.goharbor.io
|
@bupd |
|
@bupd , the repository https://github.com/bupd/harbor-podman provides a Podman-based setup for running Harbor on Arch Linux, and several steps in the guide are specific to SELinux-enabled distributions. However, most of our CI workflows (for example, the default.yaml) run on ubuntu-latest. I am able to adapt the setup to work specifically on Ubuntu. Given this, should we run the tests on Arch Linux to match the Podman setup in the repo, or should we instead use the Ubuntu-specific steps and continue running the tests on ubuntu-latest? |
|
Also, the repo uses podman-compose instead of Docker Compose. Given that Docker Compose is already available by default and significantly easier to set up and manage, should we prefer Docker Compose here rather than introducing podman-compose? |
|
Hi @bupd
I tried the first approach: ie used a privileged Fedora image(since it is SELinux based), to and run the repo https://github.com/bupd/harbor-podman inside it). However, the podman container required cgroups controllers to be available, which were not delegated properly by github actions runners. (See CI workflow So I have adapted the installation steps for AppArmor based Linux(ubuntu), and run the tests on it, and it is working now. PTAL. |
|
Closing this PR in favour of #648 |
Summary
Changes
harbor-testdagger function which runs tests after starting a service running harborImplementation details
Testing
Usage