pulumi/cmd/pulumi-test-language/testdata
Fraser Waters c7ed4024ff Support for integers on the wire and state protocol
An exploration into how we could support int64 as well as float64 as a
first class type in Pulumi.

There's some inherit trickiness with this because we use JSON in a few
places, state files most obviously but `PropertyValue` on the wire is
using the protobuf `Struct` and `Value` types which are just mappings to
JSON as well.

JSON doesn't have an int64 type, and while the Go JSON marshaller can
read/write int64s it's not a great behaviour to rely on given mixed
support for that across languages. Further the protobuf `Value` type
only supports float64s.

So we support integers similar to our other special types (like assets)
and wrap them in an object with a special signature field. The value
itself is either a number (if it can safely roundtrip to float64 and
back again) or a string.

Providers, SDKs and the engine communicate support for integers via
`AcceptsIntegers` fields in their interfaces (or similar). When
transmitting to a peer that doesn't support integers (e.g. an old SDK,
or old provider) all integer values are mapped back to standard number
values.

As this changes the serialisation of property values in the state file
it will trigger errors if old engines try to load a state file
containing integers.
2024-08-23 13:36:45 +01:00
..
internal-bad-schema Parse conformance programs to decide which packages are needed for SDKs (#16872) 2024-08-05 12:07:06 +00:00
l1-builtin-info Add an `organization` intrinsic to PCL (#16948) 2024-08-19 03:58:19 +00:00
l1-empty Add matrix testing (#13705) 2023-09-13 15:17:46 +00:00
l1-main/subdir Add asset/archive to conformance tests and fix engine working dir issues (#16100) 2024-05-02 11:32:54 +00:00
l1-output-array Add array conformance test (#15899) 2024-04-10 16:00:24 +00:00
l1-output-bool Add matrix testing (#13705) 2023-09-13 15:17:46 +00:00
l1-output-number Use exact IEEE double min and max values in output test (#16943) 2024-08-12 14:46:41 +00:00
l1-output-string Test string outputs in conformance tests (#15823) 2024-03-29 14:24:29 +00:00
l1-stack-reference Add StackReference conformance test (#15935) 2024-04-16 11:13:25 +00:00
l2-destroy Allow multiple updates in a single conformance test (#15504) 2024-03-01 12:20:12 +00:00
l2-engine-update-options allow engine options to be passed in conformance tests (#15496) 2024-02-23 12:47:02 +00:00
l2-explicit-provider Add explict provider test to conformance tests (#16362) 2024-06-11 14:56:08 +00:00
l2-failed-create-continue-on-error Implement up --continue-on-error (#15740) 2024-04-22 11:12:45 +00:00
l2-invoke-simple Add a conformance test for invokes (#16867) 2024-08-05 04:32:07 +00:00
l2-invoke-variants Add a conformance test for invokes (#16867) 2024-08-05 04:32:07 +00:00
l2-large-string Add large string conformance test (#16034) 2024-04-25 08:14:34 +00:00
l2-resource-alpha Conformance test for provider pre-release versions (#16498) 2024-06-29 10:07:14 +00:00
l2-resource-asset-archive Add conformance tests for remote assets (#16467) 2024-07-03 09:03:24 +00:00
l2-resource-config Ensure internal provider state doesn't clash with user config (#16837) 2024-07-30 12:22:32 +00:00
l2-resource-long Support for integers on the wire and state protocol 2024-08-23 13:36:45 +01:00
l2-resource-primitives Add a test of sending primitive values for a resource (#16718) 2024-07-22 21:13:11 +00:00
l2-resource-simple Add matrix testing (#13705) 2023-09-13 15:17:46 +00:00
l2-target-up-with-new-dependency Make sure non-targeted resources are not updated (#15476) 2024-03-05 07:49:11 +00:00
snapshots Support for integers on the wire and state protocol 2024-08-23 13:36:45 +01:00
snapshots_bad Test GetDependencies and library versions in conformance testing (#15324) 2024-02-06 12:38:44 +00:00
snapshots_edit Add snapshot edit facilities to conformance testing (#15747) 2024-03-21 15:26:58 +00:00
snapshots_runtime_options/projects/l1-empty Test runtime options in conformance tests (#15288) 2024-01-29 07:32:11 +00:00