Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Jul 8, 2024
2 parents 0726fd1 + 496d3a3 commit d71ee2b
Show file tree
Hide file tree
Showing 1,734 changed files with 75,114 additions and 43,018 deletions.
9 changes: 7 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ rustflags = [
[target.'cfg(all())']
rustflags = ["--cfg", "tokio_unstable"]

[unstable]
lints = true
# We have large git dependencies. This can make cloning faster.
# https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git
# Actually we also want to prevent submodule cloning completely
# https://github.com/rust-lang/cargo/issues/4247
[unstable.git]
shallow_index = true
shallow_deps = true
2 changes: 1 addition & 1 deletion .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"color": "B60205"
},
"CHECKS": {
"regexp": "^(cherry pick|cherry-pick)?(| )+(feat|fix|test|refactor|chore|style|doc|perf|build|ci|revert|deprecate)(\\(.*\\))?:.*",
"regexp": "^(cherry pick|cherry-pick)?(| |:|: )+(feat|fix|test|refactor|chore|style|doc|perf|build|ci|revert|deprecate)(\\(.*\\))?:.*",
"ignoreLabels" : ["ignore-title"]
},
"MESSAGES": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Update Helm Charts and Risingwave Operator on New Release

on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'release version'
required: true

env:
NEW_APP_VERSION: ${{ github.event.inputs.version || github.event.release.tag_name }}

jobs:
update-helm-charts:
runs-on: ubuntu-latest
steps:
- name: Checkout Helm Charts Repository
uses: actions/checkout@v3
with:
repository: 'risingwavelabs/helm-charts'
token: ${{ secrets.PR_TOKEN }}
path: 'helm-charts'

- name: Update values.yaml
run: |
sed -i "s/^ tag:.*/ tag: \"${{ env.NEW_APP_VERSION }}\"/" helm-charts/charts/risingwave/values.yaml
- name: Update Chart.yaml
run: |
cd helm-charts/charts/risingwave
CURRENT_VERSION=$(grep 'version:' Chart.yaml | awk '{print $2}' | head -n 1)
NEW_VERSION=$(echo $CURRENT_VERSION | awk -F. -v OFS='.' '{$NF++; print}')
sed -i "/type: application/,/version:/!b; /version:/s/version: .*/version: $NEW_VERSION/" Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"${{ env.NEW_APP_VERSION }}\"/" Chart.yaml
echo "NEW_CHART_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PR_TOKEN }}
commit-message: 'chore: bump risingwave to ${{ env.NEW_APP_VERSION }}, release chart ${{ env.NEW_CHART_VERSION }}'
title: 'chore: bump risingwave to ${{ env.NEW_APP_VERSION }}, release chart ${{ env.NEW_CHART_VERSION }}'
body: 'This is an automated pull request to update the chart versions'
branch: 'auto-update-${{ env.NEW_APP_VERSION }}'
path: 'helm-charts'
reviewers: arkbriar
delete-branch: true
signoff: true

update-risingwave-operator:
runs-on: ubuntu-latest
steps:
- name: Checkout Risingwave Operator Repository
uses: actions/checkout@v3
with:
repository: 'risingwavelabs/risingwave-operator'
token: ${{ secrets.PR_TOKEN }}
path: 'risingwave-operator'

- name: Update risingwave-operator image tags
run: |
cd risingwave-operator
PREV_VERSION=$(grep -roh "risingwavelabs/risingwave:v[0-9\.]*" * | head -n 1 | cut -d':' -f2)
grep -rl "risingwavelabs/risingwave:$PREV_VERSION" . | xargs sed -i "s|risingwavelabs/risingwave:$PREV_VERSION|risingwavelabs/risingwave:${{ env.NEW_APP_VERSION }}|g"
- name: Create Pull Request for risingwave-operator
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PR_TOKEN }}
commit-message: 'chore: bump risingwave image tags to ${{ env.NEW_APP_VERSION }}'
title: 'chore: bump risingwave image tags to ${{ env.NEW_APP_VERSION }}'
body: 'This is an automated pull request to update the risingwave image tags'
branch: 'auto-update-${{ env.NEW_APP_VERSION }}'
path: 'risingwave-operator'
reviewers: arkbriar
delete-branch: true
signoff: true
31 changes: 8 additions & 23 deletions .github/workflows/cherry-pick-to-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
types: ["closed", "labeled"]

