-
Notifications
You must be signed in to change notification settings - Fork 205
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
Darwin M1 Support #13401
Merged
Merged
Darwin M1 Support #13401
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
1eabe95
Update rules_nixpkgs and rules_sh
aherrmann 86c917f
Patch rules_nixpkgs to detect ARM M1
aherrmann 81c7a8a
Patch rules_haskell for ARM M1 compatibility
aherrmann e1296bc
Detect Darwin M1 in os_info.bzl
aherrmann 63cf7ce
Use the new rules_nixpkgs host platform
aherrmann fdeb36a
Import the Go toolchain from rules_nixpkgs
aherrmann e24d4bb
Update nodejs to version 16
aherrmann c3ed752
Disable Haddock on lsp-types
aherrmann f1be146
Disable create-daml-app tests on MacOS M1
aherrmann b10612b
Resign binaries after patching in package-app
aherrmann 68b11f2
Use GHC with LLVM on MacOS M1
aherrmann fb3ecdc
Update the CC toolchain for MacOS M1 compatibility
aherrmann 9640cc6
Link libc++ in fat_cc_library on MacOS
aherrmann f939e3c
Build on native ARM M1 instead of Rosetta
aherrmann 15ecb85
Drop unused ghcLLVMWrapper
aherrmann 5539f75
Select ghcWithLLVM within Nix
aherrmann c0625b4
fmt
aherrmann 3da08a8
Update Node version in compatibility
aherrmann bd053fd
Expose node in PATH in create-daml-app test
aherrmann 2643e6a
Skip create-daml-app compat tests pre 2.0.0
aherrmann c7f67c8
Revert "Skip create-daml-app compat tests pre 2.0.0"
aherrmann 7b7960f
Revert "Expose node in PATH in create-daml-app test"
aherrmann 9161060
Revert "Update Node version in compatibility"
aherrmann afcce40
Keep using NodeJS 14 for the compatibility tests
aherrmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip create-daml-app compat tests pre 2.0.0
changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ```
- Loading branch information
commit 2643e6a9e758f1b9ac5da6b8c14860de5774b4ba
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to proceed with this?
Can we patch or fix the dependency issue, or are these releases incompatible with the more recent NodeJS version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've kept the older NodeJS version for the compat tests specifically for now. This seems to resolve the issue (at least locally, waiting for CI). This gives us the freedom to look into the NodeJS update for the compat tests independently.