revert quicktype bump since for CI issue (#17934)

* enable logging for debugging

* remove node-gyp

* add node-gyp globally before installing deps

* reduce quick type to 10

* revert quicktype and node-gyp changes for CI

* fix unit tests
This commit is contained in:
Chirag Madlani 2024-09-20 19:30:06 +05:30 committed by GitHub
parent 13552a6304
commit b0563ccf98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 1284 additions and 411 deletions

View File

@ -56,10 +56,10 @@ docker compose -f docker/development/docker-compose.yml down
if [[ $skipMaven == "false" ]]; then if [[ $skipMaven == "false" ]]; then
if [[ $mode == "no-ui" ]]; then if [[ $mode == "no-ui" ]]; then
echo "Maven Build - Skipping Tests and UI" echo "Maven Build - Skipping Tests and UI"
mvn -q -DskipTests -DonlyBackend clean package -pl !openmetadata-ui mvn -DskipTests -DonlyBackend clean package -pl !openmetadata-ui
else else
echo "Maven Build - Skipping Tests" echo "Maven Build - Skipping Tests"
mvn -q -DskipTests clean package mvn -DskipTests clean package
fi fi
else else
echo "Skipping Maven Build" echo "Skipping Maven Build"

View File

@ -62,7 +62,7 @@ getTypes(){
for file_with_dir in $(find $tmp_dir -name "*.json" | sed -e "s/${escaped_tmp_dir}//g") for file_with_dir in $(find $tmp_dir -name "*.json" | sed -e "s/${escaped_tmp_dir}//g")
do do
joblist=$(jobs | wc -l) joblist=$(jobs | wc -l)
while [ ${joblist} -ge 30 ] while [ ${joblist} -ge 10 ]
do do
sleep 1 sleep 1
joblist=$(jobs | wc -l) joblist=$(jobs | wc -l)

View File

@ -14,7 +14,7 @@
"scripts": { "scripts": {
"start": "NODE_ENV=development BABEL_ENV=development webpack serve --config ./webpack.config.dev.js --env development", "start": "NODE_ENV=development BABEL_ENV=development webpack serve --config ./webpack.config.dev.js --env development",
"build": "NODE_ENV=production BABEL_ENV=production webpack --config ./webpack.config.prod.js --env production", "build": "NODE_ENV=production BABEL_ENV=production webpack --config ./webpack.config.prod.js --env production",
"preinstall": "cd ../../../../.. && yarn install --frozen-lockfile", "preinstall": "cd ../../../../.. && yarn global add node-gyp && yarn install --frozen-lockfile",
"postinstall": "yarn run build-check", "postinstall": "yarn run build-check",
"pre-commit": "lint-staged --concurrent false", "pre-commit": "lint-staged --concurrent false",
"test": "jest --passWithNoTests --maxWorkers=3 --silent", "test": "jest --passWithNoTests --maxWorkers=3 --silent",

View File

@ -23,7 +23,6 @@ import {
LabelType, LabelType,
State, State,
TagSource, TagSource,
TypeEnum,
} from '../generated/entity/services/databaseService'; } from '../generated/entity/services/databaseService';
import { import {
MessagingService, MessagingService,
@ -80,7 +79,7 @@ export const MOCK_DATABASE_SERVICE: DatabaseService = {
hostPort: 'localhost:1234', hostPort: 'localhost:1234',
credentials: { credentials: {
gcpConfig: { gcpConfig: {
type: TypeEnum.ServiceAccount, type: 'service_account',
projectId: ['projectID'], projectId: ['projectID'],
privateKeyId: 'privateKeyId', privateKeyId: 'privateKeyId',
privateKey: '*********', privateKey: '*********',

View File

@ -11,10 +11,11 @@
"url": "https://github.com/open-metadata/OpenMetadata.git" "url": "https://github.com/open-metadata/OpenMetadata.git"
}, },
"devDependencies": { "devDependencies": {
"quicktype": "^23.0.170" "quicktype": "^17.0.6",
"node-gyp": "^10.0.1"
}, },
"scripts": { "scripts": {
"preinstall": "yarn global add node-gyp", "preinstall": "yarn global add node-gyp",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
} }
} }

1679
yarn.lock

File diff suppressed because it is too large Load Diff