LongYinan
e5f8a58330
ci: refactor workflow ( #5139 )
...
Merge tests job into single one, reuse job as much as possible
2023-12-06 08:03:05 +00:00
LongYinan
246fbd8d4f
ci: fix auto labeler config
2023-12-05 18:21:32 +08:00
LongYinan
bd414b7f44
ci: fix auto labeler job ( #5206 )
2023-12-05 18:00:42 +08:00
LongYinan
51e42af317
chore: bump up actions/labeler action to v5 ( #5192 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [actions/labeler](https://togithub.com/actions/labeler ) | action | major | `v4` -> `v5` |
---
### Release Notes
<details>
<summary>actions/labeler (actions/labeler)</summary>
### [`v5`](https://togithub.com/actions/labeler/compare/v4...v5 )
[Compare Source](https://togithub.com/actions/labeler/compare/v4...v5 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
2023-12-05 06:41:21 +00:00
LongYinan
2b7c6714eb
chore: bump up Helm release postgresql to v13 ( #5190 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [postgresql](https://bitnami.com ) ([source](https://togithub.com/bitnami/charts/tree/HEAD/bitnami/postgresql )) | major | `12.5.8` -> `13.2.23` |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
2023-12-05 04:26:32 +00:00
LongYinan
9e8668de6b
ci: add electron-forge deps group ( #5185 )
2023-12-05 03:27:36 +00:00
LongYinan
eb93ae04e0
ci: exclude @blocksuite/icons from blocksuite nightly update group ( #5184 )
2023-12-05 02:45:55 +00:00
LongYinan
a9b021bafe
ci: use renovate to replace dependabot since depedabot has never worked ( #5182 )
...
https://github.com/toeverything/AFFiNE/network/updates/757631626 dependabot update jobs keep timeout
2023-12-05 00:47:40 +00:00
Joooye_34
eb7d293aaa
fix(core): implement editor timeout and report error from boundary ( #5105 ) ( #5151 )
...
fix(core): implement editor timeout and report error from boundary (#5105 )
ci: add sentry env when frontend assets build (#5131 )
fix(core): expose catched editor load error (#5133 )
fix(infra): use blocksuite api to check compatibility (#5137 )
fix(infra): compatibility logic follow blocksuite (#5143 )
fix(core): rerender error boundary when route change and improve sentry report (#5147 )
2023-12-01 07:25:08 +00:00
LongYinan
99f98fb9d3
ci: remove publish job ( #5135 )
2023-11-30 04:24:43 +00:00
LongYinan
6fca1b43f0
chore: add rust-toolchain file ( #5129 )
2023-11-29 10:11:38 +00:00
LongYinan
feddfdc5c9
ci: upgrade setup-node action ( #5125 )
2023-11-29 10:11:32 +00:00
LongYinan
a2b8a073cc
ci: pr title lint job does not need to install all dependencies ( #5124 )
2023-11-29 09:51:14 +00:00
LongYinan
a843dcd851
fix: resolve cycle imports and prevent it by oxlint ( #5103 )
2023-11-29 04:43:27 +00:00
LongYinan
0ee2ecc1e9
ci: always perform fresh build in deployment job ( #5066 )
2023-11-28 06:59:50 +00:00
LongYinan
aaaed5ac14
fix(core): nx cache configuration ( #5065 )
2023-11-28 06:59:48 +00:00
liuyi
91efca107a
refactor(server): standarderlize metrics and trace with OTEL ( #5054 )
...
you can now export span to Zipkin and metrics to Prometheus when developing locally
follow the docs of OTEL: https://opentelemetry.io/docs/instrumentation/js/exporters/
<img width="2357" alt="image" src="https://github.com/toeverything/AFFiNE/assets/8281226/ec615e1f-3e91-43f7-9111-d7d2629e9679 ">
2023-11-24 15:19:22 +00:00
LongYinan
42f4045ad6
chore: adjust the request memory size and replica count ( #5046 )
2023-11-24 06:19:38 +00:00
LongYinan
3499dbbb7f
feat: upgrade dependencies and lockfile ( #5016 )
...
- Close https://github.com/toeverything/AFFiNE/security/dependabot/47
2023-11-23 05:18:05 +00:00
Peng Xiao
3839a9bd15
build(electron): asar ( #4965 )
...
Due to restrictions on how Electron package works, the `node_modules` should not be hoisted and not to use s/h-links at all. This is why we need to have two separate installs for electron and non-electron packages in the build.
Tested via the following script
```bash
#!/bin/bash
echo "step 1: clean up"
find . -name "node_modules" -prune -exec rm -rf '{}' +
# git clean -dfX
build_type=canary
echo "step 2: install web dependencies"
# firstly, build web static
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 SENTRYCLI_SKIP_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=1 yarn
echo "step 3: generate assets"
BUILD_TYPE="$build_type" yarn workspace @affine/electron generate-assets
# cleanup node_modules
find . -name "node_modules" -prune -exec rm -rf '{}' +
echo "step 4: install electron dependencies"
# install electron deps
yarn config set nmHoistingLimits workspaces
yarn config set enableScripts false
yarn config set nmMode classic
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn workspaces focus @affine/electron @affine/monorepo
echo "step 5: build native"
# build native
yarn workspace @affine/native build
yarn workspace @affine/storage build
echo "step 6: build electron"
# build electron
yarn workspace @affine/electron build
echo "step 7: package electron"
# package
SKIP_GENERATE_ASSETS=1 BUILD_TYPE="$build_type" HOIST_NODE_MODULES=1 yarn workspace @affine/electron package
```
2023-11-21 17:44:30 +00:00
LongYinan
703fad6a0d
ci: prevent error if rust build is cached by nx ( #4951 )
...
If Rust build was cached by nx, only the output file will be presented. The chmod command will be failed in this case like: https://github.com/toeverything/AFFiNE/actions/runs/6874496337/job/18697360212
2023-11-16 21:57:22 +08:00
LongYinan
e7e617a791
chore: change default branch to canary ( #4948 )
2023-11-15 07:46:50 +00:00
LongYinan
cc2ade601c
ci: only disable postinstall on macOS in nightly desktop build ( #4938 )
2023-11-14 23:03:49 +08:00
LongYinan
8bcc886b46
ci: disable postinstall in nightly desktop build ( #4930 )
...
Should be part of https://github.com/toeverything/AFFiNE/pull/4885
2023-11-14 14:45:52 +08:00
DarkSky
ac3756ea23
chore: cleanup deployment
2023-11-12 11:22:21 +08:00
LongYinan
927a6489f9
ci: adjust the beta cluster configuration
2023-11-10 00:22:45 +08:00
LongYinan
839f500979
ci: disable postinstall on macOS build ( #4885 )
2023-11-09 11:58:55 +00:00
Joooye_34
a8bff81a7e
ci: use resolutions to resolve building error in mac-os ( #4878 )
2023-11-09 02:43:47 +00:00
EYHN
ecd5db2952
ci: add oxlint ( #4867 )
2023-11-08 17:54:41 +08:00
LongYinan
6aaf550241
ci: fix wrangler deploy ( #4803 )
2023-11-01 09:12:00 +00:00
LongYinan
2d62ec72a7
ci: dynamic setup server deploy environment by release tag ( #4790 )
2023-11-01 07:38:15 +00:00
Joooye_34
7b204cc611
Merge pull request #4766 from toeverything/chore/stripe-env
...
chore(server): add stripe env to deploy.yml
2023-10-30 17:25:23 +00:00
Joooye_34
6fcdb05925
chore(server): add stripe env
2023-10-31 00:12:17 +08:00
LongYinan
99b35c7a93
ci: reduce deployment events on pull requests
2023-10-30 19:57:54 +08:00
LongYinan
fc3516acfb
Merge pull request #4746 from toeverything/data-migrations-system
...
feat(server): add data migration system
2023-10-30 06:36:18 +00:00
forehalo
98d0ac3c90
feat(server): add data migration system
2023-10-30 11:12:09 +08:00
dependabot[bot]
2a4495f7ee
ci: bump cloudflare/wrangler-action from 3.3.1 to 3.3.2 ( #4717 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-28 12:08:49 +00:00
LongYinan
b13705ba3d
ci: remove setup-maker to reduce release duration ( #4710 )
2023-10-24 10:09:40 +00:00
dependabot[bot]
551287ab44
ci: bump actions/upload-artifact from 2 to 3 ( #4701 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 09:36:07 +00:00
dependabot[bot]
113105181d
ci: bump docker/login-action from 2 to 3 ( #4702 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 09:01:09 +00:00
dependabot[bot]
fd6536ea90
ci: bump actions/checkout from 2 to 4 ( #4700 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 06:00:00 +00:00
dependabot[bot]
a42d218962
ci: bump actions/setup-node from 3 to 4 ( #4704 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 05:59:16 +00:00
dependabot[bot]
14bee1811c
ci: bump docker/setup-qemu-action from 2 to 3 ( #4703 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 05:13:58 +00:00
dependabot[bot]
5573afc8d5
ci: bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 ( #4686 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:39:51 +00:00
dependabot[bot]
8b703fd9ad
ci: bump docker/build-push-action from 4 to 5 ( #4690 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:23:04 +00:00
dependabot[bot]
2a97194c75
ci: bump docker/setup-buildx-action from 2 to 3 ( #4689 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:22:34 +00:00
dependabot[bot]
13b6bb7ee3
ci: bump kentaro-m/auto-assign-action from 1.2.4 to 1.2.5 ( #4687 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:22:02 +00:00
dependabot[bot]
43220f6db6
ci: bump cloudflare/wrangler-action from 2.0.0 to 3.3.1 ( #4688 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:21:54 +00:00
LongYinan
9820c80ee2
ci: dependabot group config
2023-10-23 15:03:50 +08:00
LongYinan
1dd17c6334
ci: fix electron app nightly build workflow ( #4684 )
2023-10-23 06:30:10 +00:00
Alex Yang
d9e2d17a26
refactor: cleanup code
2023-10-20 19:28:04 -05:00
LongYinan
890905ed0e
ci: fix electron make script on Windows
2023-10-19 22:44:55 +08:00
LongYinan
54aad58388
ci: fix electron make script on Windows ( #4666 )
2023-10-19 13:00:11 +00:00
LongYinan
352420b881
build: fix native module in aarch64 docker image ( #4656 )
2023-10-19 08:59:02 +00:00
Alex Yang
97d8660a54
refactor(electron): fix vitest and add behavior test ( #4655 )
2023-10-18 22:14:30 -05:00
Joooye_34
bed9310519
refactor(infra): directory structure ( #4615 )
2023-10-18 15:30:08 +00:00
DarkSky
63ca9671be
feat: add captcha support for sign in/up ( #4582 )
2023-10-18 08:06:07 +00:00
Alex Yang
524e48c8e6
refactor(electron): typescript check on build scripts ( #4650 )
2023-10-18 06:13:47 +00:00
Alex Yang
bb046a12dc
refactor(native): remove unused code ( #4651 )
2023-10-17 18:19:06 -05:00
LongYinan
e831f612e8
fix(electron): release desktop app workflow ( #4594 )
2023-10-17 06:15:55 +00:00
Peng Xiao
5e9eeaddbd
build(electron): allow customizing channel type for internal build ( #4511 )
2023-10-17 01:15:19 +00:00
Joooye_34
6ea10860b4
refactor(infra): record legacy data to improve testing stability ( #4590 )
2023-10-13 03:03:42 +00:00
Qinghao Huang
b440c3a820
docs: update CLA.md ( #4541 )
2023-09-30 00:26:50 +00:00
Alex Yang
98cabc44e4
ci: remove unstable nx.yml
( #4543 )
2023-09-29 18:57:31 -05:00
LongYinan
dd94ea5b45
ci: speedup ci by reduce installation packages in certain job ( #4457 )
2023-09-29 03:02:26 +00:00
Alex Yang
56f75160f3
refactor: remove unused packages ( #4532 )
2023-09-28 01:33:42 +00:00
Alex Yang
cdad7edf15
test(electron): add cloud test ( #4184 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-09-17 20:26:06 +00:00
LongYinan
70e731e066
test(server): move env variables into playwright config ( #4384 )
2023-09-15 17:56:26 -07:00
LongYinan
1aec1ce7d0
test(server): move tests out of src folder ( #4366 )
2023-09-15 07:34:14 +00:00
LongYinan
d68545cb29
chore(i18n): fix sync languages script ( #4367 )
2023-09-14 17:37:32 -07:00
Alex Yang
162016884c
refactor: remove unused package ( #4291 )
2023-09-09 00:00:26 +00:00
Peng Xiao
e00f40537b
fix: allow login with credentials on production ( #4288 )
2023-09-08 23:02:01 +00:00
Alex Yang
0ee0790295
ci: workflow dispatch
2023-09-07 16:52:10 -07:00
Alex Yang
1b6a78cd00
feat!: unified migration logic in server electron, and browser ( #4079 )
...
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
2023-09-06 07:44:53 +00:00
Chi Zhang
14ae3cf6d6
docs: update BUG-REPORT.yml ( #4174 )
2023-09-05 02:45:59 +00:00
LongYinan
ff66e2635a
chore: upgrade yarn to 3.6.3 ( #4173 )
2023-09-05 01:37:38 +00:00
Alex Yang
a2623e1352
test: email sending e2e ( #4130 )
2023-09-02 18:13:59 +00:00
LongYinan
e76cdf4d71
fix(server): set right AFFINE_SERVER_HOST env variable ( #4108 )
2023-09-01 18:37:48 +08:00
LongYinan
83e7e9db8d
fix(server): relax the rate limits ( #4092 )
2023-09-01 13:51:37 +08:00
Alex Yang
7c4e65a5be
ci: use 'pull_request' on publish-storybook.yml ( #4051 )
2023-08-30 11:09:04 -05:00
Alex Yang
e042152681
ci: update chromatic build ( #4050 )
2023-08-30 10:55:28 -05:00
Alex Yang
5c0f73c535
ci: split server test ( #4023 )
2023-08-29 15:57:09 -05:00
Peng Xiao
3ef0db7512
fix: add arch key to setup-node cached files ( #4016 )
2023-08-29 16:36:21 +00:00
LongYinan
54574e5cc3
fix(server): signup/signin logic ( #4008 )
2023-08-29 19:22:56 +08:00
Alex Yang
0ded20fcb7
ci: only deploy in the canary version
2023-08-29 05:27:14 -05:00
Alex Yang
2f6c4e3696
feat!: affine cloud support ( #3813 )
...
Co-authored-by: Hongtao Lye <codert.sn@gmail.com>
Co-authored-by: liuyi <forehalo@gmail.com>
Co-authored-by: LongYinan <lynweklm@gmail.com>
Co-authored-by: X1a0t <405028157@qq.com>
Co-authored-by: JimmFly <yangjinfei001@gmail.com>
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
Co-authored-by: xiaodong zuo <53252747+zuoxiaodong0815@users.noreply.github.com>
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
Co-authored-by: Qi <474021214@qq.com>
Co-authored-by: danielchim <kahungchim@gmail.com>
2023-08-29 05:07:05 -05:00
Sarvesh Kumar.A
118165bf72
fix(electron): set client border style to false by default on windows ( #3960 )
...
Co-authored-by: Alex Yang <himself65@outlook.com>
2023-08-26 15:26:48 -05:00
Peng Xiao
765e160ba2
fix: add missing matrix value ( #3937 )
2023-08-24 07:26:49 +00:00
Peng Xiao
efb6de3435
fix: incorrect workflow file ( #3935 )
2023-08-24 06:52:13 +00:00
Peng Xiao
fb6eada410
fix: disable windows signing for nightly ( #3933 )
2023-08-24 05:11:20 +00:00
Peng Xiao
4247a5d0d9
fix: remove use of glob ( #3932 )
2023-08-24 04:34:36 +00:00
Alex Yang
dd60106b5d
Revert "ci: retry install three times ( #3924 )"
...
This reverts commit 4a003878e2
.
2023-08-23 16:52:34 -05:00
Alex Yang
4a003878e2
ci: retry install three times ( #3924 )
2023-08-23 13:22:04 -05:00
Peng Xiao
7d6e91f56e
build: sign windows app ( #3809 )
2023-08-22 10:16:26 -05:00
Alex Yang
bf00299bc7
ci: do not build core in e2e test ( #3882 )
2023-08-21 18:36:39 -05:00
Alex Yang
a348df4c47
ci: add cancel id
2023-08-20 15:35:03 -05:00
Alex Yang
940dbbe9c3
ci: split desktop test ( #3849 )
2023-08-20 14:29:22 -05:00
Alex Yang
1e5a4a6849
feat(storybook): improve code ( #3786 )
2023-08-16 15:07:55 -05:00
Alex Yang
645a300112
ci: add environment
2023-08-16 11:31:13 -05:00
Alex Yang
3dbefda6ed
feat(storybook): import plugins ( #3768 )
2023-08-16 03:01:14 -05:00