You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2026/09/02 17:14:39 UTC

(hadoop-cloudstore) branch main updated: HADOOP-19880. ATR release support

This is an automated email from the ASF dual-hosted git repository.

steveloughran pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hadoop-cloudstore.git


The following commit(s) were added to refs/heads/main by this push:
     new 21a0061  HADOOP-19880. ATR release support
21a0061 is described below

commit 21a0061d184fd1a5f5c03557e86416f0e018d575
Author: Steve Loughran <st...@apache.org>
AuthorDate: Wed Sep 2 18:14:27 2026 +0100

    HADOOP-19880. ATR release support
    
    - timestamp is only fixed in release profile (and documented as such)
    - build numbering from last commit is cut (cute, but breaks reproducibility)
    - asf.yaml updated for ATR
    + pr template corrected
---
 .asf.yaml                        |  4 +-
 .github/pull_request_template.md |  2 +-
 BUILDING.md                      | 40 +++++--------------
 pom.xml                          | 86 +++++++++++++---------------------------
 4 files changed, 40 insertions(+), 92 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index aef2dd3..68db8a1 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -25,9 +25,9 @@ project:
     name: Apache Hadoop Cloudstore Tool
     description: Cloudstore is a JAR file containing diagnostics entry points for use with the hadoop CLI, intended to help debug connectivity, authentication and performance issues with cloud storage.
     short_description: Cloudstore provides hadoop cloud storage diagnostics and other utility commands.
-    #homepage: https://tooling.apache.org/trusted-releases.html
+    homepage: https://hadoop.apache.org/
     #lifecycle_page: https://tooling.apache.org/trusted-releases.html
-    #download_page: https://github.com/apache/tooling-trusted-releases
+    download_page: https://hadoop.apache.org/releases.html
     bug_database: https://issues.apache.org/jira/browse/
     mailing_lists: https://hadoop.apache.org/mailing_lists.html
     security_contact: security@hadoop.apache.org
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 30a8e42..af8d06f 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -20,7 +20,7 @@
 ### For code changes:
 
 - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
-- [ ] Object storage: have the integration tests been executed and the endpoint declared according?
+- [ ] Object storage: have the integration tests been executed and the endpoint declared?
 - [ ] If adding new runtime dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
 
 
diff --git a/BUILDING.md b/BUILDING.md
index bbf577e..1d27291 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -125,8 +125,7 @@ header comment), and voting/publishing happen as ASF release policy
 requires — a PMC vote is not something CI can substitute for.
 
 Release builds activate the `release` profile, which:
-
-1. Enforces a clean git tree via `buildnumber-maven-plugin`;
+1. Fixes the timestamp of the build to a value in the POM file, rather than set to the current clock.
 2. Emits a CycloneDX SBOM next to the jar:
     - `target/cloudstore-<version>-cyclonedx.json`
     - `target/cloudstore-<version>-cyclonedx.xml`
