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

Fix issue 669 #693

Merged
merged 11 commits into from
Apr 22, 2024
Merged

Fix issue 669 #693

merged 11 commits into from
Apr 22, 2024

Conversation

RubenGarcia
Copy link
Contributor

@RubenGarcia RubenGarcia commented Mar 19, 2024

https://grpc.github.io/grpc/core/md_doc_compression.html indicates that compression flag should not be set if grpc-encoding is identity.

This PR makes grpc-dart set the compression flag properly in this case.

@mosuem
Copy link
Contributor

mosuem commented Mar 19, 2024

Thanks a lot for the investigation and the fix! If you could add a changelog entry describing your change (with a link to this PR), as well as adding the information from #669 (comment) to this PR description, that would help a lot.

@mosuem mosuem self-requested a review March 19, 2024 15:52
@RubenGarcia
Copy link
Contributor Author

Thanks a lot for the investigation and the fix! If you could add a changelog entry describing your change (with a link to this PR), as well as adding the information from #669 (comment) to this PR description, that would help a lot.

Done and fixed the two issues with the workflow.

@RubenGarcia
Copy link
Contributor Author

I´m getting this error in the other workflow:

Validating package:grpc 3.2.4 (dir=/home/runner/work/grpc-dart/grpc-dart):grpc
pubspec:
  - version: 3.2.4
changelog:
* Set compressed flag correctly for grpc-encoding = identity. Fixes [#669](https://github.com/grpc/grpc-dart/issues/669) (https://github.com/grpc/grpc-dart/pull/693)
error: pubspec version (3.2.4) and changelog (null) don't agree

Since 3.2.4 has already released, I will change both to 3.2.5.

publish / validate
validate packages
Copy link
Contributor

@mosuem mosuem left a comment

Choose a reason for hiding this comment

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

Looking good! If you could add a small test for this to not risk having regressions, we can merge.

@RubenGarcia
Copy link
Contributor Author

Looking good! If you could add a small test for this to not risk having regressions, we can merge.

Test added.

@RubenGarcia RubenGarcia requested a review from mosuem March 26, 2024 19:54
@RubenGarcia
Copy link
Contributor Author

The error when running dart / test (windows-latest) when running
dart run --enable-vm-service --timeline-streams=Dart test/timeline_test.dart
Could not find a command named "/hostedtoolcache/windows/dart/3.4.0-260.0.d...
seem to be unrelated to my changes.

@mosuem
Copy link
Contributor

mosuem commented Apr 2, 2024

Right, I will take a look.

@mosuem
Copy link
Contributor

mosuem commented Apr 3, 2024

#697

@RubenGarcia
Copy link
Contributor Author

Is there anything else needed here?

Copy link

PR Health

Breaking changes ✔️

Details
Package Change Current Version New Version Needed Version Looking good?
grpc None 3.2.4 3.2.5 3.2.4 ✔️

Changelog Entry ✔️

Details
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

Coverage ✔️

Details
File Coverage
lib/src/shared/message.dart 💚 76 %

This check for test coverage is informational (issues shown here will not fail the PR).

API leaks ⚠️

Details

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbols
grpc $1.Duration
ServerHandler
Any

This check can be disabled by tagging the PR with skip-leaking-check.

Package publish validation ✔️

Details
Package Version Status
package:grpc 3.2.5 ready to publish

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

@RubenGarcia
Copy link
Contributor Author

The failed tests complaining about
dart:js_interop_unsafe
seem to be independent of my changes, although they are a transitive dependency of one of my imports.

@mosuem mosuem merged commit bdbe5f5 into grpc:master Apr 22, 2024
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants