lhotari commented on code in PR #25883:
URL: https://github.com/apache/pulsar/pull/25883#discussion_r3350650292


##########
.github/workflows/ci-pulsar-native-image.yaml:
##########
@@ -0,0 +1,78 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: CI - Native Image
+on:
+  # Native-image builds are slow, so this does not run on every PR. It runs 
nightly,
+  # can be triggered manually, and on PRs that touch the native-image metadata 
or its test.
+  schedule:
+    - cron: '30 1 * * *'
+  workflow_dispatch:
+  pull_request:
+    branches:
+      - master
+    paths:
+      - '.github/workflows/ci-pulsar-native-image.yaml'
+      - '**/META-INF/native-image/**'
+      - 'tests/pulsar-client-native-image/**'
+
+env:
+  MAVEN_OPTS: -Xss1500k -Xmx1500m 
-Daether.connector.http.reuseConnections=false 
-Daether.connector.requestTimeout=60000 -Dhttp.keepAlive=false 
-Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3 
-Dmaven.wagon.http.serviceUnavailableRetryStrategy.class=standard 
-Dmaven.wagon.rto=60000
+
+jobs:
+  native-image-smoke-test:

Review Comment:
   For speeding up native image builds in CI, Claude suggested using the [quick 
build 
mode](https://www.graalvm.org/latest/reference-manual/native-image/overview/BuildOutput/#recommendation-qbm:~:text=QBM%3A%20Use%20Quick%20Build%20Mode%20for%20Faster%20Builds)
 (`quickBuild`/`-Ob` flag) for native image compilation.
   
   It should be possible to configure the quick build mode in this way with the 
GraalVM Gradle plugin:
   ```kotlin
   graalvmNative {
       binaries.all {
           quickBuild = true
       }
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to