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

Add a test for mode changes correctly applying to users. #1732

Merged
merged 22 commits into from
Jun 8, 2023

Conversation

Half-Shot
Copy link
Contributor

As well as adding some improved logging around the area.

@Half-Shot Half-Shot requested a review from a team as a code owner June 2, 2023 18:14
@progval
Copy link
Contributor

progval commented Jun 2, 2023

Shouldn't the changelog mention it's a bugfix for #1731? (and #1725?)

@Half-Shot
Copy link
Contributor Author

Test failures seem related to concurrency, again.

src/bridge/RoomAccessSyncer.ts Outdated Show resolved Hide resolved
src/bridge/IrcHandler.ts Outdated Show resolved Hide resolved
src/bridge/RoomAccessSyncer.ts Outdated Show resolved Hide resolved
src/bridge/RoomAccessSyncer.ts Outdated Show resolved Hide resolved
src/irc/BridgedClient.ts Show resolved Hide resolved
@@ -226,7 +226,7 @@ export class RoomAccessSyncer {
);
if (matrixRooms.length === 0) {
req.log.info("No mapped matrix rooms for IRC channel %s", channel);
return;
return BridgeRequestErr.ERR_NOT_MAPPED;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the pattern of returning undefined vs an error enum appears elsewhere, I'm confident that this works, but where are these enum values handled?

Copy link
Contributor Author

@Half-Shot Half-Shot Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ultimately handled in

factory.addDefaultResolveCallback((req, _res) => {
.

src/bridge/RoomAccessSyncer.ts Show resolved Hide resolved
@Half-Shot Half-Shot merged commit 0671b17 into develop Jun 8, 2023
@Half-Shot Half-Shot deleted the hs/powerlevel-e2e-test branch June 8, 2023 18:18
Half-Shot added a commit that referenced this pull request Jun 9, 2023
* Add powerlevel e2e test

* Log failures properly

* Log when we don't know a mode value

* Set sensible mode defaults

* Remove mistaken log line

* Remove consistent return lint rule

* changelog

* update changelog

* Improve userPrefixes check

* Catch failures to kill redis

* Don't call quit twice

* Remove duplicate test

* Fix unit test

* Disable passkey enc

* sneaky fix to stop logging pong timeouts erronously

* Remove comment

* Drop console line

* Review tweaks

* Fix changelog

* Add a loop to check all power levels

* Add ability to check for the right PL

* Don't wait for charlie's matrix membership
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.

3 participants