Skip to content

Conversation

@tadzik
Copy link
Contributor

@tadzik tadzik commented Mar 26, 2024

Signed off by: Tadeusz „tadzik” Sośnierz <signoff at tadzik dot net>

@tadzik tadzik requested a review from a team as a code owner March 26, 2024 12:08
@tadzik tadzik force-pushed the tadzik/dep-updates branch from ec8ee33 to b68e76c Compare March 26, 2024 12:11
@tadzik tadzik marked this pull request as draft March 26, 2024 12:11
@tadzik tadzik force-pushed the tadzik/dep-updates branch from b68e76c to f280497 Compare March 26, 2024 14:58
@tadzik tadzik marked this pull request as ready for review March 29, 2024 09:32
@Cadair
Copy link
Collaborator

Cadair commented Apr 4, 2024

Looks sane to me, but the postgres integration test fail seems legit?

edit: oh wait, looks like it's just busted, so probably not related to this PR.

@tadzik
Copy link
Contributor Author

tadzik commented Apr 5, 2024

It's worth considering updating our matrix-appservice-bridge here and dropping NeDB while at it – we'd need to support a DB migration though.

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

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

What's needed to make that test pass?

- run: yarn test:integration

integration-postgres:
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally we should make sure this works before merging.

const ATTACHMENT_TYPES = ["m.audio", "m.video", "m.file", "m.image"];
const PILL_REGEX = /<a href="https:\/\/matrix\.to\/#\/(#|@|\+)([^"]+)">([^<]+)<\/a>/g;

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Assuming this is now part of the functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct. I've now added tests to verify this.

@tadzik
Copy link
Contributor Author

tadzik commented Jun 4, 2024

What's needed to make that test pass?

It needed the default timeout increased, 2 seconds was not enough to apply DB migrations. Should be good now.

@@ -0,0 +1 @@
Require node 20, update dependencies.
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be a .removal, as we're removing support. I'd put in stronger wording to say that Node 16 and 18 are no longer supported, and users need to update to Node 20.

I wouldn't both stating that dependencies are updated, it doesn't help the user any to know that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good points. Changed in 7f3cdec

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
Copy link
Contributor

Choose a reason for hiding this comment

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

N.B. Remember to update the Dockerfile.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in af9075b

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