Repository navigation
Add cli publish from main and tests against it. - #4208
Conversation
e57652c to
ff1fad9
Compare
|
Quick feedback: please always link a PR to an issue, even if it's part of a larger one or a comment. Helps to quickly get more context. So this is part of: |
That's weird. Indeed I get this manually, but not sure why that one was selected by Poetry then: $ pip install https://files.pythonhosted.org/packages/a6/84/5c3f3ffc4143fa7e208d745d2239d915e74d3709fdbc64c3e98d3fd27e56/black-22.10.0-1fixedarch-cp311-cp311-macosx_11_0_x86_64.whl
ERROR: black-22.10.0-1fixedarch-cp311-cp311-macosx_11_0_x86_64.whl is not a supported wheel on this platform.I could hunt down the issue but black isn't actually needed for tests. I'm going to quickly update your PR to just install test dependencies. |
You're totally right, I forgot to include the wider context, I updated the description with that too now. Appreciate the reminder! 🙏 |
Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Thank you! Looks like it worked: https://github.com/sipsma/dagger/actions/runs/3715971093/jobs/6301916456 |
helderco
left a comment
There was a problem hiding this comment.
LGTM!
Agree that publish.yml has quite a bit of duplication, but don't know how to make it better. Not familiar with GHA. This is one of the reasons why doing CI in dagger is so much better, but here we can't dogfood. 🙂
Signed-off-by: Erik Sipsma <[email protected]>
There was a problem hiding this comment.
I know what a pain this is, but I'm glad that you went through the entire setup and have a replica where you can experiment safely. Having that is super valuable!
FWIW, RELEASE_FQDN is what I was using in GoReleaser Pro to change the publish URL. Here is a screenshot of all the secrets that I have set in my gerhard/dagger fork:
You can see all my past changes & the workflow that I used to check everything in #3486
Looking good, let's get this in and improve via follow-up PRs 👍 🚀

Context: this adds the ability to test the default CLI provisioning codepaths in the SDKs. The change before this only had unit tests that used a local http server pretending to be s3, which is good for quick testing, but given how important this functionality is it's also crucial to be able to test the SDKs against the actual s3 bucket they will be downloading the CLI from. Part of #3830
Major changes:
dagger/main/<commit sha>/dagger_<commit sha>_<os>_<arch>.tar.gz. This matches the paths we use for official releases (just replaces tag w/ commit sha)_INTERNAL_DAGGER_TEST_CLI_URL, but importantly that env var is only interpreted by test code, not actual runtime code, so it's not usable by external users.Tested by setting up corresponding infra + secrets in my fork (s3 bucket, tokens, etc.) and going through releases there. Enormous PITA to setup but extremely valuable ultimately...
Outstanding issues:
Python tests fail on macos with disturbing errors about wheel incompatibility from a dependency when starting the SDK:black-22.10.0-1fixedarch-cp310-cp310-macosx_11_0_x86_64.whl is not a supported wheel on this platform.