From 4c9037d287ec48adfb31fe91165eaa4b2fc9cdb4 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 27 Sep 2025 20:32:28 +0800 Subject: [PATCH] chore: rm outdated/refactored files --- ...YanZh%2Fcheckout%60%3F-%5BDEPRECATED%5D.md | 5 --- %5BTA%5DUse-Git-LFS-in-Gitea-Actions.md | 33 ------------------- ...g-MemorySanitizer-%28MSan%29-in-C%2B%2B.md | 3 -- 3 files changed, 41 deletions(-) delete mode 100644 %5BTA%2Fdev%5DWhy-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F-%5BDEPRECATED%5D.md delete mode 100644 %5BTA%5DUse-Git-LFS-in-Gitea-Actions.md delete mode 100644 %5BTA%5DWhat-you-need-to-know-before-using-MemorySanitizer-%28MSan%29-in-C%2B%2B.md diff --git a/%5BTA%2Fdev%5DWhy-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F-%5BDEPRECATED%5D.md b/%5BTA%2Fdev%5DWhy-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F-%5BDEPRECATED%5D.md deleted file mode 100644 index e63cb33..0000000 --- a/%5BTA%2Fdev%5DWhy-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F-%5BDEPRECATED%5D.md +++ /dev/null @@ -1,5 +0,0 @@ -1. `act_runner` only supports URL with format `${host}/${owner}/${name}`, `${host}/git/${owner}/${name}` does not work. So we can not use self-hosted checkout. Check [here](https://gitea.com/gitea/act/src/commit/165620676543e66a1fcfda6520c65bea3be51ede/pkg/runner/step_action_remote.go#L307). -2. By default, `actions/checkout` also only supports URL with format `${host}/${owner}/${name}`. Check [here](https://gitea.com/actions/checkout/src/commit/85e6279cec87321a52edac9c87bce653a07cf6c2/src/url-helper.ts#L19). -3. `gitea.com/BoYanZh/checkout` is modified, which hardcodes ssh port and our URL format to clone the repo in `act_runner`. Check [here](https://gitea.com/BoYanZh/checkout/src/commit/4c8f4bdc40a644db67b4468842e454e439891c72/src/url-helper.ts#L19). - -On joj-dev server, we use 0.2.11-focs act_runner, which comes from https://github.com/focs-gitea/act_runner/tree/v0.2.11-focs. It supports `${host}/git/${owner}/${name}`, so we can just use `actions/checkout@focs` now and it will use https://focs.ji.sjtu.edu.cn/git/actions/checkout/src/branch/focs. \ No newline at end of file diff --git a/%5BTA%5DUse-Git-LFS-in-Gitea-Actions.md b/%5BTA%5DUse-Git-LFS-in-Gitea-Actions.md deleted file mode 100644 index 4d498b6..0000000 --- a/%5BTA%5DUse-Git-LFS-in-Gitea-Actions.md +++ /dev/null @@ -1,33 +0,0 @@ -bug: https://github.com/actions/checkout/issues/1830#issuecomment-2314758792 - -solution: checkout lfs object separately - -```yaml -name: Run JOJ3 on Push -on: [push] - -jobs: - run: - runs-on: focs-ubuntu-latest-slim - container: - volumes: - - /home/tt/.config:/home/tt/.config - - /home/tt/.cache:/home/tt/.cache - - /home/tt/.ssh:/home/tt/.ssh - steps: - - name: Check out repository code - uses: actions/checkout@focs - with: - lfs: false - persist-credentials: 'true' - - name: Checkout lfs - run: | - git lfs install --local - AUTH=$(git config --local http.https://focs.ji.sjtu.edu.cn/.extraheader) - git config --local --unset http.https://focs.ji.sjtu.edu.cn/.extraheader - git config --local http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" - git lfs pull - - name: run joj3 - run: | - sudo -E -u tt joj3 -conf-root /home/tt/.config/joj -``` diff --git a/%5BTA%5DWhat-you-need-to-know-before-using-MemorySanitizer-%28MSan%29-in-C%2B%2B.md b/%5BTA%5DWhat-you-need-to-know-before-using-MemorySanitizer-%28MSan%29-in-C%2B%2B.md deleted file mode 100644 index 743837f..0000000 --- a/%5BTA%5DWhat-you-need-to-know-before-using-MemorySanitizer-%28MSan%29-in-C%2B%2B.md +++ /dev/null @@ -1,3 +0,0 @@ -According to our current observation, MemorySanitizer with `iostream` linked with uninstrumented libc++ will not work. Not sure about other libraries/headers. - -Explanation: https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo \ No newline at end of file