@@ -157,24 +156,9 @@ it. Cloudstore has two ways to build it's source file `cloudstore-<version>-src.
   a directory that isn't a git checkout at all. `mvn -Prelease clean
   verify` on its own does *not* build this artifact.
 
-It also generates a build version, with the buildnumber plugin.
-On release builds, this will fail the build if there are uncommitted changes.
 
-** You must commit all changes before starting a release build.**
+** You SHOULD commit all changes before starting a release build.**
 
-The build will fail if there are uncommitted changes.
-
-```
-[INFO] --- buildnumber:3.3.0:create (default) @ cloudstore ---
-[INFO] ------------------------------------------------------------------------
-[INFO] BUILD FAILURE
-[INFO] ------------------------------------------------------------------------
-[INFO] Total time:  4.344 s
-[INFO] Finished at: 2026-06-26T17:23:21+01:00
-[INFO] ------------------------------------------------------------------------
-[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:3.3.0:create (default) on project cloudstore:
-        Cannot create the build number because you have local modifications : 
-```
 
 ### One-time setup
 
@@ -221,24 +205,25 @@ ATR then runs its own checks (signature, hash, archive structure, license,
 RAT, SBOM conformance) against the uploaded candidate automatically; the job
 summary points at where to review them.
 
-ATR tracks the candidate by project and
-version — but do tag the commit anyway so "Reproducing a release yourself"
+ATR tracks the candidate by project and version — but do tag the commit anyway so "Reproducing a release yourself"
 below stays meaningful: `git tag v$ver <ref>; git push origin v$ver`.
 
 ### Phase 2: vote and publish (PMC, in ATR)
 
 From here the process is entirely in ATR, not this repository:
 
-1. Review the candidate and its check results on the ATR project page.
-2. Start the vote from ATR — it emails dev@ with a link to the candidate on
+1. Release Manager: Review the candidate and its check results on the [ATR project page](https://releases.apache.org/#project-hadoop-cloudstore).
+2. Release Manager: check out the same source from SCM, perform a local build with the `-Prelease` flag *and verify the artifact checksums match*.
+3. Release Manager: Start the vote from ATR — it emails dev@ with a link to the candidate on
    ATR (link only that page; see
    [Staging and voting](https://github.com/apache/tooling-trusted-releases/blob/main/atr/docs/staging-and-voting.md#what-to-link-in-a-vote-announcement)
    for why).
-3. Developers (nonbinding) and PMC members vote (binding).
-4. On a passing vote, finish the release from ATR. From Beta, ATR publishes
+4. Developers (nonbinding) and PMC members vote (binding).
+5. Release Manager: On a passing vote, finish the release from ATR. From Beta, ATR publishes
    directly to `dist/release`; during Alpha it publishes to `dist/atr` and a
    committer must move the files, as described in
    [Promoting to release](https://github.com/apache/tooling-trusted-releases/blob/main/atr/docs/promoting-to-release.md).
+6. Announce the release on hadoop general mailing list.
 
 
 ## Building and signing release artifacts locally
@@ -289,10 +274,3 @@ ATR" section of
 [Staging and voting](https://github.com/apache/tooling-trusted-releases/blob/main/atr/docs/staging-and-voting.md#how-files-reach-atr).
 
 
-## How to bypass buildnumber checks
-
-```bash
-mvn clean install -Prelease -DskipTests -Dbuildnumber.check=false -Dbuildnumber.update=false
-```
-
-
diff --git a/pom.xml b/pom.xml
index e156383..948032e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,14 +39,6 @@
 
   <properties>
 
-    <!-- Reproducible Builds: a fixed point in time used by maven-jar-plugin
-         (and other plexus-archiver-backed plugins) to normalize entry
-         timestamps, so two builds of the same commit produce a
-         byte-identical jar regardless of when/where they run. Kept in sync
-         with HEAD's commit time by dev-support/bump-version.sh on every
-         release bump; do not hand-edit outside that script. -->
-    <project.build.outputTimestamp>2026-08-27T15:23:49Z</project.build.outputTimestamp>
-
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <file.encoding>UTF-8</file.encoding>
     <javac.version>1.8</javac.version>
@@ -55,9 +47,6 @@
     <test.build.dir>${project.build.directory}/test-dir</test.build.dir>
     <test.build.data>${test.build.dir}</test.build.data>
 
-    <buildnumber.check>false</buildnumber.check>
-    <buildnumber.update>false</buildnumber.update>
-
     <!-- Most recently released cloudstore version: the version users
          download. Independent of ${project.version}, which moves through
          X.Y-SNAPSHOT cycles during development. Bumped by
@@ -79,6 +68,7 @@
     <!-- last version of checkstyle to run on Java 17-->
     <checkstyle.version>12.3.1</checkstyle.version>
     <checksum-maven-plugin.version>1.11</checksum-maven-plugin.version>
+    <cyclonedx.schema.version>1.6</cyclonedx.schema.version>
     <doxia-module-markdown.version>1.12.0</doxia-module-markdown.version>
     <gcs-connector.version>hadoop3-2.2.4</gcs-connector.version>
     <hadoop.version>3.4.2</hadoop.version>
@@ -86,7 +76,6 @@
 
     <!-- Add maven build version dependencies here, in order, prefixed with maven -->
     <maven-assembly-plugin.version>3.8.0</maven-assembly-plugin.version>
-    <maven-buildnumber-plugin.version>3.3.0</maven-buildnumber-plugin.version>
     <maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
     <maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version>
     <maven-cyclonedx-plugin.version>2.9.3</maven-cyclonedx-plugin.version>
@@ -295,15 +284,8 @@
     <profile>
       <id>release</id>
       <properties>
-        <buildnumber.check>true</buildnumber.check>
-        <!-- update=false: do NOT `git pull` during the release build. doUpdate
-             runs `git pull` to refresh the working copy, which fails on setups
-             where the local branch has no matching upstream ref
-             ("fatal: couldn't find remote ref HEAD") and aborts the whole
-             build. The release only needs the clean-tree check (doCheck) and
-             the local revision; pulling is the releaser's job, done
-             deliberately before the build. -->
-        <buildnumber.update>false</buildnumber.update>
+        <!-- Kept in sync with HEAD's commit time by dev-support/bump-version.sh -->
+        <project.build.outputTimestamp>2026-08-27T15:23:49Z</project.build.outputTimestamp>
       </properties>
       <build>
         <plugins>
@@ -311,7 +293,13 @@
                compile scope only: provided/test deps (Hadoop, AWS SDK,
                GCS, junit, hdfs) are intentionally excluded because they
                are not shipped inside the jar - they come from the host
-               Hadoop install or the test classpath. -->
+               Hadoop install or the test classpath.
+
+               see: https://github.com/CycloneDX/cyclonedx-maven-plugin
+
+
+               Note that warnings are printed about JSON validity; ignore these.
+               -->
           <plugin>
             <groupId>org.cyclonedx</groupId>
             <artifactId>cyclonedx-maven-plugin</artifactId>
@@ -324,15 +312,15 @@
                   <goal>makeBom</goal>
                 </goals>
                 <configuration>
-                  <includeCompileScope>true</includeCompileScope>
+                  <projectType>library</projectType>
+                  <schemaVersion>${cyclonedx.schema.version}</schemaVersion>
+                  <includeCompileScope>false</includeCompileScope>
                   <includeProvidedScope>false</includeProvidedScope>
                   <includeRuntimeScope>false</includeRuntimeScope>
                   <includeSystemScope>false</includeSystemScope>
                   <includeTestScope>false</includeTestScope>
                   <outputFormat>all</outputFormat>
                   <outputName>${project.artifactId}-${project.version}-cyclonedx</outputName>
-                  <schemaVersion>1.5</schemaVersion>
-                  <projectType>library</projectType>
                 </configuration>
               </execution>
             </executions>
@@ -449,6 +437,19 @@
       </build>
     </profile>
 
+    <!--
+     Reproducible Build profile
+     - No timestamps in build
+     - No SCM, local fs, local network state in build, including username.
+    -->
+    <profile>
+      <id>reproducible</id>
+      <properties>
+
+
+
+      </properties>
+    </profile>
     <!--
      This is a profile to enable the use of the ASF snapshot and staging repositories
      during a build. It is useful when testing against nightly or RC releases of dependencies.
@@ -593,11 +594,6 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
           <version>${maven-jar-plugin.version}</version>
-          <configuration>
-            <!--            <archive>
-                          <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
-                        </archive>-->
-          </configuration>
         </plugin>
 
         <!-- Surefire: capture every test's stdout/stderr into a per-test
@@ -629,12 +625,7 @@
               <configuration>
                 <forkCount>1</forkCount>
                 <reuseForks>false</reuseForks>
-                <!--                <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>-->
                 <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
-                <!--
-                                <systemPropertyVariables>
-                                </systemPropertyVariables>
-                -->
                 <redirectTestOutputToFile>true</redirectTestOutputToFile>
                 <includes>
                   <include>**/ITest*.java</include>
@@ -828,27 +819,6 @@
           </execution>
         </executions>
       </plugin>
-      <!-- kept failing -->
-      <!--  Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:3.3.0:create failed: begin 4, end 0, length 0 -->
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>buildnumber-maven-plugin</artifactId>
-        <version>${maven-buildnumber-plugin.version}</version>
-        <configuration>
-          <shortRevisionLength>7</shortRevisionLength>
-          <doCheck>${buildnumber.check}</doCheck>
-          <doUpdate>${buildnumber.update}</doUpdate>
-          <revisionOnScmFailure>UNKNOWN</revisionOnScmFailure>
-        </configuration>
-        <executions>
-          <execution>
-            <phase>validate</phase>
-            <goals>
-              <goal>create</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
@@ -856,10 +826,10 @@
           <archive>
             <manifest>
               <mainClass>org.apache.hadoop.fs.store.Cloudstore</mainClass>
-              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+              <addDefaultImplementationEntries>false</addDefaultImplementationEntries>
+              <addBuildEnvironmentEntries>false</addBuildEnvironmentEntries>
             </manifest>
             <manifestEntries>
-              <git-SHA-1>${buildNumber}</git-SHA-1>
             </manifestEntries>
           </archive>
         </configuration>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org