fluo-notifications mailing list archives

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

 ##########
 File path: pages/release-process.md
 ##########
 @@ -144,6 +144,110 @@ When the vote passes on a release candidate, follow the steps below
to complete
 
  8.  Send an email to `dev@fluo.apache.org` announcing new release.
 
+### Test a Fluo release
+
+#### Set up environment for all tests
+
+1. Set the release version, staging repo, and alias to configure Maven with temporary settings:
+   ```shell
+   export RC_VERSION=1.2.0
+   export RC_STAGING=https://repository.apache.org/content/repositories/orgapachefluo-1023/
+   alias mvn='mvn -s /tmp/fluo-rc-maven.xml'
+   ```
+1. Create temporary Maven settings
+   ```shell
+   $ cat <<EOF >/tmp/fluo-rc-maven.xml
+   <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/
+   ```
+
+#### Run the integration tests of projects that use Fluo
+
+1. Clone the [Fluo Recipes] project:
+    ```shell
+    $ git clone https://github.com/apache/fluo-recipes.git
+    ```
+1. Run the integration test
+    ```shell
+    $ mvn -s $FLUO_MAVEN clean verify -Dfluo.version=$RC_VERSION
+    ```
+Below are more projects with integration tests:
+* [Phrasecount] - `https://github.com/astralway/phrasecount.git`
+* [Stresso] - `https://github.com/astralway/stresso.git`
+* [Webindex] - `https://github.com/astralway/webindex.git`
+
+#### Setup Uno to run Fluo example 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
+   ```shell
+   wget -P downloads/ ${RC_STAGING}/org/apache/fluo/fluo/${RC_VERSION}/fluo-${RC_VERSION}-bin.tar.gz
+   ```
+1. Set `FLUO_VERSION` and `FLUO_HASH` in `conf/uno.conf`.
+   ```shell
+   sed -i "s/export FLUO_VERSION=[^ ]*/export FLUO_VERSION=$RC_VERSION/" conf/uno.conf
+   sed -i "s/export FLUO_HASH=[^ ]*/export FLUO_HASH=$(shasum -a 256 downloads/fluo-${RC_VERSION}-bin.tar.gz
| cut -d ' ' -f 1)/" conf/uno.conf
 
 Review comment:
   this is nice

----------------------------------------------------------------
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