fluo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] ctubbsii commented on a change in pull request #129: #127 Provide instructions for verifying release
Date Mon, 26 Feb 2018 20:14:26 GMT
ctubbsii commented on a change in pull request #129:  #127 Provide instructions for verifying
release
URL: https://github.com/apache/fluo-website/pull/129#discussion_r170720385
 
 

 ##########
 File path: pages/release-process.md
 ##########
 @@ -146,68 +146,108 @@ When the vote passes on a release candidate, follow the steps below
to complete
 
 ### Test a Fluo release
 
-Below are two common testing strategies to verify a Fluo release candidate:
-
-1. Run the integration tests of projects that depend on Fluo (using the release candidate
jars)
-
-1. Run example Fluo applications (using the release candidate tarball)
-
-These strategies are described below with step-by-step instructions.
-
-#### Run integration tests
-
-A Fluo release can be tested by running the integration tests of projects that use Fluo.
-
-1. Before running integration tests, you'll need the following information:
-    * Release version (example: `1.2.0`)
-    * Staging repo (example: `https://repository.apache.org/content/repositories/orgapachefluo-1023/`)
-        * Note: The staging repo changes with each release candidate.
-
-1. Add the following configuration to `~/.m2/settings.xml` to instruct Maven to build using
the staging repo
-   for the release candidate. Also, make sure that the `fluoRC` profile is active while you
are testing the release
-   but comment out `<activeProfiles>` section after you are done testing.
-    ```xml
-    <profiles>
-      <profile>
-        <id>fluoRC</id>
-        <repositories>
-          <repository>
-            <id>fluorc</id>
-            <name>fluorc</name>
-            <url>https://repository.apache.org/content/repositories/orgapachefluo-1023/</url>
-          </repository>
-        </repositories>
-        <pluginRepositories>
-          <pluginRepository>
-            <id>fluorcp</id>
-            <name>fluorcp</name>
-            <url>https://repository.apache.org/content/repositories/orgapachefluo-1023/</url>
-          </pluginRepository>
-        </pluginRepositories>
-      </profile>
-    </profiles>
-    <activeProfiles>
-      <activeProfile>fluoRC</activeProfile>
-    </activeProfiles>
-    ```
-1. Clone a project that uses Fluo like the [Fluo Recipes] project below:
+#### Set up your environment
+
+Set up required for all tests:
+
+1. Set the release version, staging repo, and path to release Maven settings:
+   ```shell
+   export RC_VERSION=1.2.0
+   export RC_STAGING=https://repository.apache.org/content/repositories/orgapachefluo-1023/
+   export FLUO_MAVEN=/tmp/fluo-maven.xml
+   ```
+1. Create Maven settings
+   ```shell
+   $ cat <<EOF >$FLUO_MAVEN
+   <settings>
+     <profiles>
+       <profile>
+         <id>fluoRC</id>
+         <repositories>
+           <repository>
+             <id>fluorc</id>
+             <name>fluorc</name>
+             <url>\${env.RC_STAGING}</url>
+           </repository>
+         </repositories>
+         <pluginRepositories>
+           <pluginRepository>
+             <id>fluorcp</id>
+             <name>fluorcp</name>
+             <url>\${env.RC_STAGING}</url>
+           </pluginRepository>
+         </pluginRepositories>
+       </profile>
+     </profiles>
+     <activeProfiles>
+       <activeProfile>fluoRC</activeProfile>
+     </activeProfiles>
+   </settings>
+   EOF
+   ```
+1. If a new release candidate is made, update your staging repo.
+   ```shell
+   $ export RC_STAGING=https://repository.apache.org/content/repositories/orgapachefluo-1024/
+   ```
+
+Set up required to run example Fluo applications
+
+1. Clone [Uno] and fetch Fluo dependencies
+   ```shell
+   git clone https://github.com/astralway/uno.git
+   cd uno
+   ./bin/uno fetch fluo
+   ```
+1. Download release tarball and calculate hash
+   ```shell
+   wget -P downloads/ ${RC_STAGING}/org/apache/fluo/fluo/${RC_VERSION}/fluo-${RC_VERSION}-bin.tar.gz
+   shasum -a 256 downloads/fluo-${RC_VERSION}-bin.tar.gz
+   ```
+1. Set `FLUO_VERSION` and `FLUO_HASH` in `conf/uno.conf`.
+   ```shell
+   vim conf/uno.conf
+   ```
+1. Set up Fluo and your shell
+   ```shell
+   ./bin/uno setup fluo
+   eval "$(./bin/uno env)"
+   ```
+
+### Run the integration tests of projects that use Fluo
 
 Review comment:
   I think this section should go after the phrasecount example with uno. It's really a separate
test case, and it is breaking up the uno test case with phrasecount.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message