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

TestParentDependencies test failing #292

Open
justinvp opened this issue Oct 3, 2022 · 0 comments
Open

TestParentDependencies test failing #292

justinvp opened this issue Oct 3, 2022 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec language/javascript

Comments

@justinvp
Copy link
Member

justinvp commented Oct 3, 2022

2022-10-03T16:35:29.9532124Z --- FAIL: TestParentDependencies (44.09s)
2022-10-03T16:35:29.9533323Z     --- FAIL: TestParentDependencies//tmp/test-env1822175862/policy-pack (8.03s)
2022-10-03T16:35:29.9534440Z         --- FAIL: TestParentDependencies//tmp/test-env1822175862/policy-pack/scenario_1 (7.20s)
2022-10-03T16:35:29.9535400Z         environment.go:170: Running command pulumi destroy --yes
2022-10-03T16:35:29.9536332Z     --- FAIL: TestParentDependencies//tmp/test-env1822175862/policy-pack-python (4.32s)
2022-10-03T16:35:29.9537446Z         --- FAIL: TestParentDependencies//tmp/test-env1822175862/policy-pack-python/scenario_1 (3.48s)
2022-10-03T16:35:29.9538391Z         environment.go:170: Running command pulumi destroy --yes

Node:

2022-10-03T16:35:16.6593635Z === RUN   TestParentDependencies//tmp/test-env1822175862/policy-pack
2022-10-03T16:35:16.6595164Z === RUN   TestParentDependencies//tmp/test-env1822175862/policy-pack/scenario_1
2022-10-03T16:35:16.6596182Z     integration_test.go:206: Running command pulumi config set scenario 1
2022-10-03T16:35:16.8009929Z     integration_test.go:243: No errors are expected.
2022-10-03T16:35:16.8122624Z     integration_test.go:244: Running command pipenv run pulumi up --yes --policy-pack /tmp/test-env1822175862/policy-pack
2022-10-03T16:35:23.8547516Z     integration_test.go:244: Ran command pipenv args [run pulumi up --yes --policy-pack /tmp/test-env1822175862/policy-pack] and expected success. Instead got failure.
2022-10-03T16:35:23.8548781Z     integration_test.go:244: Run Error: exit status 255
2022-10-03T16:35:23.8550080Z     integration_test.go:244: STDOUT: Previewing update (parent_dependencies-14885):
2022-10-03T16:35:23.8550802Z         
2022-10-03T16:35:23.8552646Z          +  pulumi:pulumi:Stack parent_dependencies-parent_dependencies-14885 create 
2022-10-03T16:35:23.8553452Z          +  pulumi-nodejs:dynamic:Resource a create 
2022-10-03T16:35:23.8554143Z          +  pulumi-nodejs:dynamic:Resource parent create 
2022-10-03T16:35:23.8554812Z          +  pulumi-nodejs:dynamic:Resource b create 
2022-10-03T16:35:23.8555378Z          +  random:index:RandomString str create 
2022-10-03T16:35:23.8604638Z          +  pulumi-nodejs:dynamic:Resource child create 
2022-10-03T16:35:23.8651251Z          +  random:index:RandomPet pet create 
2022-10-03T16:35:23.8652588Z          +  pulumi:pulumi:Stack parent_dependencies-parent_dependencies-14885 create error: Error validating stack with policy validate-stack:
2022-10-03T16:35:23.8653658Z          +  pulumi:pulumi:Stack parent_dependencies-parent_dependencies-14885 create 1 error
2022-10-03T16:35:23.8654107Z          
2022-10-03T16:35:23.8654405Z         Diagnostics:
2022-10-03T16:35:23.8655214Z           pulumi:pulumi:Stack (parent_dependencies-parent_dependencies-14885):
2022-10-03T16:35:23.8656078Z             error: Error validating stack with policy validate-stack:
2022-10-03T16:35:23.8656877Z             AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
2022-10-03T16:35:23.8657449Z             + actual - expected
2022-10-03T16:35:23.8657759Z             
2022-10-03T16:35:23.8658049Z             + {
2022-10-03T16:35:23.8658520Z             +   asType: [Function: asType],
2022-10-03T16:35:23.8658976Z             +   dependencies: [],
2022-10-03T16:35:23.8659474Z             +   isType: [Function: isType],
2022-10-03T16:35:23.8660278Z             +   name: 'parent_dependencies-parent_dependencies-14885',
2022-10-03T16:35:23.8660780Z             +   opts: {
2022-10-03T16:35:23.8661295Z             +     additionalSecretOutputs: [],
2022-10-03T16:35:23.8661746Z             +     aliases: [],
2022-10-03T16:35:23.8662202Z             +     customTimeouts: {
2022-10-03T16:35:23.8662665Z             +       createSeconds: 0,
2022-10-03T16:35:23.8663129Z             +       deleteSeconds: 0,
2022-10-03T16:35:23.8663914Z             +       updateSeconds: 0
2022-10-03T16:35:23.8664275Z             +     },
2022-10-03T16:35:23.8664706Z             +     ignoreChanges: [],
2022-10-03T16:35:23.8665141Z             +     protect: false
2022-10-03T16:35:23.8665460Z             +   },
2022-10-03T16:35:23.8665935Z             +   propertyDependencies: {},
2022-10-03T16:35:23.8666343Z             +   props: {},
2022-10-03T16:35:23.8666935Z             +   type: 'pulumi:pulumi:Stack',
2022-10-03T16:35:23.8668424Z             +   urn: 'urn:pulumi:parent_dependencies-14885::parent_dependencies::pulumi:pulumi:Stack::parent_dependencies-parent_dependencies-14885'
2022-10-03T16:35:23.8668955Z             + }
2022-10-03T16:35:23.8669340Z             - undefined
2022-10-03T16:35:23.8670220Z                 at validate (/tmp/test-env1822175862/policy-pack/index.ts:27:20)
2022-10-03T16:35:23.8671463Z                 at Object.validateStack (/tmp/test-env1822175862/policy-pack/index.ts:14:21)
2022-10-03T16:35:23.8672735Z                 at Object.<anonymous> (/home/runner/.pulumi-dev/node_modules/@pulumi/policy/server.js:356:49)
2022-10-03T16:35:23.8673421Z                 at Generator.next (<anonymous>)
2022-10-03T16:35:23.8674384Z                 at /home/runner/.pulumi-dev/node_modules/@pulumi/policy/server.js:21:71
2022-10-03T16:35:23.8675015Z                 at new Promise (<anonymous>)
2022-10-03T16:35:23.8676092Z                 at __awaiter (/home/runner/.pulumi-dev/node_modules/@pulumi/policy/server.js:17:12)
2022-10-03T16:35:23.8677345Z                 at Object.analyzeStack (/home/runner/.pulumi-dev/node_modules/@pulumi/policy/server.js:261:16)
2022-10-03T16:35:23.8678773Z                 at handleUnary (/home/runner/.pulumi-dev/node_modules/@pulumi/policy/node_modules/@grpc/grpc-js/src/server.ts:925:11)
2022-10-03T16:35:23.8680352Z                 at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-10-03T16:35:23.8680758Z          
2022-10-03T16:35:23.8681019Z         
2022-10-03T16:35:23.8681353Z         Policy Packs run:
2022-10-03T16:35:23.8701243Z             Name                                    Version
2022-10-03T16:35:23.8703389Z              (/tmp/test-env1822175862/policy-pack)  (local)
2022-10-03T16:35:23.8703748Z         
2022-10-03T16:35:23.8704165Z     integration_test.go:244: STDERR: 
2022-10-03T16:35:24.6856955Z === CONT  TestParentDependencies//tmp/test-env1822175862/policy-pack
2022-10-03T16:35:24.6858784Z     integration_test.go:40: Aborting test as a result of unrecoverable error.

