diff --git a/.github/workflows/builders/ubuntu/artifact.sh b/.github/workflows/builders/ubuntu/artifact.sh index 4df05041e1f756..67dc5da9bbe2c9 100644 --- a/.github/workflows/builders/ubuntu/artifact.sh +++ b/.github/workflows/builders/ubuntu/artifact.sh @@ -4,7 +4,7 @@ echo -e "$hr\nWHOAMI\n$hr" whoami echo $HOME id -exit 0 + echo -e "$hr\nPROJECT CONFIG\n$hr" gcloud config list --all diff --git a/.google/cloudbuild.yaml b/.google/cloudbuild.yaml index 70154ab7419f17..4571b229bd185b 100644 --- a/.google/cloudbuild.yaml +++ b/.google/cloudbuild.yaml @@ -26,7 +26,7 @@ options: substitutions: _INIT: .google/cloud/builders/__init__ - _VERSION: v1-1911152338-5174b2d8e66d49dbbc0de4acaa262917-gcp + _VERSION: v1-1911161942-24bba1de4eb94164a6d0e61595a316b8-gcp timeout: 300s tags: ['$_PR_NUMBER', '$_REPO_OWNER', '$_REPO', '$_SHA'] diff --git a/test/fixtures/three.graphql/build.js b/test/fixtures/three.graphql/build.js index 171c86a3b76f12..4641d7b6d136d9 100644 --- a/test/fixtures/three.graphql/build.js +++ b/test/fixtures/three.graphql/build.js @@ -37946,7 +37946,7 @@ function serializeFloat(value) { } if (!(0, _isFinite.default)(num)) { - throw new TypeError("Float cannot represent non numeric value: ".concat((0, _inspect.default)(value))); + return null; } return num; @@ -37954,7 +37954,7 @@ function serializeFloat(value) { function coerceFloat(value) { if (!(0, _isFinite.default)(value)) { - throw new TypeError("Float cannot represent non numeric value: ".concat((0, _inspect.default)(value))); + return null; } return value; diff --git a/test/fixtures/three.graphql/package.json b/test/fixtures/three.graphql/package.json index 823578859b4702..a44f54a48f70d7 100644 --- a/test/fixtures/three.graphql/package.json +++ b/test/fixtures/three.graphql/package.json @@ -28,11 +28,6 @@ "react": "^16.11.0", "react-dom": "^16.11.0" }, - "repository": { - "type": "git", - "url": "https://github.com/chetabahana/node", - "source": "https://github.com/jwerle/three.graphql" - }, "scripts": { "preinstall": "bash scripts/preinstall.sh", "install": "bash scripts/install.sh", @@ -42,5 +37,10 @@ "editor": "npm run build:editor && budo", "build:editor": "bash scripts/build.sh", "test": "bash scripts/test.sh" + }, + "repository": { + "type": "git", + "url": "https://github.com/chetabahana/node", + "source": "https://github.com/jwerle/three.graphql" } } diff --git a/test/fixtures/three.graphql/scripts/audit.sh b/test/fixtures/three.graphql/scripts/audit.sh index ab5267b56ccccd..2328d72b81e940 100644 --- a/test/fixtures/three.graphql/scripts/audit.sh +++ b/test/fixtures/three.graphql/scripts/audit.sh @@ -4,9 +4,10 @@ npm audit fix echo -e "\n$hr\nRESOLVE VERSION\n$hr" - # Resolving: Cannot use GraphQLSchema "[object Object]" from another module or realm. +# https://github.com/matthewmueller/graph.ql/blob/master/package.json # https://github.com/apollographql/react-apollo/issues/742#issuecomment-338366662 +echo Resolving a duplicate version of graphql and use one version only: find node_modules -name graphql grep version node_modules/graphql/package.json rm -rf node_modules/graph.ql/node_modules/graphql diff --git a/test/fixtures/three.graphql/scripts/build.sh b/test/fixtures/three.graphql/scripts/build.sh index a739e0a484181b..609b53afc882d1 100644 --- a/test/fixtures/three.graphql/scripts/build.sh +++ b/test/fixtures/three.graphql/scripts/build.sh @@ -3,6 +3,10 @@ # Run browserify browserify editor.js -t brfs -o build.js -# Resolving: TypeError -SED_ERROR='throw new TypeError("\([a-zA-Z0-9]*\) cannot represent non-integer value: ".concat((0, _inspect.default)(value)))' +# Resolving: TypeError Int cannot represent non-integer value +SED_ERROR='throw new TypeError("\Int cannot represent non-integer value: ".concat((0, _inspect.default)(value)))' +sed -i "s/$SED_ERROR/return null/g" build.js + +# Resolving: Variable "$width" got invalid value NaN; Expected type Float. Float cannot represent non numeric value: NaN +SED_ERROR='throw new TypeError("Float cannot represent non numeric value: ".concat((0, _inspect.default)(value)))' sed -i "s/$SED_ERROR/return null/g" build.js