New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSWin32 compatibility and test portability #47
Conversation
11d7627
to
7d5a914
Compare
@calid, do you have a chance to look at this? |
Hi @calid, is there anything else you would like to see for this PR? |
Hi @zmughal I'm helping maintain this now. Can you have a look at https://github.com/zeromq/perlzmq/runs/4348450971?check_suite_focus=true Thanks. |
Hello @ghenry, thank you for taking a look. That is due to my adding of another Dist::Zilla plugin (https://metacpan.org/pod/Dist::Zilla::Plugin::DynamicPrereqs so that What I can do in a commit is update that CI workflow to install the missing deps so that it passes, but at some point a new Docker image will need to be used. |
@ghenry |
Thanks. I'll look to update the images tomorrow evening. |
sounds good, I can either add your docker id as a collaborator on the existing docker hub repos, or you can just change to your own, whichever you prefer |
Cool. Can you add sentrypeer user in as that's the only one I've set up on DH so far. |
added, let me know if any issues |
9286f4c
to
b9cf0f7
Compare
Sorry, let me keep that user clean. I have https://hub.docker.com/u/gavinhenry too. Could you swap when you get a sec? Thanks. |
4a3c1f8
to
a4f595c
Compare
Done! |
a4f595c
to
8ee1efe
Compare
- Use standard ZMQ DLL name for MSWin32. - Add test helper library for determining platform capabilities for testing. - Only use test dependency `Sys::SigAction` on non-MSWin32. - Skip tests that use `fork(2)` on MSWin32. - Skip tests for `get_fd()` as this is currently only implemented for Unix-likes.
The `zmq_ipc(7)` protocol is implemented using Unix domain sockets (which are not available on MSWin32). On platforms with Unix domain sockets, use `ipc://` and use `inproc://` elsewhere.
8ee1efe
to
96cc5f5
Compare
Updating Docker images now. |
What's the workflow for getting/setting a version for docker-build and docker-push scripts? |
Should get time for this tonight/tomorrow. Thanks for all the pointers! |
Running this now:
but I'm being dumb. What is |
Failure :-(
|
it's just a helper script at the top level of the repo https://github.com/zeromq/perlzmq/blob/master/docker-run there's also docker-shell |
This looks like something is misconfigured or typo'd somewhere... I would maybe checkout before the recent PR's and try a build to confirm if it's something in the recent changes |
Idiot! I should have spotted that. Will try again. Thanks. |
Everything is failing due to Dist::Zilla::Plugin::DynamicPrereqs not being installed for whats in dist.ini What's the best way to add this? Inside Dockerfile via cpanm? |
yeah, fire up a shell inside the docker container (docker-shell helper), fixup dependencies as you would normally using standard commands, get everything in a happy state, and then cut/publish an image once things look good. And in case it wasn't obvious, the only difference between the docker-shell and docker-release-shell helpers is the release shell bind mounts .ssh and other directories needed for push permissions... hence I wouldn't use it when creating vanilla images for any contributor to use, and just for doing an actual release |
Cool, thanks. Will do in the morning.
|
Sorry about the delay. I did get a shell on this image and install the dep, but still failing to build. Will dig in more. |
Cool. Thanks. I'll check it out today. |
Hello @ghenry, were you able to make some progress on this release? I would like to use it to switch the dependencies of |
A MetaCPAN release? |
Yes, an upload to CPAN. Should be just (from a clean checkout):
./scripts/docker-build 1.18 && ./scripts/docker-push 1.18
./scripts/docker-release-shell
dzil build && cpanm --installdeps ./ZMQ-FFI-1.18.tar.gz && dzil release Also, if you get a chance, could you review #50? |
Running now.
|
Docker Hub updated! Whoot Whoot!!!!
|
Ah, that happens when you do not have a Run this outside the Docker touch ~/.gitconfig and then re-run the Docker release shell. |
Actually, better than empty one would be one with your author and e-mail info: https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration. |
Make sure all of these exist on the host: https://github.com/zeromq/perlzmq/blob/master/scripts/docker-release-shell
|
@ghenry, did setting up the dotfiles work on your end? |
Trying again today. |
Running better now. Issue was I had to us "sudo" so it was looking for
all those files in /root/.* not my normal user.
|
Cool. Just sorting my PAT for GitHub:
https://metacpan.org/release/GHENRY/ZMQ-FFI-1.18
|
Sorted the git push now. All ready for next time now!
Thanks for your prompts and patience Zaki. Much appreciated.
|
Excellent! Thank you! |
You might want to also do:
because I don't see a tag for 1.18 yet https://github.com/zeromq/perlzmq/tags. |
Done. Oops.
|
This PR replaces #44.