Skip to content

Conversation

@schustmi
Copy link
Contributor

@schustmi schustmi commented Jun 20, 2022

Describe changes

This PR fixes multiple small things I found when writing the GH actions tutorial:

  • Expand file paths during interactive secret registration
  • Fix typo in github example
  • Allow ~ in paths when passing files as secrets
  • Quote pip requirements during docker install
  • Updating stack component now uses pydantic validation

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • If my change requires a change to docs, I have updated the documentation accordingly.
  • If I have added an integration, I have updated the integrations table.
  • I have added tests to cover my changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

@schustmi schustmi requested review from stefannica and strickvl June 20, 2022 11:17
@github-actions github-actions bot added internal To filter out internal PRs and issues bug Something isn't working labels Jun 20, 2022
@schustmi schustmi force-pushed the bugfix/misc-bugfixes branch from 7008d19 to c45834d Compare June 20, 2022 11:18
Copy link
Contributor

@strickvl strickvl left a comment

Choose a reason for hiding this comment

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

Just noticed one inconsistency in here (from before you made the PR). Otherwise looks good to me.

Copy link
Contributor

@stefannica stefannica left a comment

Choose a reason for hiding this comment

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

Nice work !

v = getpass.getpass(f"Secret value for {k}:")
if v:
secret_contents[k] = v
secret_contents[k] = expand_argument_value_from_file(
Copy link
Contributor

Choose a reason for hiding this comment

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

When adding the ability to expand secret values from file contents, I was thinking of also doing it in the interactive mode, but then decided not to, because 1. you can't see what you're typing and 2. you don't get auto-completion to help you to point to an existing file on disk. These reasons make it really error prone to specify a path in interactive mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think it's better to remove it again? I've just without checking expected the interactive version to work the same way and tried copy-pasting the paths there with a prepended @ and got confused when it didn't work, that's why I implemented it.

Comment on lines +648 to +651
new_attributes = {
**component_wrapper.to_component().dict(),
**parsed_args,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice ! :)

@schustmi schustmi merged commit 9aba5f4 into develop Jun 27, 2022
@schustmi schustmi deleted the bugfix/misc-bugfixes branch June 27, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working internal To filter out internal PRs and issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants