Skip to content

Add tests for _matrix/client/v1/media/download#727

Merged
S7evinK merged 3 commits intomatrix-org:mainfrom
H-Shay:shay/parse_multipart
Jul 2, 2024
Merged

Add tests for _matrix/client/v1/media/download#727
S7evinK merged 3 commits intomatrix-org:mainfrom
H-Shay:shay/parse_multipart

Conversation

@H-Shay
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread client/client.go Outdated
Comment thread tests/media_filename_test.go Outdated
Comment thread tests/media_filename_test.go Outdated
@H-Shay
Copy link
Copy Markdown
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
Comment thread tests/csapi/apidoc_content_test.go Outdated
@H-Shay H-Shay requested a review from S7evinK June 29, 2024 04:00
@H-Shay
Copy link
Copy Markdown
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
Copy Markdown
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
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