Skip to content

Commit 0a6a509

Browse files
authored
Fix workflows (#4020)
1 parent c26947d commit 0a6a509

File tree

7 files changed

+41
-27
lines changed

7 files changed

+41
-27
lines changed

.github/workflows/publish-aptly-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
path: ${{ steps.cache-aptly-path.outputs.aptly_toolpath }}
3636
key: ${{ steps.cache-aptly-path.outputs.aptly_cachekey }}
3737
- name: Get aptly
38-
if: steps.cache-aptly.outputs.cache-hit == 'false'
38+
if: steps.cache-aptly.outputs.cache-hit != 'true'
3939
env:
4040
APTLY_DOWNLOADPATH: ${{ steps.cache-aptly-path.outputs.aptly_downloadpath }}
4141
APTLY_TOOLPATH: ${{ steps.cache-aptly-path.outputs.aptly_toolpath }}

.github/workflows/publish-docker-image.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
type: string
1717
environment:
1818
type: string
19+
ref:
20+
type: string
1921
secrets:
2022
DOCKERHUB_USER:
2123
required: true
@@ -42,9 +44,13 @@ jobs:
4244
digest: ${{ steps.push.outputs.digest }}
4345
steps:
4446
- uses: actions/checkout@v4
47+
with:
48+
ref: ${{ inputs.ref }}
4549
- uses: regclient/actions/regctl-installer@4d6888fcc4842c9630f60ebc91715a45dd9bd7a3
4650
- uses: proudust/gh-describe@70f72d4f6304ea053cf5a3d71c36211d5acc0c73
4751
id: ghd
52+
with:
53+
commit-ish: ${{ inputs.ref || github.sha}}
4854
- name: Prepare base image and node version
4955
run: |
5056
BASE_IMAGE=${{ inputs.base-image }}
@@ -63,12 +69,10 @@ jobs:
6369
run: sbt --batch -Dproject.version=${{ steps.versions.outputs.node-version }} buildTarballsForDocker
6470
- name: Extract image name and tags from workflow_call inputs
6571
if: inputs.raw-docker-tags != ''
72+
env:
73+
RAW_DOCKER_TAGS: ${{ inputs.raw-docker-tags }}
6674
run: |
67-
{
68-
echo 'TAGS<<EOF'
69-
echo ${{ inputs.raw-docker-tags }}
70-
echo EOF
71-
} >> "$GITHUB_ENV"
75+
echo "TAGS=$RAW_DOCKER_TAGS" >> "$GITHUB_ENV"
7276
{
7377
echo 'IMAGES<<EOF'
7478
echo ${{ env.IMAGE_NAME }}
@@ -89,12 +93,13 @@ jobs:
8993
run: |
9094
{
9195
echo 'annotations<<EOF'
92-
echo org.opencontainers.image.source=https://github.com/${{ github.repository }}/tree/${{ github.sha }}/docker
96+
echo org.opencontainers.image.source=https://github.com/${{ github.repository }}/tree/${{ steps.ghd.outputs.sha }}/docker
9397
echo org.opencontainers.image.licenses=MIT
9498
echo org.opencontainers.image.description=Waves Node
9599
echo org.opencontainers.image.base.name=${{ steps.versions.outputs.base-image }}
96100
echo org.opencontainers.image.base.digest=${{ steps.versions.outputs.base-image-digest }}
97101
echo org.opencontainers.image.version=${{ steps.versions.outputs.node-version }}
102+
echo org.opencontainers.image.revision=${{ steps.ghd.outputs.sha }}
98103
echo EOF
99104
} >> "$GITHUB_OUTPUT"
100105
id: annotations
@@ -117,7 +122,6 @@ jobs:
117122
images: ${{ env.IMAGES }}
118123
flavor: latest=${{ contains(inputs.docker-tags, 'latest') }}
119124
tags: ${{ env.TAGS }}
120-
labels: ${{ steps.tag-list.outputs.annotations }}
121125
annotations: ${{ steps.annotations.outputs.annotations }}
122126
- uses: docker/build-push-action@v6
123127
id: push

benchmark/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ libraryDependencies ++= Seq(
66
"org.scodec" %% "scodec-core" % "2.3.3",
77
"org.eclipse.collections" % "eclipse-collections" % "13.0.0",
88
"commons-codec" % "commons-codec" % "1.20.0",
9-
"org.apache.commons" % "commons-lang3" % "3.18.0"
9+
"org.apache.commons" % "commons-lang3" % "3.20.0"
1010
) ++ Dependencies.logDeps
1111

1212
// https://github.com/ktoso/sbt-jmh#adding-to-your-project

node-generator/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
libraryDependencies ++= Dependencies.console :+ Dependencies.janino :+ Dependencies.asyncHttpClient :+ Dependencies.logback
1+
libraryDependencies ++= Dependencies.console :+ Dependencies.asyncHttpClient :+ Dependencies.logback
22

33
run / fork := true

node/src/main/resources/logback.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828

2929
<include optional="true" file="${waves.config.directory:-.}/logback.xml"/>
3030

31-
<if condition='property("logback.stdout.enabled").contains("true")'>
31+
<condition class="ch.qos.logback.core.boolex.PropertyEqualityCondition">
32+
<key>logback.stdout.enabled</key>
33+
<value>true</value>
34+
</condition>
35+
<if>
3236
<then>
3337
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
3438
<target>System.out</target>
@@ -45,7 +49,11 @@
4549
</then>
4650
</if>
4751

48-
<if condition='property("logback.file.enabled").contains("true")'>
52+
<condition class="ch.qos.logback.core.boolex.PropertyEqualityCondition">
53+
<key>logback.file.enabled</key>
54+
<value>true</value>
55+
</condition>
56+
<if>
4957
<then>
5058
<property name="appender.name" value="FILE"/>
5159
<property name="appender.file" value="waves"/>
@@ -59,7 +67,11 @@
5967
</then>
6068
</if>
6169

62-
<if condition='property("logback.utx-trace.enabled").contains("true")'>
70+
<condition class="ch.qos.logback.core.boolex.PropertyEqualityCondition">
71+
<key>logback.utx-trace.enabled</key>
72+
<value>true</value>
73+
</condition>
74+
<if>
6375
<then>
6476
<property name="appender.name" value="UTX-TRACE"/>
6577
<property name="appender.file" value="utx-trace"/>

node/tests/src/test/scala/com/wavesplatform/network/peer/PeerDatabaseImplSpecification.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class PeerDatabaseImplSpecification extends FreeSpec {
6767
database.knownPeers.keys should contain(address1)
6868
}
6969

70-
"peer should should become obsolete after time" in withDatabase(settings1) { database =>
70+
"peer should become obsolete after time" in withDatabase(settings1) { database =>
7171
database.touch(address1)
7272
database.knownPeers.keys should contain(address1)
7373
sleepLong()

project/Dependencies.scala

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import scalapb.compiler.Version.scalapbVersion
55

66
//noinspection TypeAnnotation
77
object Dependencies {
8-
private def nettyModule(module: String) = "io.netty" % s"netty-$module" % "4.2.7.Final"
8+
private def nettyModule(module: String) = "io.netty" % s"netty-$module" % "4.2.9.Final"
99

10-
val gProtoVersion = "4.33.1"
10+
val gProtoVersion = "4.33.2"
1111
val gProto = "com.google.protobuf" % "protobuf-java" % Dependencies.gProtoVersion
1212
val overrides = Def.setting(
1313
Seq(
@@ -31,13 +31,13 @@ object Dependencies {
3131

3232
// Node protobuf schemas
3333
lazy val protoSchemasLib =
34-
"com.wavesplatform" % "protobuf-schemas" % "1.6.0-90-SNAPSHOT" classifier "protobuf-src" intransitive ()
34+
"com.wavesplatform" % "protobuf-schemas" % "1.6.0" classifier "protobuf-src" intransitive ()
3535

36-
private def pekkoModule(module: String) = "org.apache.pekko" %% s"pekko-$module" % "1.2.1"
36+
private def pekkoModule(module: String) = "org.apache.pekko" %% s"pekko-$module" % "1.4.0"
3737

3838
private def pekkoHttpModule(module: String, version: String = "1.3.0") = "org.apache.pekko" %% module % version
3939

40-
private def kamonModule(module: String) = "io.kamon" %% s"kamon-$module" % "2.7.7"
40+
private def kamonModule(module: String) = "io.kamon" %% s"kamon-$module" % "2.8.0"
4141

4242
private def jacksonModule(group: String, module: String) = s"com.fasterxml.jackson.$group" % s"jackson-$module" % "2.20.1"
4343

@@ -51,23 +51,22 @@ object Dependencies {
5151
val googleGuava = "com.google.guava" % "guava" % "33.5.0-jre"
5252
val kamonCore = kamonModule("core")
5353
val machinist = "org.typelevel" %% "machinist" % "0.6.8"
54-
val logback = "ch.qos.logback" % "logback-classic" % "1.5.21"
55-
val janino = "org.codehaus.janino" % "janino" % "3.1.12"
54+
val logback = "ch.qos.logback" % "logback-classic" % "1.5.22"
5655
val asyncHttpClient = "org.asynchttpclient" % "async-http-client" % "3.0.4"
5756
val curve25519 = "com.wavesplatform" % "curve25519-java" % "0.6.6"
5857
val nettyHandler = nettyModule("handler")
5958

6059
val playJson = "org.playframework" %% "play-json" % "3.0.6"
6160

6261
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.19" % Test
63-
val scalaJsTest = Def.setting("com.lihaoyi" %%% "utest" % "0.9.1" % Test)
62+
val scalaJsTest = Def.setting("com.lihaoyi" %%% "utest" % "0.9.4" % Test)
6463

6564
private def sttp3Module(module: String) = "com.softwaremill.sttp.client3" %% module % "3.11.0"
6665

6766
val sttp3 = sttp3Module("core")
6867
val sttp3Monix = sttp3Module("monix")
6968

70-
val bouncyCastleProvider = "org.bouncycastle" % s"bcprov-jdk18on" % "1.82"
69+
val bouncyCastleProvider = "org.bouncycastle" % s"bcprov-jdk18on" % "1.83"
7170

7271
val console = Seq("com.github.scopt" %% "scopt" % "4.1.0")
7372

@@ -119,7 +118,6 @@ object Dependencies {
119118

120119
lazy val logDeps = Seq(
121120
logback % Runtime,
122-
janino % Runtime,
123121
pekkoModule("slf4j") % Runtime
124122
)
125123

@@ -131,10 +129,10 @@ object Dependencies {
131129
Seq(
132130
rocksdb,
133131
"commons-net" % "commons-net" % "3.12.0",
134-
"commons-io" % "commons-io" % "2.20.0",
132+
"commons-io" % "commons-io" % "2.21.0",
135133
"com.github.pureconfig" %% "pureconfig-core" % "0.17.9",
136134
"com.github.pureconfig" %% "pureconfig-generic-scala3" % "0.17.9",
137-
"net.logstash.logback" % "logstash-logback-encoder" % "8.1" % Runtime,
135+
"net.logstash.logback" % "logstash-logback-encoder" % "9.0" % Runtime,
138136
kamonCore,
139137
kamonModule("system-metrics"),
140138
kamonModule("influxdb"),
@@ -155,7 +153,7 @@ object Dependencies {
155153
"com.esaulpaugh" % "headlong" % "13.3.1",
156154
"com.github.jbellis" % "jamm" % "0.4.0", // Weighing caches
157155
web3jModule("abi").excludeAll(ExclusionRule("org.bouncycastle", "bcprov-jdk15on")),
158-
"com.wavesplatform" % "blst-java" % "0.3.15-SNAPSHOT"
156+
"com.wavesplatform" % "blst-java" % "0.3.15"
159157
) ++ console ++ logDeps ++ protobuf.value
160158
)
161159

0 commit comments

Comments
 (0)