Skip to content

Commit

Permalink
Update dependencies (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
etspaceman authored Feb 29, 2024
1 parent 4289385 commit 8c50121
Show file tree
Hide file tree
Showing 28 changed files with 231 additions and 217 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt

- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -124,7 +128,7 @@ jobs:

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
path: targets.tar
Expand All @@ -139,6 +143,10 @@ jobs:
java: [temurin@17]
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt

- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
Expand All @@ -158,7 +166,7 @@ jobs:
run: sbt +update

- name: Download target directories (2.13, root-jvm-212)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-jvm-212

Expand All @@ -168,7 +176,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-jvm-213)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-jvm-213

Expand All @@ -178,7 +186,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-jvm-3)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-jvm-3

Expand All @@ -188,7 +196,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-js-212)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-js-212

Expand All @@ -198,7 +206,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-js-213)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-js-213

Expand All @@ -208,7 +216,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-js-3)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-js-3

Expand All @@ -218,7 +226,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-native-212)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-native-212

Expand All @@ -228,7 +236,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-native-213)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-native-213

Expand All @@ -238,7 +246,7 @@ jobs:
rm targets.tar
- name: Download target directories (2.13, root-native-3)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-root-native-3

Expand Down Expand Up @@ -280,6 +288,10 @@ jobs:
java: [temurin@17]
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt

- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -337,6 +349,10 @@ jobs:
java: [temurin@17]
runs-on: ${{ matrix.os }}
steps:
- name: Install sbt
if: contains(runner.os, 'macos')
run: brew install sbt

- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.17
version = 3.8.0
project.git = true
runner.dialect = scala213Source3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object circe {
.safeAdd("schemaDefinition", x.getSchemaDefinition())
.safeAdd("schemaName", x.getSchemaName())

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

implicit val hashKeyRangeEncoder: Encoder[HashKeyRange] = x => {
Expand All @@ -54,7 +54,7 @@ object circe {
.safeAdd("endingHashKey", x.endingHashKey())
.safeAdd("startingHashKey", x.startingHashKey())

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

implicit val childShardEncoder: Encoder[ChildShard] = x => {
Expand All @@ -66,7 +66,7 @@ object circe {
.safeAdd("parentShards", x.parentShards())
.safeAdd("shardId", x.shardId())

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

implicit val extendedSequenceNumberEncoder
Expand All @@ -78,7 +78,7 @@ object circe {
.safeAdd("sequenceNumber", x.sequenceNumber())
.safeAdd("subSequenceNumber", x.subSequenceNumber())

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

implicit val initializationInputEncoder: Encoder[InitializationInput] = x =>
Expand All @@ -93,7 +93,7 @@ object circe {
x.pendingCheckpointSequenceNumber()
)

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

implicit val processRecordsInputEncoder: Encoder[ProcessRecordsInput] = x =>
Expand All @@ -108,7 +108,7 @@ object circe {
.safeAdd("millisBehindLatest", x.millisBehindLatest())
.safeAdd("timeSpentInCache", x.timeSpentInCache())

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

implicit val kinesisClientRecordEncoder: Encoder[KinesisClientRecord] = x =>
Expand All @@ -129,7 +129,7 @@ object circe {
.safeAdd("subSequenceNumber", x.subSequenceNumber())
.safeAdd("data", x.data())

Json.obj(fields.toSeq: _*)
Json.obj(fields.toSeq*)
}

new RecordProcessor.LogEncoders
Expand Down
2 changes: 1 addition & 1 deletion kcl/src/main/scala/kinesis4cats/kcl/KCLConsumer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ object KCLConsumer {

object ProcessConfig {
val default: ProcessConfig =
ProcessConfig(true, RecordProcessor.Config.default, None)
ProcessConfig(raiseOnError = true, RecordProcessor.Config.default, None)
}

object Config {
Expand Down
2 changes: 1 addition & 1 deletion kcl/src/main/scala/kinesis4cats/kcl/RecordProcessor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ object RecordProcessor {
)

object Config {
val default = Config(None, 5, 0.seconds, true)
val default = Config(None, 5, 0.seconds, autoCommit = true)
}

/** An implementation of the
Expand Down
4 changes: 2 additions & 2 deletions kcl/src/test/scala/kinesis4cats/kcl/RecordProcessorSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RecordProcessorSpec extends munit.CatsEffectSuite {
.Factory[IO](
RecordProcessor.Config.default,
deferredException,
true
raiseOnError = true
)(recs => resultsQueue.tryOfferN(recs).void)
.use { factory =>
for {
Expand Down Expand Up @@ -98,7 +98,7 @@ class RecordProcessorSpec extends munit.CatsEffectSuite {
.Factory[IO](
RecordProcessor.Config.default,
deferredException,
true
raiseOnError = true
)(_ => IO.raiseError(expected))
.use { factory =>
for {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object LocalstackCloudWatchClient {
underlying <- clientResource
client <- CloudWatchClient.Builder
.default[F]
.withClient(underlying, false)
.withClient(underlying, managed = false)
.withLogEncoders(encoders)
.withLogger(logger)
.build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object LocalstackDynamoClient {
underlying <- clientResource
client <- DynamoClient.Builder
.default[F]
.withClient(underlying, false)
.withClient(underlying, managed = false)
.withLogEncoders(encoders)
.withLogger(logger)
.build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object LocalstackKinesisClient {
underlying <- clientResource
client <- KinesisClient.Builder
.default[F]
.withClient(underlying, false)
.withClient(underlying, managed = false)
.withLogEncoders(encoders)
.withLogger(logger)
.build
Expand Down
Loading

0 comments on commit 8c50121

Please sign in to comment.