Skip to content

wip: feat: add Pulumi support - #1362

Closed
rawkode wants to merge 2 commits into
dagger:mainfrom
rawkode:feat/stdlib-pulumi
Closed

rawkode wants to merge 2 commits into
dagger:mainfrom
rawkode:feat/stdlib-pulumi

Conversation

@rawkode

@rawkode rawkode commented Jan 7, 2022

Copy link
Copy Markdown
Contributor

Still to do:

  • Support Local State
  • Support Python runtime
  • Support dotnet runtime
  • Support go runtime
  • Add test to ensure outputs loaded correctly

@grouville

grouville commented Jan 7, 2022 •

Copy link
Copy Markdown
Member

Hi @rawkode,
Thanks for this PR, it's awesome 😍
Can you please make lint and ammend your commits ? It seems that the linter breaks

@gerhard

gerhard commented Jan 7, 2022 •

Copy link
Copy Markdown
Contributor

What a great first contribution!

What command do you use @rawkode on your end to try this out? My thinking is: how do we enable others to try this out with a simple (single?) command?

I know that you could see this one coming: can you capture the benefit to others in one sentence?

This is very exciting to see!

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@gerhard

gerhard commented Mar 14, 2022 •

Copy link
Copy Markdown
Contributor

Now that 0.2.0 (a.k.a. Europa is out) this will need to be converted to the new Europa config.

I am still unsure if we want to add new packages to universe.dagger.io. We have a bunch of open questions about versioning packages, and linking them to a specific Dagger CUE API. While accepting a new packages is easy, I am unsure about the maintenance work that we will be setting ourselves for given all the upcoming changes.

WDYT @shykes @aluzzardi @samalba?

@rawkode

rawkode commented Mar 14, 2022

Copy link
Copy Markdown
Contributor Author

Just FYI, I was literally looking at this when you commented 😄

I want to progress the Dagger adoption for rawkode/rawkode and it'll need a Pulumi provider.

Should I start fixing this up or is it wasted effort if it needs to live elsewhere?

@gerhard

gerhard commented Mar 14, 2022 •

Copy link
Copy Markdown
Contributor

Just FYI, I was literally looking at this when you commented 😄

💡💡 <- two LED lights switched on at the same time

I want to progress the Dagger adoption for rawkode/rawkode and it'll need a Pulumi provider.

In my mind, the real blocker for rawkode/rawkode is the GitHub Actions Caching support which @TomChv has been digging into for some time now. It turns out that it's a complex Buildkit issue:

Should I start fixing this up or is it wasted effort if it needs to live elsewhere?

Give us a few days to regroup with @shykes @aluzzardi @samalba.

@gerhard gerhard mentioned this pull request Mar 18, 2022
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@shykes

shykes commented Mar 29, 2022

Copy link
Copy Markdown
Contributor

@rawkode it's a high priority for us to help you complete this package successfully. We're trying to balance quantity and quality in Dagger Universe, so are wary of making promises (of stability, freshness, security) without a plan to make good on those promises.

One way forward I would like to experiment with is carving out a space in Universe for you to merge this in the near future and continue iterating with our help, before it is ready to be promoted to "official" with the corresponding guarantees. Perhaps universe.dagger.io/u/rawkode/pulumi ?

I am curious to hear what everyone thinks?

@helderco

Copy link
Copy Markdown
Contributor

One way forward I would like to experiment with is carving out a space in Universe for you to merge this in the near future and continue iterating with our help, before it is ready to be promoted to "official" with the corresponding guarantees. Perhaps universe.dagger.io/u/rawkode/pulumi ?

I like that! Like docker hub.

@aluzzardi

Copy link
Copy Markdown
Contributor

I am curious to hear what everyone thinks?

What about incubator.dagger.io or universe.dagger.io/incubator? Basically a staging area where new packages go before their APIs are stabilized (with the caveat that incubator packages are subject to API changes)

@marcosnils

Copy link
Copy Markdown
Contributor

What about incubator.dagger.io or universe.dagger.io/incubator? Basically a staging area where new packages go before their APIs are stabilized (with the caveat that incubator packages are subject to API changes)

+1 on incubator.dagger.io. If this becomes a thing I guess the next step would be coming up with a lean process on how and when to move from incubator > universe

@shykes

shykes commented Mar 29, 2022

Copy link
Copy Markdown
Contributor

I think as a first step, namespacing by individual developer will allow us to move faster, because we don't need to reconcile competing implementations and experiments. It doesn't close the door to a centralized "incubator" like you propose, but that already requires more work: who owns the namespace, how do we deal with design decisions, priorities etc.

@gerhard gerhard changed the title WIP: feat: add Pulumi support wip: feat: add Pulumi support Mar 30, 2022
@gerhard
gerhard marked this pull request as draft March 30, 2022 13:57
@rawkode

rawkode commented Mar 30, 2022

Copy link
Copy Markdown
Contributor Author

