Hi :wave: With Engin we worked together on pulumi-...
# package-authoring
t
Hi 👋 With Engin we worked together on pulumi-ovh provider. Today I has a trouble in the release github action: https://github.com/scraly/pulumi-ovh/actions/runs/5890976896/job/15977145254 Do you know what is happening? Thanks
l
Hello @thankful-match-46035, I'm Engin's colleague in Belgium. The problem you encounter is probably because you have different versions of these two Pulumi go packages in `provider/go.mod`:
Copy code
<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.78.1
<http://github.com/pulumi/pulumi/pkg/v3|github.com/pulumi/pulumi/pkg/v3> v3.76.1 // indirect
Can you bump
pulumi/pkg
also to
v3.78.1
? Before trying a new release, you can run
make provider
locally, which is the same as GoReleaser executes.
t
Thanks for your answer. I bumped the version and now I have some issues during the `make provider`command:
image.png
image.png
l
I'll check this.
@thankful-match-46035 I can't get it to work either. I'll pick it up with one of our engineers and communicate back when I have more info or results.
t
Ok, thanks
l
In the meantime, @many-telephone-49025 provided you a PR: https://github.com/scraly/pulumi-ovh/pull/19
m
Nice to see @thankful-match-46035 that you get best person to help on this! @limited-rainbow-51650 is the best!
Thanks @limited-rainbow-51650 for the help! the next bottle of Leffe is from me in Toulouse when we visit @thankful-match-46035!
l
I know that area pretty well. Was on holiday in Cazac, Caussade & Orgueil spread over the past years and visited Toulouse as one of our local trips. Toulouse has a very nice atmosphere. Albi as well!
m
So Pulumi Toulouse PUG in autumn! 😍
t
september and october will be “sporty” on my side but november/december why not 😉 we need to think about
m
Let’s get the provider up and running again! As soon as it is release under your orga @thankful-match-46035 i will update my article too
t
I started the process to move to the ovh orga this morning. I’ll take you inform when it will be migrated 🙂 Step one: try to fix the provider in my own orga ^^
m
wow
t
I add to change again “ediri” to “scraly “(my orga on GH) and now I have another error type ^^ https://github.com/scraly/pulumi-ovh/actions/runs/5903758622/job/16014657339
m
There are stuff with my name in?
looks like there are traces of my stuff
or remove this file
in python too
@thankful-match-46035 best thing: remove the sdks in the sdk folder and run
make build
again
t
ok, i’m doing wip 🙂
image.png
m
pulumi ctl is missing
check my dockerfile
t
brew install pulumi/tap/pulumictl added ^^ Now ‘dotnet’ CLI is missing?
m
yes, thats why i use
FROM  --platform=linux/amd64 pulumi/pulumi:3.74.0
this has all sdks in
I don’t know
gitpod
t
i can’t do the same things on gitpod, so i need to install the donet CLI from gitpod-workspace image I tested to start a gitpod env from the pulumi image and it’s not working 😉
l
To remove the generated SDKs, run
make clean
.
t
after a short week-end, the journey continue ^^ Codespace is not working this morning, so i continue on gitpod. i installed donet $ dotnet --version 6.0.413 I executed make clean again and make build and I have another error. Should I use another version of dotnet?
image.png
m
t
it’s what i am doing to right now 🙂 🤞
with no success
m
sure the user location is right?
t
image.png
m
let me try in gitpod
1sec
t
I updated the gitpod dockerfile https://github.com/scraly/pulumi-ovh
m
ok let me rebuild the workspace
gitpod is much slower then DevPod 😄
t
gitpod is slower the first time, not after that
m
ok what is strange
is that you have MSBuild version 17.3.2+561848881
let me parallel check it in devcontainer
looks like an issue with gitpod https://github.com/gitpod-io/gitpod/issues/8901
you may have to check the issues
In DevPod it works fine! Yeah OSS and standard!
t
everyday a new problem 😄 pulumi + briged provider + gitpod = several issues every day for me ^^
m
🤷‍♂️
t
i am trying with devpod 🤞
m
I am not using GitPod so I can’t help with this
t
sure, no problem 🙂
in DevPod, make build is OK so I am tagging again and executing again the gthub action 🙂
m
nice!
and welcome to the new way of Dev Environments 😄
t
fortunately I played with DevPod after Toronto and reviewed the ovh provider written by my colleague ^^
😂
call me “black cat”
m
Special talent! 😄
t
if a company wants to discover all the bugs before the users, I’m here 😂
m
AaaS (Aurelie as a Service)! 🤣
t
😄
Now I have a problem with my nuget API key Should I need to create an organization? (I didn’t create one) What configuration I need to add during the API key/token creation? Thanks 🙂
m
i created an account
thats very quick to do
but I saw you removed dotnet for the moment
t
Yes i removed it in order to see other problems But I don’t understand the issue I created an account, then I created the api key but i have a 403 error
BTW, Have you documented all theses steps to help provider creators? 🙂
m
image.png
thats mine
t
Should i create manually packages before to trigger the gh action?
m
no
it should work
NUGET_PUBLISH_KEY
is set correctly?
And I have as glob
*
you have as glob
*.
t
i changed the glob, I will test again
m
@thankful-match-46035: when you change the Readme you. need to run make build again! https://github.com/scraly/pulumi-ovh/commit/5d53d455f7006d76d547e61919504a1d9d3adae4
Because the README.md is part of the SDKs
and you will get an error message during the publish sdk phase as your workstate is not clean
t
😅 thanks
You hop through all hoops! 😄
t
i’m tired 😄
m
“Normally” it is: • DevPod • call upgrade-provider … • review PR
At least for me
I just setup npmjs and pypi and Nuget once for the API keys. never touched it agine
t
“normally” don’t like me 😄 the change of gh orga + gitpod + api keys create lot of troubles now I am using devpod, so one trouble less ^^ make build in progress
I will have every existing troubles? 😄
m
lol
You honestly take everything with you
Try again never saw this but looks like GH runner are slow
at the moment
t
yes everything is green on gh status but it’s not ^^ runner are not online and/or slower as usual
i will eat and hope the afternoon will be better 😄
victory! Next: play with upgrade-provider and when i’ll have the rights, move to OVH GH orga 🤞
TODO: fix package’s name
npm install @scraly/ovh
->
npm install @scraly/pulumi-ovh
pip install scraly-ovh
->
pip install scraly_pulumi_ovh
and
dotnet add package scraly.Ovh
->
dotnet add package Scraly.PulumiPackage.ovh
The
NODE_MODULE_NAME
variable in the Makefile is never used for node package name?
l
... and reflects in the generated
package.json
here: https://github.com/scraly/pulumi-ovh/blob/main/sdk/nodejs/package.json#L2
t
yes i saw the generated package.json
I don’t understand how to have a package name in npm and other called “pulumi-ovh” instead on only “ovh” (https://www.npmjs.com/package/@scraly/ovh) in others providers (https://www.npmjs.com/package/@lbrlabs/pulumi-grafana) i saw the package in resources/go and Makefile is just “grafana” for example but in npm the package name is “pulumi-grafana”
I’ll try to change in resources.go but if the variable is not used in the Makefile, please remove it
l
One of the shortcomings with non-Pulumi managed providers is keeping the build setup up to date. Engin and I work both on Pulumiverse community providers and we feel that pain too. The internal engineering team has ci-mgmt to consistently roll out changes to all of the build related files (Makefile, GHA workflows, lint configs, ...). Unfortunately, that setup is not reusable at the moment for 3rd parties (Pulumiverse, OVH, ...). It's my personal quest to get that working though.
t
Thanks for the explaination and the support by the way 🙂 With the Terraform change of licensing, I think more and more users will tests Pulumi specially the providers bridges so I think it can be useful to improve the DX and to document clearly everything. It can help a lot of users and help to increase the nb of users and active users.
l
We are more than aware of this. 😄
t
I don’t have any doubt about this ^^
but i know also that when external users say it, it can help more internally 👼
In order to migrate the pulumi-ovh into our ovh organization in GitHub, our internal teams ask me SBOMs with licenses and vulnerabilities I saw in the github action that SBOM are generated but a priori without licenses and vulnerabilities. Do you already had the same need?
m
I was thinking for my providers to add Trivy scan plus generating sarif format results and upload to GH security center! I do this for some of my private projects