Skip to content
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

Remove unused sshPrivateKey config #1176

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Remove unused sshPrivateKey config #1176

merged 1 commit into from
Dec 9, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Nov 27, 2024

Only the Docker provider uses the webfactory/ssh-agent action, and that's configured via preTest instead of the special-purpose sshPrivateKey option.

Nothing else appears to use this, so we can remove it.

Copy link
Member

@danielrbradley danielrbradley left a comment

Choose a reason for hiding this comment

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

In order to make the test job a shared workflow, the biggest blocker is the arbitary hooks (including pretest). The sshPrivateKey option was added as stop-gap solution to allow us to remove preTest in all providers.

PR introducing these options:

Unfortunately, having merged the preparation work, CI got de-prioritised and so the provider changes have not all been make to let us drop preTest.

I still think that getting rid of preTest is the right direction to be able to get the testing job as a reusable workflow. Perhaps worth a quick sync call on this to see if there's any other options.

@blampe
Copy link
Contributor Author

blampe commented Dec 7, 2024

@danielrbradley yeah that all sounds good. We can do this SSH setup in the docker tests directly, that way it won't need this hook or any other pretest stuff.

Edit: pulumi/pulumi-docker#1300

Copy link
Member

@danielrbradley danielrbradley left a comment

Choose a reason for hiding this comment

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

Great - happy with this now we've got a route to removing the preTest hook via pulumi/pulumi-docker#1300

@blampe blampe added this pull request to the merge queue Dec 9, 2024
Merged via the queue into master with commit 49c955f Dec 9, 2024
6 checks passed
@blampe blampe deleted the blampe/ssh-key branch December 9, 2024 08:54
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.

2 participants