Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Jetty/Release Checklist"

m
m
 
(One intermediate revision by the same user not shown)
Line 47: Line 47:
 
git clone git://github.com/cometd/cometd.git
 
git clone git://github.com/cometd/cometd.git
 
</source>
 
</source>
<code
+
 
2. edit <code>pom.xml</code> and update jetty-version and repository URL to match the current staged release.
+
2.Edit <code>pom.xml</code> and update jetty-version and repository URL to match the current staged release.
  
 
<source lang="bash">
 
<source lang="bash">
Line 69: Line 69:
 
3. Build cometd.
 
3. Build cometd.
  
<source="bash">
+
<source lang="bash">
 
mvn clean install
 
mvn clean install
 
</source>
 
</source>
Line 81: Line 81:
 
6. Deploy <code>cometd.war</code> to the webapps directory of the jetty-distribution tested above.
 
6. Deploy <code>cometd.war</code> to the webapps directory of the jetty-distribution tested above.
  
<source="bash">
+
<source lang="bash">
 
cp cometd-demo/target/cometd-demo-[version].war [pathToJetty]/jetty-distribution-[jetty-version]/webapps/
 
cp cometd-demo/target/cometd-demo-[version].war [pathToJetty]/jetty-distribution-[jetty-version]/webapps/
 
</source>
 
</source>
Line 87: Line 87:
 
7. Start jetty and make sure there are no exceptions.
 
7. Start jetty and make sure there are no exceptions.
  
<source="bash">
+
<source lang="bash">
 
cd [pathToJetty] && java -jar start.jar
 
cd [pathToJetty] && java -jar start.jar
 
</source>
 
</source>
Line 93: Line 93:
 
8. Go through all pages of the demo and test them.
 
8. Go through all pages of the demo and test them.
  
<source="bash">
+
<source lang="bash">
 
http://localhost:8080/cometd-demo-2.4.1-SNAPSHOT/
 
http://localhost:8080/cometd-demo-2.4.1-SNAPSHOT/
 
</source>
 
</source>

Latest revision as of 10:44, 5 September 2012



Introduction

Complete these steps to determine whether a staged release is set to go.


Steps

Download the staged releases for jetty(x, x+1):

wget https://oss.sonatype.org/content/repositories/jetty-[reponumber]/org/eclipse/jetty/jetty-distribution/[jetty-version]/ jetty-distribution-7.[jetty-minor-version].tar.gz
wget https://oss.sonatype.org/content/repositories/jetty-[reponumber]/org/eclipse/jetty/jetty-distribution/[jetty-version]/jetty-distribution-8.[jetty-minor-version].tar.gz
Note.png
Note:
You must perform the following steps for each release that you are testing.


Testing Jetty

1. Extract the release(s) to a directory of your choice.

2. Start jetty.

cd [installdir] ; java -jar start.jar OPTIONS=rewrite etc/jetty-rewrite.xml etc/jetty-ssl.xml

No exceptions? Good. Proceed. Otherwise investigate.

3. Open http://localhost:8080/ in your favourite browser.

You should see the test.war webapp.

4. Go through ALL the tests and verify that everything works fine.

5. Verify that hot deployment works.

touch [pathToJettyDistribution]/contexts/test.xml

6. Verify that test.war is redeployed in STDOUT.

Testing CometD

1. clone git://github.com/cometd/cometd.git.

git clone git://github.com/cometd/cometd.git

2.Edit pom.xml and update jetty-version and repository URL to match the current staged release.

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <jetty-version>7.6.2.v20120308</jetty-version>
        <jetty-plugin-version>${jetty-version}</jetty-plugin-version>
        <slf4j-version>1.6.4</slf4j-version>
        <spring-version>3.1.0.RELEASE</spring-version>
    </properties>
 
  <repositories>
    <repository>
      <id>Jetty Staging</id>
      <url>https://oss.sonatype.org/content/repositories/jetty-988/</url>
    </repository>
  </repositories>

3. Build cometd.

mvn clean install

4. Be patient.

5. Run the loadtest as it is described here: http://cometd.org/documentation/2.x/howtos/loadtesting. Keep the default values, but make sure that you raise the client setting to 1000. We might change the default to 1000 (currently 100). Run the loadtest until JIT compilation time is close to zero value (after about 10k calls).

Make sure that performance results are reasonably fast.

6. Deploy cometd.war to the webapps directory of the jetty-distribution tested above.

cp cometd-demo/target/cometd-demo-[version].war [pathToJetty]/jetty-distribution-[jetty-version]/webapps/

7. Start jetty and make sure there are no exceptions.

cd [pathToJetty] && java -jar start.jar

8. Go through all pages of the demo and test them.

http://localhost:8080/cometd-demo-2.4.1-SNAPSHOT/

9. All tests green? Yeeeaaaaay!

Back to the top