Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix challengehound duplication bug. #982

Merged
merged 5 commits into from
Oct 29, 2024
Merged

Conversation

Half-Shot
Copy link
Contributor

@Half-Shot Half-Shot commented Oct 28, 2024

Fixes #981

If we haven't got anything in storage for challengehound, then it defaults to emitting everything to the room. This is a problem for memory-storage bots or unreliable Redis stores. To fix this, simply do not emit anything on first poll.

This also fixes a problem where we were endlessly adding the same hashes to Redis, using up more storage than required.

@Half-Shot Half-Shot requested a review from a team as a code owner October 28, 2024 11:34
@Half-Shot Half-Shot merged commit 6571b9f into main Oct 29, 2024
17 checks passed
@Half-Shot Half-Shot deleted the hs/fix-challengehound-dupes branch October 29, 2024 11:07
SpiritCroc added a commit to SpiritCroc/matrix-hookshot that referenced this pull request Nov 29, 2024
- Add support for setting an expiry time on a webhook. See the documentation on [Generic Webhooks](https://matrix-org.github.io/matrix-hookshot/latest/setup/webhooks.html) for more information. ([\matrix-org#984](matrix-org#984))
- Support for E2E Encrypted rooms is now considered stable and can be enabled in production. Please see the [documentation](https://matrix-org.github.io/matrix-hookshot/latest/advanced/encryption.html)
  on the requirements for enabling support. ([\matrix-org#989](matrix-org#989))

- Fix Challenge Hound activities being duplicated if the cache layer (e.g Redis) goes away. ([\matrix-org#982](matrix-org#982))

- Drop support for Node 20 and start supporting Node 22, 23. ([\matrix-org#990](matrix-org#990))

- Reduce bundle size of widget. ([\matrix-org#985](matrix-org#985))
- Don't invoke newsfile CI check for dependabot. ([\matrix-org#987](matrix-org#987))
- Add devenv development files. ([\matrix-org#993](matrix-org#993))
- Push Docker images to ghcr.io, and and build an image on each commit. ([\matrix-org#994](matrix-org#994))
- Retry e2e tests in CI due to container creation flakiness. ([\matrix-org#995](matrix-org#995))
- Update matrix-bot-sdk to pull in new matrix-rust-sdk. ([\matrix-org#996](matrix-org#996))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Challengehound integration repeats entries over and over, seems to forget seen entries.
1 participant