0xPolygon / kurtosis-cdk

A Kurtosis package that deploys a private, portable, and modular Polygon CDK devnet
https://docs.polygon.technology/cdk
Apache License 2.0
28 stars 43 forks source link

Deployment error observed in new builds #171

Closed Purva-Chaudhari closed 5 days ago

Purva-Chaudhari commented 6 days ago

System information

Ubuntu

Commit id

c347fb1

Tools versions

ubuntu@b3-16-gra11:~/kurtosis-cdk$ ./scripts/tool_check.sh Checking that you have the necessary tools to deploy the Kurtosis CDK package... ✅ kurtosis 0.89.10 is installed, meets the requirement (=0.89). ✅ docker 26.1.3 is installed, meets the requirement (>=24.7).

You might as well need the following tools to interact with the environment... ✅ jq 1.6 is installed. ./scripts/tool_check.sh: line 87: [: (https://github: integer expression expected ❌ yq (https://github.com/mikefarah/yq/) is installed, but only version 3.2 is supported by the package.

Description & steps to reproduce

Wasn't facing this issue few hrs ago, it started coming now, looks like the new build is breaking

There was an error interpreting Starlark code 
Evaluation error: Cannot construct 'read_file' from the provided arguments.
        Caused by: The following argument(s) could not be parsed or did not pass validation: {"src":"Value for 'src' was an empty string. This is disallowed"}
        at [github.com/0xPolygon/kurtosis-cdk/main.star:128:49]: run
        at [github.com/0xPolygon/kurtosis-cdk/observability.star:75:24]: run
        at [github.com/kurtosis-tech/grafana-package/main.star:45:35]: run
        at [0:0]: read_file

Error encountered running Starlark code.

Desired behavior

ubuntu@b3-16-gra11:~/kurtosis-cdk$ kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always .
INFO[2024-07-01T18:09:58Z] Creating a new enclave for Starlark to run inside... 
INFO[2024-07-01T18:10:00Z] Enclave 'cdk-v1' created successfully        
INFO[2024-07-01T18:10:00Z] Executing Starlark package at '/home/ubuntu/kurtosis-cdk' as the passed argument '.' looks like a directory 
INFO[2024-07-01T18:10:00Z] Compressing package 'github.com/0xPolygon/kurtosis-cdk' at '.' for upload 
INFO[2024-07-01T18:10:00Z] Uploading and executing package 'github.com/0xPolygon/kurtosis-cdk' 
There was an error interpreting Starlark code 
Evaluation error: Cannot construct 'read_file' from the provided arguments.
        Caused by: The following argument(s) could not be parsed or did not pass validation: {"src":"Value for 'src' was an empty string. This is disallowed"}
        at [github.com/0xPolygon/kurtosis-cdk/main.star:128:49]: run
        at [github.com/0xPolygon/kurtosis-cdk/observability.star:75:24]: run
        at [github.com/kurtosis-tech/grafana-package/main.star:45:35]: run
        at [0:0]: read_file

Error encountered running Starlark code.

Should not break

What is the severity of this bug?

Critical; I am blocked and Kurtosis CDK is unusable for me because of this bug.

Purva-Chaudhari commented 6 days ago

I have 2 VMS with different repo versions, I am getting same error in both of them.

Purva-Chaudhari commented 6 days ago

https://github.com/kurtosis-tech/grafana-package/commit/f0116be62bef9784eb716885c4595845210e2c87

Not sure if its because of these commits few hrs ago

minhd-vu commented 5 days ago

This has been fixed with https://github.com/0xPolygon/kurtosis-cdk/pull/121.