This is an automated email from the ASF dual-hosted git repository.
Fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-format.git
The following commit(s) were added to refs/heads/master by this push:
new b9d9961 MINOR: Produce nightly snapshot (#614)
b9d9961 is described below
commit b9d996100168423d361f2c76d73d7ff8aae9567f
Author: Fokko Driesprong <[email protected]>
AuthorDate: Fri Sep 4 10:03:20 2026 +0200
MINOR: Produce nightly snapshot (#614)
* Produce nightly snapshot
This adds a workflow to produce a nighthly snapshot
* Bump Thrift to 0.24.0
* Move installing Thrift to a separate script
* Bump Thrift to 0.24.0
* Only run when thrift.parquet changes
* Add permissions block
---
.github/workflows/publish_snapshot.yml | 53 ++++++++++++++++++++++++++++++++++
.github/workflows/test.yml | 10 +------
dev/install-thrift.sh | 35 ++++++++++++++++++++++
3 files changed, 89 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/publish_snapshot.yml
b/.github/workflows/publish_snapshot.yml
new file mode 100644
index 0000000..4dc331f
--- /dev/null
+++ b/.github/workflows/publish_snapshot.yml
@@ -0,0 +1,53 @@
+# 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: Publish Snapshot
+
+on:
+ push:
+ branches:
+ - master
+ paths:
+ - 'src/main/thrift/parquet.thrift' # Only run when there are changes in
the structure
+
+permissions:
+ contents: read
+
+jobs:
+ publish-snapshot:
+ if: github.repository == 'apache/parquet-format'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+
+ - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 #
v5.7.0
+ with:
+ distribution: temurin
+ java-version: 17
+
+ - name: Install Thrift
+ run: ./dev/install-thrift.sh
+
+ - name: Publish snapshot
+ env:
+ ASF_USERNAME: ${{ secrets.NEXUS_USER }}
+ ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
+ run: |
+ echo
"<settings><servers><server><id>apache.snapshots.https</id><username>$ASF_USERNAME</username><password>$ASF_PASSWORD</password></server></servers></settings>"
> "$RUNNER_TEMP/settings.xml"
+ mvn --settings "$RUNNER_TEMP/settings.xml" --batch-mode -ntp
-DskipTests deploy
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 5385891..90677ff 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -55,15 +55,7 @@ jobs:
java-version: ${{ matrix.java }}
distribution: temurin
- name: before_install
- run: |
- sudo apt-get update -qq
- sudo apt-get install -qq protobuf-compiler
- sudo apt-get install -qq libboost-dev libboost-test-dev
libboost-program-options-dev libevent-dev automake libtool flex bison
pkg-config g++ libssl-dev
- wget -qO-
https://archive.apache.org/dist/thrift/0.24.0/thrift-0.24.0.tar.gz | tar zxf -
- cd thrift-0.24.0/
- chmod +x ./configure
- ./configure --disable-libs
- sudo make install
+ run: ./dev/install-thrift.sh
- name: install
run: |
mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true
-Dsource.skip=true -Djava.version=${{ matrix.java }}
diff --git a/dev/install-thrift.sh b/dev/install-thrift.sh
new file mode 100755
index 0000000..f2ac40b
--- /dev/null
+++ b/dev/install-thrift.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# 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.
+#
+# Installs Apache Thrift (and its build dependencies) from source.
+# Used by the GitHub Actions workflows to generate the Parquet thrift bindings.
+
+set -euo pipefail
+
+THRIFT_VERSION="${THRIFT_VERSION:-0.24.0}"
+
+sudo apt-get update -qq
+sudo apt-get install -qq protobuf-compiler
+sudo apt-get install -qq libboost-dev libboost-test-dev
libboost-program-options-dev libevent-dev automake libtool flex bison
pkg-config g++ libssl-dev
+
+wget -qO-
"https://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz"
| tar zxf -
+cd "thrift-${THRIFT_VERSION}/"
+chmod +x ./configure
+./configure --disable-libs
+sudo make install