You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We introduced warnings and error handling for mistyped properties in #2000
Unfortunately it is currently quite challenging to test this as we rely on YAML for testing in the bridge and YAML checks types too strictly for this feature. The existing GRPC tests break under PRC.
We should add Python/Typescript tests for this or investigate if it is possible to make YAML less strict.
Example
.
Output of pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
This adds a regression test for the warnings we issue to users when a
property has the wrong type. This could result in panics down the line,
so we need to catch them early.
Testing this in the bridge is currently quite hard as we can't use YAML
for this because it is too strict in type-checking. We only have unit
tests which indirectly test this but these break under PRC.
This was introduced in
pulumi/pulumi-terraform-bridge#1987
original GCP issue:
pulumi/pulumi-terraform-bridge#1979
Bridge issue for integration tests for the feature:
pulumi/pulumi-terraform-bridge#2418
This adds an option to the YAML runtime to disable the type checking.
This is controlled by the `PULUMI_YAML_DISABLE_TYPE_CHECKING`
environment variable.
This is useful for tests where we need to test type mismatches which
could happen in other languages, like Python or Typescript.
Can use some guidance on how to add tests here.
Required for
pulumi/pulumi-terraform-bridge#2418
What happened?
We introduced warnings and error handling for mistyped properties in #2000
Unfortunately it is currently quite challenging to test this as we rely on YAML for testing in the bridge and YAML checks types too strictly for this feature. The existing GRPC tests break under PRC.
We should add Python/Typescript tests for this or investigate if it is possible to make YAML less strict.
Example
.
Output of
pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: