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

Update zio, zio-streams, zio-test, ... to 2.0.0 #1315

Merged
merged 34 commits into from
Jul 10, 2022
Merged

Conversation

amitksingh1490
Copy link
Collaborator

Updates

from 1.0.15 to 2.0.0.
GitHub Release Notes - Version Diff

I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a .scala-steward.conf file.

Have a fantastic day writing Scala!

Ignore future updates

Add this to your .scala-steward.conf file to ignore future updates of this dependency:

updates.ignore = [ { groupId = "dev.zio" } ]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

@tusharmath tusharmath mentioned this pull request Jun 26, 2022
@gchudnov
Copy link
Contributor

gchudnov commented Jul 4, 2022

Hi,
wondering if any help is needed to migrate it to the final version of ZIO 2.0 ?

@gavares
Copy link

gavares commented Jul 5, 2022

I'm happy to help out with this PR if I can.

@github-actions github-actions bot added the maintenance Chore or Maintenance tasks label Jul 5, 2022
* added implementation for `cross` Gen combinator

* added app and spec to izolate the issue

* increased max message size  in test app

* for each strategy the executor should be set on ZIO program before executing the program.

* attempt to fix compilation for scala 2.12

* removed test

* removed cross
@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2022

Codecov Report

Merging #1315 (03de4b9) into main (fec9bb0) will increase coverage by 0.02%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##             main    #1315      +/-   ##
==========================================
+ Coverage   60.30%   60.33%   +0.02%     
==========================================
  Files          71       71              
  Lines        2532     2526       -6     
  Branches       73       77       +4     
==========================================
- Hits         1527     1524       -3     
+ Misses       1005     1002       -3     
Impacted Files Coverage Δ
zio-http/src/main/scala/zhttp/http/Cookie.scala 82.60% <0.00%> (ø)
.../scala/zhttp/http/headers/HeaderConstructors.scala 25.88% <ø> (ø)
...main/scala/zhttp/http/headers/HeaderModifier.scala 18.60% <ø> (ø)
...tp/src/main/scala/zhttp/http/middleware/Csrf.scala 80.00% <ø> (ø)
...io-http/src/main/scala/zhttp/service/Handler.scala 73.91% <ø> (ø)
...io-http/src/main/scala/zhttp/service/package.scala 100.00% <ø> (ø)
...p/src/main/scala/zhttp/socket/SocketProtocol.scala 25.71% <ø> (ø)
...la/zhttp/service/server/ServerChannelFactory.scala 18.18% <25.00%> (-27.28%) ⬇️
.../src/main/scala/zhttp/service/EventLoopGroup.scala 21.05% <28.57%> (-15.79%) ⬇️
...tp/src/main/scala/zhttp/http/middleware/Auth.scala 76.47% <40.00%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fec9bb0...03de4b9. Read the comment docs.

checkAll(Gen.fromIterable(LogLevel.all)) { level =>
assertTrue(LogLevel.fromString(level.toString) == Some(level))
}
},
testM("any invalid value should not decode") {
test("any value with the exception of defined values for LogLevel should be set to Error log level.") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

description isn't right.


private def run[R, E](app: HttpApp[R, E]): ZIO[TestClock with R, Option[E], Response] = {
private def runApp[R, E](app: HttpApp[R, E]): ZIO[R, Option[E], Response] = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this change req?

@@ -0,0 +1,1996 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this file added?

queue.takeUpTo(max).tap(as => ZIO.foreachDiscard(as)(f))
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will review if there is a better way, to avoid this.

@vladimir-lu vladimir-lu mentioned this pull request Jul 8, 2022
1 task
@tusharmath tusharmath merged commit e61972e into main Jul 10, 2022
@tusharmath tusharmath deleted the update/zio-2.0.0 branch July 10, 2022 11:35
@jdsalchow
Copy link

Is there a release with this coming? 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs maintenance Chore or Maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants