Skip to content

ci: SDK Publish Support - #3720

Merged
gerhard merged 6 commits into
dagger:mainfrom
aluzzardi:ci-publish
Nov 8, 2022
Merged

gerhard merged 6 commits into
dagger:mainfrom
aluzzardi:ci-publish

Conversation

@aluzzardi

@aluzzardi aluzzardi commented Nov 7, 2022 •

Copy link
Copy Markdown
Contributor
  • Add publish to SDK interface
    • e.g. mage sdk:python:publish sdk/python/v0.1.0
  • Converted Go publishing from GHA to sdk:go:publish and updated CI

/cc @gerhard @helderco @dolanor @sipsma

Comment thread internal/mage/sdk/python.go Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@helderco @gerhard Filling this up is is all we need for mage sdk:python:publish (plus creating a workflows/publish-python.yml, inspired by the Go one)

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.

Do I send a PR based on this one or do you prefer to include Python right away here?

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.

By the way, I have a working mage sdk:python:publish.

@helderco helderco Nov 8, 2022 •

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.

@gerhard

gerhard commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

Starting to look at this now.

@gerhard
gerhard force-pushed the ci-publish branch 4 times, most recently from a09b3fa to 3a4dc9f Compare November 8, 2022 16:56
@gerhard

gerhard commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

This looks good to me. Once we have the Python SDK tests fixed - @helderco is creating a PR now - this is ready to be merged from my POV.

To check that the changes introduce in this PR work as expected, can we publish a new Go SDK release @aluzzardi @sipsma @shykes?

@helderco

helderco commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

Andrea Luzzardi and others added 6 commits November 8, 2022 17:35
Signed-off-by: Andrea Luzzardi <[email protected]>
Filtering the sdk/go tree may not result in any changes if only this
workflow changes in between runs. We only want to allow a new Go SDK
publish if the commit tagged introduces some changes in the sdk/go path.

Signed-off-by: Gerhard Lazu <[email protected]>
We do not want this to break without us knowing, or diverge from what we
run locally.

Signed-off-by: Gerhard Lazu <[email protected]>
Also fix targetRepo.

Don't make assumptions about how environment variables are set.

Signed-off-by: Gerhard Lazu <[email protected]>

@gerhard gerhard 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.

Merging so that we can continue with #3730, we can address how to check that this works post-merge.

@gerhard
gerhard merged commit 3ce52ca into dagger:main Nov 8, 2022
tags:
- sdk/go/**
paths:
- "sdk/go/**"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just wanted to share context [not important, not urgent, debatable]:

I've been trying to part away from paths based filters, because:

  • Ideally, with dagger, they're not needed (see self-hosted PR where irrelevant jobs run in ~2-3 seconds)
  • local/ci divergence: not the same behavior if you run locally
  • Can't enable GH enforcement since they conditionally come up

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.

Yes, my thinking is along the same lines. We did the same for the Python SDK: https://github.com/dagger/dagger/pull/3743/files

Will catch this in the next refactoring. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants