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

ci: add Android job #1950

Merged
merged 1 commit into from
Aug 19, 2024
Merged

ci: add Android job #1950

merged 1 commit into from
Aug 19, 2024

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Aug 1, 2024

Runs unit tests on Android emulator for both x86 and x86_64.


Tracking issue: #1778

Foundation to test #1947.

@mxinden mxinden changed the title chore(.github): add Android GitHub CI job ci: add Android job Aug 1, 2024
@mxinden mxinden marked this pull request as ready for review August 1, 2024 19:08
Copy link
Contributor Author

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

This is ready for a first review.

I hoped to be able to reproduce #1947 with the x86 branch of this workflow. Thus far without success. I will debug further. In the meantime, I believe running Android tests is useful by itself.

Let me know what you think.

(I suggest I squash towards the end.)

quinn/src/tests.rs Show resolved Hide resolved
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

This mostly looks good to me.

.github/workflows/rust.yml Outdated Show resolved Hide resolved
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Happy to merge this once squashed, thanks!

@mxinden mxinden force-pushed the ci-android branch 2 times, most recently from 6dcaad0 to 7b74ffe Compare August 19, 2024 09:40
@mxinden
Copy link
Contributor Author

mxinden commented Aug 19, 2024

error: Failed loading manifest
error: Could not derive library name from Cargo.toml

Haven't seen this happening before. I will look into it.

@mxinden mxinden marked this pull request as draft August 19, 2024 09:42
@mxinden mxinden force-pushed the ci-android branch 2 times, most recently from 81f0683 to 898cba1 Compare August 19, 2024 10:53
@mxinden mxinden marked this pull request as ready for review August 19, 2024 11:26
@mxinden mxinden requested a review from djc August 19, 2024 11:26
@djc djc added this pull request to the merge queue Aug 19, 2024
Merged via the queue into quinn-rs:main with commit 1e00247 Aug 19, 2024
10 checks passed
mxinden added a commit to mxinden/quinn that referenced this pull request Aug 22, 2024
When extracting the emulator script into a separate file, the `matrix.target`
substitution wasn't replaced with an environment variable.

Follow-up to quinn-rs#1950.
mxinden added a commit to mxinden/quinn that referenced this pull request Aug 23, 2024
When extracting the emulator script into a separate file, the `matrix.target`
substitution wasn't replaced with an environment variable.

Follow-up to quinn-rs#1950.

Also the `ecn_*` unit tests are failing with any Android API version < v26 with:

```
2024-08-22T14:41:30.636494Z  WARN quinn_udp: sendmsg error: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }, Transmit: { destination: 127.0.0.1:50196, src_ip: None, enc: Some(Ect0), len: 5, segment_size: None }
```
mxinden added a commit to mxinden/quinn that referenced this pull request Aug 23, 2024
When extracting the emulator script into a separate file, the `matrix.target`
substitution wasn't replaced with an environment variable.

Follow-up to quinn-rs#1950.
github-merge-queue bot pushed a commit that referenced this pull request Aug 23, 2024
When extracting the emulator script into a separate file, the `matrix.target`
substitution wasn't replaced with an environment variable.

Follow-up to #1950.
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