Python:

2022-10-03T16:35:24.6860048Z === RUN   TestParentDependencies//tmp/test-env1822175862/policy-pack-python
2022-10-03T16:35:24.6861296Z === RUN   TestParentDependencies//tmp/test-env1822175862/policy-pack-python/scenario_1
2022-10-03T16:35:24.6863128Z     integration_test.go:206: Running command pulumi config set scenario 1
2022-10-03T16:35:24.8179300Z     integration_test.go:243: No errors are expected.
2022-10-03T16:35:24.8183081Z     integration_test.go:244: Running command pipenv run pulumi up --yes --policy-pack /tmp/test-env1822175862/policy-pack-python
2022-10-03T16:35:28.1708599Z     integration_test.go:244: Ran command pipenv args [run pulumi up --yes --policy-pack /tmp/test-env1822175862/policy-pack-python] and expected success. Instead got failure.
2022-10-03T16:35:28.1709771Z     integration_test.go:244: Run Error: exit status 255
2022-10-03T16:35:28.1710670Z     integration_test.go:244: STDOUT: Previewing update (parent_dependencies-14885):
2022-10-03T16:35:28.1711894Z         
2022-10-03T16:35:28.1712842Z          +  pulumi:pulumi:Stack parent_dependencies-parent_dependencies-14885 create 
2022-10-03T16:35:28.1713685Z          +  pulumi-nodejs:dynamic:Resource a create 
2022-10-03T16:35:28.1714451Z          +  pulumi-nodejs:dynamic:Resource parent create 
2022-10-03T16:35:28.1715223Z          +  pulumi-nodejs:dynamic:Resource b create 
2022-10-03T16:35:28.1715843Z          +  random:index:RandomString str create 
2022-10-03T16:35:28.1716584Z          +  pulumi-nodejs:dynamic:Resource child create 
2022-10-03T16:35:28.1717561Z          +  random:index:RandomPet pet create 
2022-10-03T16:35:28.1718769Z          +  pulumi:pulumi:Stack parent_dependencies-parent_dependencies-14885 create error: Exception calling application: 
2022-10-03T16:35:28.1720330Z          +  pulumi:pulumi:Stack parent_dependencies-parent_dependencies-14885 create 1 error
2022-10-03T16:35:28.1720840Z          
2022-10-03T16:35:28.1721231Z         Diagnostics:
2022-10-03T16:35:28.1722111Z           pulumi:pulumi:Stack (parent_dependencies-parent_dependencies-14885):
2022-10-03T16:35:28.1722849Z             error: Exception calling application: 
2022-10-03T16:35:28.1723263Z          
2022-10-03T16:35:28.1723597Z         
2022-10-03T16:35:28.1724011Z         Policy Packs run:
2022-10-03T16:35:28.1724687Z             Name                                           Version
2022-10-03T16:35:28.1725727Z              (/tmp/test-env1822175862/policy-pack-python)  (local)
2022-10-03T16:35:28.1726162Z         
2022-10-03T16:35:28.1726633Z     integration_test.go:244: STDERR: 
2022-10-03T16:35:29.0041346Z === CONT  TestParentDependencies//tmp/test-env1822175862/policy-pack-python
2022-10-03T16:35:29.0042655Z     integration_test.go:40: Aborting test as a result of unrecoverable error.
@justinvp justinvp added kind/bug Some behavior is incorrect or out of spec language/javascript labels Oct 3, 2022
@justinvp justinvp changed the title TestResourceOptions test failing TestParentDependencies test failing Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec language/javascript
Projects
None yet
Development

No branches or pull requests

1 participant