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 tests for _matrix/client/v1/media/download #727

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Jun 27, 2024

Pull Request Checklist

@H-Shay H-Shay force-pushed the shay/parse_multipart branch from ea00664 to 33fd45e Compare June 27, 2024 04:04
@H-Shay
Copy link
Contributor Author

H-Shay commented Jun 27, 2024

I am wondering if this error means that the tests are not running against my synapse branch and against the main branch instead?:

--2024-06-27 04:05:17--  https://github.com/element-hq/synapse/archive/shay/parse_multipart.tar.gz
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/element-hq/synapse/tar.gz/shay/parse_multipart [following]
--2024-06-27 04:05:17--  https://codeload.github.com/element-hq/synapse/tar.gz/shay/parse_multipart
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-06-27 04:05:17 ERROR 404: Not Found.


gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
--2024-06-27 04:05:17--  https://github.com/element-hq/synapse/archive/HEAD.tar.gz
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/element-hq/synapse/tar.gz/7c169f4d2ccfa7e06c6f50a08475eadd1a9202dd [following]
--2024-06-27 04:05:17--  https://codeload.github.com/element-hq/synapse/tar.gz/7c169f4d2ccfa7e06c6f50a08475eadd1a9202dd
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘STDOUT’

that would explain why the new tests are failing with 404 on the new endpoint - these do work locally so I am suspicious of this error

Copy link
Contributor

@S7evinK S7evinK left a comment

Choose a reason for hiding this comment

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

I am wondering if this error means that the tests are not running against my synapse branch and against the main branch instead?

Yea, CI is trying to fetch the branch from element-hq/synapse, but it looks like element-hq/synapse#17365 is from your fork.

client/client.go Outdated Show resolved Hide resolved
tests/media_filename_test.go Outdated Show resolved Hide resolved
tests/media_filename_test.go Outdated Show resolved Hide resolved
@H-Shay
Copy link
Contributor Author

H-Shay commented Jun 28, 2024

but it looks like element-hq/synapse#17365 is from your fork.

Anything that I can do about this? I no longer have write permissions on the main repo so I think it has to come from my fork...

@H-Shay H-Shay requested a review from S7evinK June 28, 2024 02:40
@H-Shay H-Shay requested a review from S7evinK June 29, 2024 04:00
@H-Shay
Copy link
Contributor Author

H-Shay commented Jul 1, 2024

@S7evinK thanks for the approval - can you hit the merge button for me? I no longer have the authority to do so

@S7evinK
Copy link
Contributor

S7evinK commented Jul 2, 2024

ftr, Dendrite seems to be happy with my authed-media branch, except for TestMediaWithoutFileName:

    server.go:116: Server.UnexpectedRequestsAreErrors=true received unexpected request to server: GET /_matrix/federation/v1/media/download/PlainTextFile

That's due to Dendrite first attempting to fetch via the authenticated endpoint and only on failure attempts the old endpoint.

@S7evinK S7evinK merged commit bc97f1d into matrix-org:main Jul 2, 2024
1 of 4 checks passed
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.

2 participants