uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Weblate alert of too many outgoing commits

Open 401U opened this issue 2 years ago • 10 comments

⚠️ Please verify that this bug has NOT been raised before.

  • [X] I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Problem

Just recived an alert email saying

The VCS repository has many changes compared to the upstream. Please merge the changes manually or set up push to automate this.

Also ⚠️ appears on the Component and on all the language in it, which is so annoying.

As I checked that there are no conflict, I did a manully push, and the alert disappered.

Reason

After searching weblate docs, I figured out that alert emails would be send when outgoing (or missing) commits is great than set value(REPOSITORY_ALERT_THRESHOLD, default to 25). Which make sence as #2713 has 29 commits.

Solutions

Following method may solve the problem.

  1. merge language file changes frequently on github
  2. improve the REPOSITORY_ALERT_THRESHOLD
  3. change the Merge style of vcs to merge (I personally dislike that, as rebase give us a clean commit tree)
  4. set smaller push interval, but Merge style required to be merge, as rebase will lead to force-push
  5. other solutions? idk

🐻 Uptime-Kuma Version

latest

💻 Operating System and Arch

latest

🌐 Browser

latest

🐋 Docker Version

latest

🟩 NodeJS Version

latest

401U avatar Feb 07 '23 11:02 401U

Will try to set REPOSITORY_ALERT_THRESHOLD later. But as our previous experience, those env vars are not working for Docker?

louislam avatar Feb 07 '23 17:02 louislam

But as our previous experience, those env vars are not working for Docker?

I except REPOSITORY_ALERT_THRESHOLD to work with docker, as there is no related settings of it in docker setting code. Just search in that file for REPOSITORY_ALERT_THRESHOLD with no result.

401U avatar Feb 08 '23 01:02 401U

Have set a large number, hope this works.

louislam avatar Feb 08 '23 04:02 louislam

Have set a large number, hope this works.

Oh no, it alert me again🤔

401U avatar Feb 09 '23 06:02 401U

Not have so much free time recently to learn about weblate's code logic, so not sure the reason why it doesn't work. To save our time, just change the Merge style to merge on weblate vcs setting would be an easy solution. Though I have the permission on weblate, I expect your approval of doing such operation, or you can just do it yourself.

401U avatar Feb 09 '23 06:02 401U

Have set a large number, hope this works.

Oh no, it alert me again🤔

Yes... those env vars are not usable in the docker container, just like the GITHUB_CREDENTIALS. Only env vars listed here could be used: https://docs.weblate.org/en/latest/admin/install/docker.html

Will try to use merge method

louislam avatar Feb 09 '23 12:02 louislam

Yes... those env vars are not usable in the docker container, just like the GITHUB_CREDENTIALS. Only env vars listed here could be used: https://docs.weblate.org/en/latest/admin/install/docker.html

It's possible to edit configuration beyond environment variables by overriding settings from the data volume

Will try to use merge method

It doesn't work, so I have changed back to rebase for clean commit tree previously.

New alert shows up recently, and I manually resolve it every time the alert shows up :disappointed:

401U avatar Mar 04 '23 09:03 401U

We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.

github-actions[bot] avatar Jun 02 '23 12:06 github-actions[bot]

This issue was closed because it has been stalled for 2 days with no activity.

github-actions[bot] avatar Jun 04 '23 12:06 github-actions[bot]

It's possible to edit configuration beyond environment variables by overriding settings from the data volume

@louislam Have you tried this method to setup REPOSITORY_ALERT_THRESHOLD? I receive those alert email basically everyday, which is so annoying.

401U avatar Apr 07 '24 11:04 401U

We are clearing up our old help-issues and your issue has been open for 60 days with no activity. If no comment is made and the stale label is not removed, this issue will be closed in 7 days.

github-actions[bot] avatar Jul 10 '24 06:07 github-actions[bot]