healthcheck not working #61

Closed
opened 2024-10-17 15:31:36 +08:00 by 汪睿522370910169 · 3 comments

I tried on repo hteam-00 in engr151. I pushed a file with non-ascii character to test-hw branch. Healthcheck should find this problem, but the issue shows nothing...
I tried on own computer, it shows as following:

it works on my machine

❯ ../JOJ3/build/healthcheck -root=.
### Forbidden File Check Failed:
The following forbidden files were found: `.gitea/issue_template`, `.gitea/workflows`

To fix it, first make a backup of your repository and then run the following commands:
```bash
export GIT_BRANCH=$(git branch --show-current)
export GIT_REMOTE_URL=$(git config --get remote.origin.url)
for i in .gitea/issue_template .gitea/workflows; do git filter-repo --force --invert-paths --path "$i"; done
git remote add origin $GIT_REMOTE_URL
git push --set-upstream origin $GIT_BRANCH --force

### Non-ASCII Characters File Check Failed:
Non-ASCII characters found in the following files:
 h0/readme.md

So I think it's not the problem with healthcheck part but maybe some output issue?

I tried on repo hteam-00 in engr151. I pushed a [file](https://focs.ji.sjtu.edu.cn/git/engr151-24fa/hteam-00/src/branch/test-hw/h0/readme.md) with non-ascii character to test-hw branch. Healthcheck should find this problem, but the [issue](https://focs.ji.sjtu.edu.cn/git/engr151-24fa/hteam-00/issues/148) shows nothing... I tried on own computer, it shows as following: ``` it works on my machine ❯ ../JOJ3/build/healthcheck -root=. ### Forbidden File Check Failed: The following forbidden files were found: `.gitea/issue_template`, `.gitea/workflows` To fix it, first make a backup of your repository and then run the following commands: ```bash export GIT_BRANCH=$(git branch --show-current) export GIT_REMOTE_URL=$(git config --get remote.origin.url) for i in .gitea/issue_template .gitea/workflows; do git filter-repo --force --invert-paths --path "$i"; done git remote add origin $GIT_REMOTE_URL git push --set-upstream origin $GIT_BRANCH --force ### Non-ASCII Characters File Check Failed: Non-ASCII characters found in the following files: h0/readme.md ``` So I think it's not the problem with healthcheck part but maybe some output issue?
汪睿522370910169 added the
bug
question
labels 2024-10-17 15:31:36 +08:00
张泊明518370910136 was assigned by 汪睿522370910169 2024-10-17 15:31:59 +08:00
周赵嘉程521432910016 was assigned by 汪睿522370910169 2024-10-17 15:31:59 +08:00
汪睿522370910169 self-assigned this 2024-10-17 15:31:59 +08:00

😓

😓
Author
Member

😓

😓
Owner

where are messages displayed? could it be a parser issue? (not configured properly)

where are messages displayed? could it be a parser issue? (not configured properly)
Sign in to join this conversation.
No description provided.