@shykes Do should I move this to my own GitHub? How do I namespace it?

@shykes

shykes commented Apr 1, 2022 •

Copy link
Copy Markdown
Contributor

I propose that we try an experiment with @rawkode as our fearless volunteer :)

  • Let’s create an experimental namespace under universe.dagger.io/x
  • Individual contributors vetted by the Dagger maintainers get co-maintainer privileges to universe.dagger.io/x/<email>. For example I may get universe.dagger.io/x/[email protected], and publish a pulumi package at universe.dagger.io/x/[email protected]/pulumi
  • Only individual email addresses are allowed. This allows continuity of individual ownership across job changes. It also clarifies the fact that these are not officially endorsed packages. For example what I publish in my experimental space is not officially endorsed or guaranteed to work by Dagger; and @rawkode ’s pulumi package is not endorsed by Pulumi even though he works there. I believe this will prevent headaches down the road.

In this particular case @rawkode could you adapt this PR to target your experimental space? Please use an email address that meets the criteria above. If you have any question or concern please let us know.

@dagger/maintainers any thoughts or concerns?

@helderco

helderco commented Apr 1, 2022 •

Copy link
Copy Markdown
Contributor

Is there an advantage to using an email? To many, emails are private. I wouldn't want to use mine. I prefer a simple unique name like a github username: universe.dagger.io/x/rawkode/pulumi.

As I understand this, we're talking only about packages that are candidates to be adopted officially in, e.g., universe.dagger.io/pulumi, correct?

I like the incubator idea above, but I agree, this allows us to move faster for now.

@dolanor

dolanor commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

I agree with Helder here, for privacy and spamming reasons.

@rawkode

rawkode commented Apr 1, 2022

Copy link
Copy Markdown
Contributor Author

Replaced by #1991

@shykes

shykes commented Apr 1, 2022 •

Copy link
Copy Markdown
Contributor

Is there an advantage to using an email? To many, emails are private. I wouldn't want to use mine. I prefer a simple unique name like a github username: universe.dagger.io/x/rawkode/pulumi.

The advantage of using an email is that we can 1) avoid taking responsibility for trust and identity (a difficult and time-consuming problem), and also 2) avoid locking the community into a proprietary trust and identity platform (for example github usernames).

Email privacy is a concern, but it's one that we all deal with already: for example all our open-source git commits have an email address on them. I personally use a separate email address just for that purpose, specifically because I am concerned about privacy.

So in summary:

Email Use another service's usernames (eg. Github) Manage our own usernames
Avoid the work of managing identity & trust ✅ ✅ ❌
Avoid lock-in to a random third-party platform ✅ ❌ ✅
Users don't have to create yet another username ✅ ❓ (depends if they already use that service) ❌
Users can control which email address is public ✅ ✅ ✅
Users never need to publish an email address ❌ ❌ ❌

As I understand this, we're talking only about packages that are candidates to be adopted officially in, e.g., universe.dagger.io/pulumi, correct?

In this case, yes, but not necessarily. You can publish a package without specifically planning for it to become official. You just publish packages, and if it's good material for an official package, we can pull it in.

I like the incubator idea above, but I agree, this allows us to move faster for now.

Yeah we can discuss that one in parallel. I am less immediately excited about a centralized incubator, because it doesn't solve my immediate problem of removing coordination bottlenecks. In a way it creates more work, because now we have to define clear rules for deciding when a package moves out of incubator, what are the different guarantees of each...

@aluzzardi

Copy link
Copy Markdown
Contributor

I also find the use of e-mails in the package path strange. All package ecosystems I'm used to go for usernames.

Also, I think this it's currently working by chance (e.g. CUE forgot to apply stricter rules) -- it doesn't work with Go (invalid char '@'). Since they both share the same package philosophy (and soon the same code for CUE modules), I don't think this will work long term.

@shykes

shykes commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

I agree that it looks strange. But it may just work :) I find the other options to be worse... And most importantly, this is easy to reverse - worst case this turns out to be a stupid idea, and we can find a more suitable import path. Yes it might break imports (although we could redirect) but they are experimental paths to begin with...

TLDR: I can't promise it's not a stupid idea, but I feel like it's our best way forward short term.

@helderco

helderco commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

In this case, yes, but not necessarily. You can publish a package without specifically planning for it to become official. You just publish packages, and if it's good material for an official package, we can pull it in.

My concern with this is that everyone will have every experiment in their projects with project update since it comes with universe.dagger.io. But it’s temporary.

@marcosnils

Copy link
Copy Markdown
Contributor

My concern with this is that everyone will have every experiment in their projects with project update since it comes with universe.dagger.io

that's a good and valid point.

On the other hand, why was this PR closed? 🤔

@rawkode

rawkode commented Apr 6, 2022

Copy link
Copy Markdown
Contributor Author

It was closed because this PR targeted Dagger 0.1. I replaced with #1991

This pull request was closed.
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.

8 participants