Commit Graph

397 Commits

Author SHA1 Message Date
Copilot df147a4ee7
[Tool] Add comprehensive GitHub Copilot instructions for StarRocks (#62136)
Signed-off-by: Seaven <seaven_7@qq.com>
2025-08-20 16:43:07 +08:00
andyziye be7dd9fc12
[Tool] Update PULL_REQUEST_TEMPLATE.md (#61958)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2025-08-15 11:04:59 +08:00
andyziye 66a8adaaa0
[Tool] Update CODEOWNERS (#61830)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2025-08-12 14:17:47 +08:00
iverson 312b0d9e46
[Tool] Init branch-4.0 (#61792)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2025-08-11 18:57:23 +08:00
andyziye dbc6e375e7
[Tool] Add cov checker for admit (#60454)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2025-07-10 10:17:06 +08:00
andyziye 70c77ca3ac
[Tool] Delete the sonarcloud check of the branch (#60394)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2025-06-27 16:07:28 +08:00
andyziye ab283ddbd7
[Tool] Feature coverage add branch param (#57679)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2025-06-11 09:58:15 +08:00
andyziye 380e4e083d
[Tool] Update the branch info in the template (#59725)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2025-06-09 10:38:38 +08:00
Maxim Martynov 86d520b12b
[Doc] Fix stale Slack URL (#59605)
Current Slack URL on Github is stale:

Signed-off-by: Martynov Maxim <martinov_m_s_@mail.ru>
2025-06-04 09:55:25 -07:00
andyziye 2aaebfac37
[Tool] Optimize the approval strategy for branch merging (#59196)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2025-05-21 18:18:13 +08:00
andyziye 6013fafeb5
[Tool] Add branch status and restrictions (#58958)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2025-05-15 10:25:03 +08:00
PengFei Li 01b307f3ba
[Tool] Modify some files' reviewer to load-unload-maintainer (#58166)
Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
2025-04-18 09:52:21 +08:00
andyziye e223275f78
[Tool] Init branch-3.5 (#57324)
Co-authored-by: huailiu <liuhuaiyuan@starrocks.com>
2025-03-27 10:19:49 +08:00
andyziye 90c5fc36dc
[Tool] Add the limit on merging feature/enhancement prs on branches (#57278) 2025-03-26 17:50:27 +08:00
andyziye 31b6cb5c46
[Tool] Enforce the SQL-Tester in the version test workflow (#56545) 2025-03-04 15:17:14 +08:00
andyziye 0f8fc5564a
[Tool] Fixed oom in sonarcloud check (#56284) 2025-02-26 08:10:43 +00:00
andyziye 55671c9656
[Tool] Inspection pipeline supports feature coverage (#55837) 2025-02-18 10:32:19 +08:00
andyziye fef49b5764
[Tool] Fixed the CreateArtifact error in re-run workflow run(#55256)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2025-01-20 16:43:44 +08:00
Dan Roscigno 6e3d945bb4
[Doc] use package.json from main (#55083)
Signed-off-by: DanRoscigno <dan@roscigno.com>
2025-01-15 10:54:19 +08:00
Dan Roscigno d4b5b3cc01
Revert "[Doc] use safe package.json yarn.lock" (#55074) 2025-01-14 19:30:36 +08:00
Dan Roscigno e8fea61377
[Doc] use safe package.json yarn.lock (#55027) 2025-01-14 06:42:39 +08:00
andyziye e48afd7442
[Tool] Fix: Update image even if the previous task failed (#54500)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2024-12-31 09:51:27 +08:00
andyziye b8931c6aba
[Tool] Fix CI merge pipeline (#54497) 2024-12-30 17:35:41 +08:00
andyziye 36dea3e193
[Tool] Change the mode of image update to serial (#54494) 2024-12-30 17:21:59 +08:00
PengFei Li 771770c1d3
[Tool] Set CODEOWNERS of merge commit to load-unload-maintainer (#54490)
Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
2024-12-30 06:52:21 +00:00
andyziye 1a6ae2c452
[Tool] Fix duplicate info in backport pr's body (#53770) 2024-12-10 19:30:25 +08:00
andyziye aa3652607c
[Tool] Fix image update failure in CI (#53667) 2024-12-06 07:28:22 +00:00
andyziye afccab88fd
[Tool] Init branch-3.4 (#53038) 2024-11-20 14:17:21 +08:00
Dan Roscigno 84c4abdffb
[Tool] check releasenote links (#52956) 2024-11-19 08:38:12 +08:00
andyziye e8afab331d
[Tool] Revert CI region (#51300) 2024-09-24 13:19:23 +08:00
trueeyu 37db37f6a3
[Tool] Increase timeout-minutes of clang-tidy (#51217)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2024-09-20 16:33:13 +08:00
andyziye 12f6298676
[Tool] Replace CI region (#51046) 2024-09-14 18:00:42 +08:00
andyziye bc1f5e6b09
[Tool] Replace CI OSS bucket (#50957) 2024-09-11 10:52:39 +08:00
andyziye 5ac71b45bc
[Tool] Use the independent runner for sync (#50750)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2024-09-05 16:23:33 +08:00
andyziye 4eff9df108
[Tool] Detect SQL-Tester conf and filter the cases (#50336)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-09-04 09:38:21 +08:00
andyziye bdba1bb4af
[Tool] Optimize unnecessary CI build steps (#50126) 2024-08-22 11:35:50 +08:00
andyziye 0ebc5cb360
[Tool] CI env change to ubuntu (#48373)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-08-22 09:40:49 +08:00
andyziye d3d6f21fb2
[Tool] Add maintainer for meta upgrade/downgrade compatibility (#50047) 2024-08-21 11:31:06 +08:00
Dan Roscigno 3c8d1ca67a
[Doc] Translation container (#49935)
Replace the translate GitHub workflow with a Docker container.

To translate an English doc:

Setup the environment
There are three environment variables that need to be set in the file starrocks/docs/translation/.env:

OPENAI_API_KEY
WANDB_API_KEY
GIT_PYTHON_REFRESH
GIT_PYTHON_REFRESH should be set to quiet because we are not interacting with Git within the container. The other two environment variables will be provided by the Documentation Team leader.

These should be set in the file in starrocks/docs/translation/.env

This is the format:

OPENAI_API_KEY=sk-proj-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
WANDB_API_KEY=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
GIT_PYTHON_REFRESH=quiet
Files to translate
Provide the paths of the files to translate in the file starrocks/docs/translation/files.txt

The entries in the file should be relative to the starrocks/docs/translation/ folder, for example:

../en/quick_start/quick_start.md
../en/deployment/helm.md
Build the Docker image
This probably only needs to be done once unless the folks from Weights and Biases modify the Python package gpt_translate.

cd docs/translation
docker build -f translation.Dockerfile -t translate .
Translate the docs
Change dir back up to the starrocks folder so that you can mount the docs/ folder in the container.

cd ../../
Translate the files:

docker run -v ./docs:/docs \
  --env-file ./docs/translation/.env \
  translate \
  bash /docs/translation/scripts/translate.sh
Check the files
Once the translation is complete the container will exit. Check the status with git status and check the translated file(s).

Signed-off-by: DanRoscigno <dan@roscigno.com>
2024-08-18 21:07:48 -07:00
andyziye ee5836a3a8
[Tool] Enable required trivy checker in CI pipeline (#49768)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-08-16 02:38:37 +00:00
andyziye f13d979032
[Tool] Add Java-extensions UT check (#49615)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-08-09 17:31:01 +08:00
Dan Roscigno 0912509579
[Tool] Auto translate (#49457)
This PR is to add a workflow that translates docs from English to Chinese. I can provide the GPT and W&B secrets.

Note:

This requires three secrets and a PAT. The details are below.

Detect changed Markdown or MDX files using tj-actions/changed-files
Translate Docusaurus Markdown from English to Chinese using tcapelle/gpt_translate
Automatically open a PR with the Chinese docs using peter-evans/create-pull-request
Setup
Github Personal Access Token
I used a fine-grained token limited to this repo. Here are the perms I gave:

Read and Write access to code (content) and pull requests
Read and Write access to pull requests
Additionally, GitHub automatically assigned:

Read access to metadata
Repository secret
I created three repository secrets:

TRANSLATE_PAT
This contains the PAT created above.

OPENAI_API_KEY
This contains a GPT4 API key

WANDB_API_KEY
This contains the output of W&B authorize

Workflow file notes
The workflow runs when a pull request with target main is closed by being merged. It does not run on every commit made to a PR as that is wasteful.
The paths and filters in the workflow are specific to the StarRocks docs, you will need to change them.
gpt_translate configuration
The configuration is in the configs dir in this repo. At StarRocks we use a modified prompt and temperature in addition to a custom glossary in configs/language_dicts/zh.yaml. You can compare our prompt with the default from tcapelle/gpt_translate.

About Weights and Biases
You should read Weights & Biases, I am no expert. I do think that the Weave feature is going to be useful as I tune the prompt and glossary I am using. Weave keeps track of the changes and the impact. Additionally, W&B validates the translations for me automatically and provides scores. Seriously, I am no AI expert; check out their site.

Signed-off-by: DanRoscigno <dan@roscigno.com>
2024-08-06 19:56:56 -07:00
andyziye 705d1fb27f
[Tool] CI Trivy Pipeline (#45976)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-06-25 15:22:18 +08:00
Youngwb 2983a44c37
[Tool] update parser maintainer (#46132)
Signed-off-by: Youngwb <yangwenbo_mailbox@163.com>
2024-05-23 16:11:10 +08:00
andyziye 5ee0d7219e
[Tool] Fix inspection pipeline (#45257)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-05-08 11:14:24 +08:00
andyziye b45c7be92f
[Tool] Fix syntax error in sync pipeline (#44785)
Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
2024-04-26 09:47:14 +08:00
andyziye eb5de98af4
[Tool] Update node version in pipeline (#44677)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-04-25 10:00:02 +08:00
andyziye d3ef2ba133
[Tool] Add version label to issue when main pr was merged (#44602)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-04-23 08:55:04 +00:00
andyziye fb1bddd22e
[Tool] Fix syntax error in merge pipeline (#44548)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-04-22 12:10:37 +00:00
andyziye acd0ba76e6
[Tool] Add issue checker for feature prs (#44542)
Signed-off-by: AndyZiYe <yeziyu@starrocks.com>
2024-04-22 19:53:47 +08:00