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

chore(ci): update runner size #506

Merged
merged 5 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,28 +87,3 @@ runs:
echo "SCCACHE_REGION=us-east-2" >> $GITHUB_ENV
echo "SCCACHE_S3_KEY_PREFIX=bendsql/sccache/" >> $GITHUB_ENV
echo "SCCACHE_S3_USE_SSL=true" >> $GITHUB_ENV

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Yarn
shell: bash
run: |
if ! command -v yarn &> /dev/null
then
echo "Yarn not found, installing..."
npm install --global yarn
else
echo "Yarn is already installed"
fi

- name: Install Frontend
working-directory: frontend
shell: bash
run: |
rm -rf ../cli/frontend
mkdir -p ../cli/frontend
yarn config set network-timeout 600000 # Increase network timeout for reliability
yarn install && yarn build && mv build ../cli/frontend/
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

integration:
needs: check
runs-on: [self-hosted, Linux, X64, 4c8g, aws]
runs-on: [self-hosted, Linux, X64, 2c8g, aws]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
Expand All @@ -59,8 +59,8 @@ jobs:
cache-key: integration
- name: Get License from S3
run: |
aws s3 cp s3://databend-ci/misc/license.key license.key
aws s3 cp s3://databend-ci/misc/license.json license.json
aws s3 cp s3://databend-ci/misc/license-trial.key license.key
aws s3 cp s3://databend-ci/misc/license-trial.json license.json
cat license.json
echo "QUERY_DATABEND_ENTERPRISE_LICENSE=$(cat license.key)" >> $GITHUB_ENV
- run: make -C tests test-core
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Frontend

on:
pull_request:
branches:
- main
paths:
- "frontend/**"
- ".github/workflows/frontend.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"

- run: corepack enable

- name: Install dependencies
working-directory: frontend/
run: |
yarn install --immutable

- name: Build
working-directory: frontend/
run: |
yarn build
1 change: 0 additions & 1 deletion cli/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ async fn embed_file(path: web::Path<String>) -> HttpResponse {
}

static PERF_ID: AtomicUsize = AtomicUsize::new(0);

static APP_DATA: Lazy<Arc<Mutex<HashMap<usize, String>>>> =
Lazy::new(|| Arc::new(Mutex::new(HashMap::new())));

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13"
},
"packageManager": "[email protected].19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
"packageManager": "[email protected].21+sha512.ca75da26c00327d26267ce33536e5790f18ebd53266796fbb664d2a4a5116308042dd8ee7003b276a20eace7d3c5561c3577bdd71bcb67071187af124779620a"
}