samba-in-kubernetes / samba-container

Build Samba Container Images / Kubernetes & Container Runtime Example Files
GNU General Public License v3.0
48 stars 18 forks source link

Workflow matrix #136

Closed obnoxxx closed 1 year ago

obnoxxx commented 1 year ago

convert workflow to matrix to test OS_NAME vs BUILD_ARCH and add opensuse to the matrix

obnoxxx commented 1 year ago

unknown flag: --arch strange! ...

mergify[bot] commented 1 year ago

This pull request now has conflicts with the target branch. Please resolve these conflicts and force push the updated branch.

obnoxxx commented 1 year ago

the remaining problem seems to be the lack of podman support of the docker-image-artifact action: https://github.com/ishworkh/docker-image-artifact/issues/3 @phlogistonjohn - @anoopcs9

obnoxxx commented 1 year ago

@phlogistonjohn, I rebased on top of master after #138 merged, but test still fail with cancelled operations ...

obnoxxx commented 1 year ago

strange. test-server and test-nightly-servers jobs fail with an error killing a container:


Container started, ID: '85a37cd165a28caae3eccab07b306917b2d847fca3a589306550fcd87016b287'
Error: No such container: 85a3[7](https://github.com/samba-in-kubernetes/samba-container/actions/runs/5380524642/jobs/9763455344?pr=136#step:4:8)cd165a2[8](https://github.com/samba-in-kubernetes/samba-container/actions/runs/5380524642/jobs/9763455344?pr=136#step:4:9)caae3eccab07b306917b2d847fca3a589306550fcd87016b287
Error listing samba shares
Error response from daemon: Cannot kill container: 85a37cd165a28caae3eccab07b306[9](https://github.com/samba-in-kubernetes/samba-container/actions/runs/5380524642/jobs/9763455344?pr=136#step:4:10)17b2d847fca3a589306550fcd87016b287: No such container: 85a37cd165a28caae3eccab07b306917b2d847fca3a589306550fcd87016b287
obnoxxx commented 1 year ago

trying to run make test-server locally, I get a different error:

$ make test-server
Error: lsetxattr /var/folders/hs/vmf05zhn49b22zvpjxpc0gm80000gn/T/tmp.lj2dCA6s/containers-user-501: operation not supported
Error running samba container
$ 

this might be related to podman on MacOS ...

obnoxxx commented 1 year ago

@mergifyio rebase

mergify[bot] commented 1 year ago

rebase

✅ Branch has been successfully rebased

phlogistonjohn commented 1 year ago

Hi @obnoxxx, as we discussed earlier today I have pushed some additional patches into your PR. All the jobs that ran are green at the moment. However, there are still a number of issues with the PR:

Now that I've commited directly to this PR, I am willing to do more, but I also want to give you a chance to make changes as needed. First, let's deal with the witespace issue. Let me know if you want me to push a change to clean up the (new) whitespace issues in the yaml file. After that, we can squash things and then get reviews before dealing with the other things.

phlogistonjohn commented 1 year ago

Oh, and you'll probably want to look at my current changes and provide feedback on those too. :-)

obnoxxx commented 1 year ago

@phlogistonjohn wrote:

Oh, and you'll probably want to look at my current changes and provide feedback on those too. :-)

The additional patches look good to me, thanks!

I don't see the whitespace problem in the yaml yet. feel free to fix it in the PR directly .

obnoxxx commented 1 year ago

@dmulder - FYI: this PR adds (among other things) the testing of opensuse builds to the CI. It has already uncovered one issue with the image(s): a missin /etc/nsswitch.conf file. we work around this with 2d5dacb6d403630f9c44e81232621f70f9b1eb1c. I'd appreciate if you could take a look and let us know what you think about this approach ...

obnoxxx commented 1 year ago

@synarete wrote:

Commit message has a type: "thetest" instead of "the test". Plus, there is redundant white space before "test-server".

thanks, I fixed those.

Consider using vim as you git-commit editor and add autocmd FileType gitcommit setlocal spell to your .vimrc. This will catch those kind of errors upon commit.

thanks for the hint. I might try that.

dmulder commented 1 year ago

It has already uncovered one issue with the image(s): a missin /etc/nsswitch.conf file. we work around this with 2d5dacb.

I also encountered that issue, which is the reason for the glibc dependency (it owns/provides /etc/nsswitch.conf, or did anyway). Maybe that has changed in a recent Tumbleweed snapshot.

obnoxxx commented 1 year ago

@dmulder wrote:

It has already uncovered one issue with the image(s): a missing /etc/nsswitch.conf file. we work around this with 2d5dacb.

I also encountered that issue, which is the reason for the glibc dependency (it owns/provides /etc/nsswitch.conf, or did anyway). Maybe that has changed in a recent Tumbleweed snapshot.

Thanks for looking at this, @dmulder. And since you are aware of the issue and the root cause, do you suggest a different/better fix or workaround?

obnoxxx commented 1 year ago

This PR is in a somewhat special situation because of the following chicken-and-egg problem:

so since automatic merging and merge-ability is difficult to achieve or at least undesirable, the path forward seems to be to get two approvals and manually merge with adminitrative override privileges an change branch protection and mergify config after that.

phlogistonjohn commented 1 year ago

I'd be happy to perform the merge. We just need the approvals. Since it's already late for some of the team we may not get them today, but let's try to get them by tomorrow!