Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. download staged artifacts. Check their signature and hashes.
    1. cd ~/tmp
    2. ./tools/download_staged_release.sh 0.8.0 1  # <version> <rc-num>
    3. [RM] verify the reported signature is for an "apache.org" address ("gpg: Good signature from ...")
      1. gpg --verify apache-iotdb-0.8.0-incubating-source-release.zip.asc apache-iotdb-0.8.0-incubating-source-release.zip

      2. gpg --verify apache-iotdb-0.8.0-incubating-bin.zip.asc apache-iotdb-0.8.0-incubating-bin.zip

    4. [RM] verify the reported hashes:
      1. shasum -a512 apache-iotdb-0.8.0-incubating-source-release.zip

      2. Compare the checksum printed out with the one of the corresponding SHA512 file
      3. shasum -a512 apache-iotdb-0.8.0-incubating-bin.zip

      4. Compare the checksum printed out with the one of the corresponding SHA512 file
  2. extract src bundle
    1. cd downloaded-iotdb-0.8.0rc1
    2. unzip 0.8.0/rc1/apache-iotdb-0.8.0-source-release.zip
    3. verify the existence of LICENSE, NOTICE, README, RELEASE_NOTES files in the extracted source bundle
    4. [RM] verify the staged source README, RELEASE_NOTE files correspond to those in the extracted source bundle
    5. Run RAT on the extracted source
  3. staged src bundle items: content, can compile & test
    1. cd apache-iotdb-0.8.0
    2. check the contents of LICENSE, NOTICE, README, RELEASE_NOTES
      1. Check the any year references (NOTICE file contains at least one in the Copyright notice, that could need updating)
    3. UNPACK the binary artefact and check the contents of LICENSE-binary and NOTICE-binary
    4. build from directions in README
      1. In addition to the build directions it it advisable to ensure building with an empty maven local repo, as this ensures all dependencies are currently available, by adding the following argument to the maven execution: "-Dmaven.repo.local=../.m2"
    5. [RM] review target/rat.txt (though the build should fail if RAT constraints aren't met)
      1. Find and files containing binary content with this command:

        1. find . -type f -name 'rat.txt' -exec grep -l " B " {} \;
      2. Then review for B (binary) content in those files:   grep " B " target/rat.txt

    6. Search for SNAPSHOT references
      1. find . -type f -name 'pom.xml' -exec grep -l "SNAPSHOT" {} \;
    7. ./mvnw install 
      1. the tests should all pass
    8. NOTE: can't do this in a source-bundle (only in a repo) ./mvnw site:site  # generate reports
      1. the tests should all pass

...

The important part is that it's a "correct signature" (Above is on my German Mac Book). And that the email assigned to the signature is an Apache email. The "ultimativ" at the end depends on your PGP trust environment. If you are not yet trusting any Apache people, this might be different.

If you get the following error,  it means you don't have the public key of the person who signed the message.

Code Block
gpg: Signature made 一 10/14 13:04:42 2019 CST
gpg:                using RSA key BA45CDBB87E8B146A81F5BBE2206EF8F64C35889
gpg: Can't check signature: No public key


Then you can use the RSA key provided to receive the public key to verify and verify again.

Code Block
gpg2 --receive-keys BA45CDBB87E8B146A81F5BBE2206EF8F64C35889

gpg: key 2206EF8F64C35889: public key "Xiangdong Huang (Apache IoTDB release signing key) <hxd@apache.org>" imported
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   2  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 2u
gpg: Total number processed: 1
gpg:               imported: 1

Verifying the hashes (SHA512)

...

You however don't have to check everything. I usually check the first 8 chars and the last 8 ... the probability of the rest in the middle being different is minimal..

Running RAT

Before building it might be a good idea to run RAT on the unpacked sources. This will find all binaries and files without headers completely ignoring any "exclusions" in the pom.

Download the latest version of RAT from here: https://creadur.apache.org/rat/download_rat.cgi

Unpack it somewhere and change into the unpacked source-directory and run the following command:

Code Block
java -Xms1024m -Xmx1024m -jar {path-to-apache-rat-0.13.jar} .