jobs:
release_pull_request_1_8:
if: "contains(github.event.pull_request.labels.*.name, 'need-cherry-pick-release-1.8') && github.event.pull_request.merged == true"
release_pull_request_1_9:
if: "contains(github.event.pull_request.labels.*.name, 'need-cherry-pick-release-1.9') && github.event.pull_request.merged == true"
runs-on: ubuntu-latest
name: release_pull_request
steps:
Expand All @@ -16,14 +16,14 @@ jobs:
- name: Create PR to branch
uses: risingwavelabs/github-action-cherry-pick@master
with:
pr_branch: 'release-1.8'
pr_branch: 'release-1.9'
pr_labels: 'cherry-pick'
pr_body: ${{ format('Cherry picking \#{0} onto branch release-1.8', github.event.number) }}
pr_body: ${{ format('Cherry picking \#{0} onto branch release-1.9', github.event.number) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release_pull_request_1_7_standalone:
if: "contains(github.event.pull_request.labels.*.name, 'need-cherry-pick-release-1.7-standalone') && github.event.pull_request.merged == true"
release_pull_request_1_10:
if: "contains(github.event.pull_request.labels.*.name, 'need-cherry-pick-release-1.10') && github.event.pull_request.merged == true"
runs-on: ubuntu-latest
name: release_pull_request
steps:
Expand All @@ -32,24 +32,9 @@ jobs:
- name: Create PR to branch
uses: risingwavelabs/github-action-cherry-pick@master
with:
pr_branch: 'release-1.7.0-standalone'
pr_branch: 'release-1.10'
pr_labels: 'cherry-pick'
pr_body: ${{ format('Cherry picking \#{0} onto branch release-1.7.0-standalone', github.event.number) }}
pr_body: ${{ format('Cherry picking \#{0} onto branch release-1.10', github.event.number) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release_pull_request_1_7:
if: "contains(github.event.pull_request.labels.*.name, 'need-cherry-pick-release-1.7') && github.event.pull_request.merged == true"
runs-on: ubuntu-latest
name: release_pull_request
steps:
- name: checkout
uses: actions/checkout@v1
- name: Create PR to branch
uses: risingwavelabs/github-action-cherry-pick@master
with:
pr_branch: 'release-1.7'
pr_labels: 'cherry-pick'
pr_body: ${{ format('Cherry picking \#{0} onto branch release-1.7', github.event.number) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 8 additions & 4 deletions .github/workflows/connector-node-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Connector Node Integration Tests

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]
merge_group:
types: [checks_requested]
types: [ checks_requested ]

jobs:
build:
Expand Down Expand Up @@ -42,4 +42,8 @@ jobs:
echo "--- build connector node"
cd ${RISINGWAVE_ROOT}/java
# run unit test
mvn --batch-mode --update-snapshots clean package -Dno-build-rust
# WARN: `testOnNext_writeValidation` is skipped because it relies on Rust code to decode message,
# while we don't build Rust code (`-Dno-build-rust`) here to save time
mvn --batch-mode --update-snapshots clean package -Dno-build-rust \
'-Dtest=!com.risingwave.connector.sink.SinkStreamObserverTest#testOnNext_writeValidation' \
-Dsurefire.failIfNoSpecifiedTests=false
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Dashboard (main)
name: Dashboard
on:
push:
branches: [main]
paths: [dashboard/**, proto/**]
pull_request:
branches: [main]
paths: [dashboard/**, proto/**]
workflow_dispatch:
jobs:
dashboard-ui-deploy:
Expand All @@ -19,11 +22,14 @@ jobs:
- name: build
working-directory: ./dashboard
run: |
echo "::group::npm install"
npm install
echo "::endgroup::"
npm run lint
npm run build
- name: Deploy
uses: s0/git-publish-subdir-action@develop
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
REPO: self
BRANCH: dashboard-artifact
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/dashboard_pr.yml

This file was deleted.

23 changes: 14 additions & 9 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ jobs:
remove-docker-images: 'true'
root-reserve-mb: 10240
temp-reserve-mb: 10240
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Rust toolchain
run: rustup show
- name: Install dependencies
- name: Install dependencies for compiling RisingWave
run: sudo apt-get update && sudo apt-get install -y make build-essential cmake protobuf-compiler curl openssl libssl-dev libsasl2-dev libcurl4-openssl-dev pkg-config postgresql-client tmux lld
- name: Run sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].5
with:
version: "v0.5.2"
- name: build rustdocs
run: |
cargo doc --workspace --no-deps --document-private-items
cp docs/rustdoc/rust.css target/doc/rust.css
mkdir artifact
cp -R target/doc/* artifact
mkdir -p artifact/rustdoc
cp -R target/doc/* artifact/rustdoc
- name: Show available storage
run: df -h
- name: Install cargo-docset
- name: Install tools for building docs
uses: taiki-e/install-action@v2
with:
tool: cargo-docset
tool: cargo-docset,mdbook,mdbook-toc,mdbook-linkcheck
- name: build docsets
run: |
cargo docset --no-clean --docset-name RisingWave
Expand All @@ -58,8 +58,13 @@ jobs:
</entry>" > RisingWave.xml
cp -t artifact "risingwave.docset.tgz" "RisingWave.xml"
- name: build developer doc
run: |
cd docs/dev
mdbook build
cp -R book/html/* ../../artifact
- name: Upload artifacts
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: artifact
- name: Show available storage
Expand All @@ -76,4 +81,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
25 changes: 15 additions & 10 deletions .github/workflows/nightly-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,25 @@ name: Build with Latest Nightly Rust
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- xxchan/latest-nightly-rust
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
root-reserve-mb: 2048
swap-size-mb: 8192
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
root-reserve-mb: 10240
temp-reserve-mb: 10240
- uses: actions/checkout@v3
if: ${{ github.event_name == 'schedule' }}
with:
Expand All @@ -40,3 +43,5 @@ jobs:
export CARGO_INCREMENTAL=0
export CARGO_PROFILE_DEV_DEBUG=false
cargo check
- name: Show available storage
run: df -h
Loading

0 comments on commit d71ee2b

Please sign in to comment.