Commit Graph

295 Commits

Author SHA1 Message Date
Joakim Erdfelt b9b0166065 Temporarily removing maven threaded execution to isolate specific tests that cause hangs 2018-09-08 08:38:30 -05:00
Joakim Erdfelt d1602d340f Attempting to use older jdk-11-ea+18 JRE
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-09-07 16:15:08 -05:00
Joakim Erdfelt cbcd0e4caf Simplifying Jenkinsfile even more
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-09-07 15:22:45 -05:00
Joakim Erdfelt 980cde7f70 Greatly simplifying Jenkinsfile build
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-09-07 14:56:31 -05:00
Joakim Erdfelt a3f1592c50 Issue #2431 - Upgrade to Junit 5 (#2436)
+ Changes needed for new Junit 5
+ Migrating from Vintage junit API to Jupiter junit API
+ Relies on SNAPSHOT jetty-test-helper
  - this will be a formal release once this issue has been
    resolved satisfactory
+ Have jenkins always pull latest SNAPSHOT for each build
+ Adding jetty.snapshots repository
+ Using surefire 2.22.0 per advice from junit
+ Ensuring <reuseForks>true</reuseForks> to work around issue junit-team/junit5#801
+ Disabling <forkMode>always</forkMode> in maven-surefire-plugin
  due to bug https://github.com/junit-team/junit5/issues/801
+ OSGi tests must remain at vintage due to PaxExam
+ Moving from vintage TestingDir to jupiter WorkDir
+ Fixing imports to use jupiter, not vintage
+ Migrating vintage ExpectedException to jupiter assertThrows
+ Migrating vintage TestName to jupiter TestInfo
+ Migrating @RunWith(Parameterized.class)
  to @ParameterizedTest with Argument Sources
+ Migrating assertTrue(val.contains(needle))
  to assertThat(val, containsString(needle))
+ Aligning junit versions per recommendations from @sormuras
+ Adjusting parameter order change for assertEquals()
+ Test LifeCycle Annotation Migration

junit 4      | junit 5 / jupiter
------------ | -----------
@Before      | @BeforeEach
@After       | @AfterEach
@BeforeClass | @BeforeAll
@AfterClass  | @AfterAll

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-09-05 10:07:17 +10:00
Olivier Lamy 44ace1f8c8
cleanup Jenkinsfile: non needed/unused variable (#2880)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-09-03 16:19:18 +10:00
Olivier Lamy f4a0bfbdd8
Issue #2746 jmh module (#2750)
#2746 move jmh classes to a dedicated jmh module

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-08-04 14:08:13 +10:00
Olivier Lamy 0ba1d9b5a5
Issue #307 datecache contention (#2725)
* use DateTimeFormatter which is threadsafe so no need of synchronized block  #307

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-07-26 20:46:50 +10:00
Olivier Lamy 9e8743788d
no need of jacoco for other jdk btw jenkins ui do not display jdk label.. (#2673)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-06-19 09:24:02 +10:00
Olivier Lamy f7df6b3326
increase default build memory (#2669)
increase default build memory
2018-06-15 17:13:05 +10:00
Joakim Erdfelt f9b5949541 Bumping up max MAVEN memory to 2GB
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-06-14 08:11:54 -05:00
Joakim Erdfelt ce09e48b5b [WIP] Issue #2597 - Improving UnixSocketTest behavior. (#2635)
* Issue #2597 - Improving UnixSocketTest behavior.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>

jnr doesn't like filename/path with strange character so use a new property for jenkins build with docker

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-06-07 15:39:56 +10:00
Olivier Lamy 28466efa04
rework maven it test to avoid duplicate class, try to make port file creation atomic (#2607)
* use a single instance of the class TestGetContent.java #2600
* make the jetty.port file creation atomic
* enforce some tests
* ensure we use the correct java home to run invoker plugin, yes this should fail on ci for jdk9+
* use an other maven home for invoker runs
* include failsafe-reports from maven invoker plugin

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-06-05 18:18:42 +10:00
Olivier Lamy 154298af64
run maven it tests as default #2576
* run maven its test per default #2576

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-05-30 08:33:25 +10:00
olivier lamy a1f5b6523a ooops fix my bad
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-05-15 10:17:01 +10:00
olivier lamy 7e99e07a5b display mvn stack trace
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-05-15 10:05:38 +10:00
Olivier Lamy d64d0348b7
test some Jenkinsfile changes (#2471)
* maven 3.5

* add surefire timeout to avoid build stuck
2018-04-25 19:29:21 +10:00
Olivier Lamy 571232d4ce
change thread number to test on the build platform 2018-04-22 09:47:28 +10:00
olivier lamy e504085b57 grhhh I missed to get rid of this one...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-21 16:55:18 +10:00
olivier lamy 7912a55dec use variable for this reused value
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-21 10:39:18 +10:00
olivier lamy b261c11920 use a variable for maven tool and use same directory as now local repo is relative
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 17:48:08 +10:00
olivier lamy 43e030b568 using the same for all invocation will work better...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 16:50:30 +10:00
olivier lamy c910b0e6d5 test new local repository
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 16:40:05 +10:00
olivier lamy 791d4c7d2c Revert "use an other local repository to try having install plugin stuck..."
This reverts commit ef17962f51.
2018-04-20 16:38:52 +10:00
olivier lamy ef17962f51 use an other local repository to try having install plugin stuck...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 16:32:14 +10:00
Olivier Lamy 977fb521a0
add jdk11 in the jdk list (#2438)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-13 22:25:41 +10:00
olivier lamy cffc2b0c12 use last maven version
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-13 12:48:12 +10:00
olivier lamy e6f02b578a add jdk10 in jenkinsfile
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-06 10:38:49 +10:00
Jan Bartel b4e400f236 Jetty 9.4.x 2231 refactor session tests (#2382)
* Issue #2231 WIP

* Issue #2231 Add tests for FileSessionDataStore and MongoSessionDataStore.

* Issue #2231 create unit tests for every SessionDataStore

Signed-off-by: Jan Bartel <janb@webtide.com>

* Issue #2231 Refactor session tests

Signed-off-by: Jan Bartel <janb@webtide.com>

* Issue #2231 Refactor and cleanup session tests.

Signed-off-by: Jan Bartel <janb@webtide.com>

* hazelcast tests faster

Signed-off-by: olivier lamy <olamy@webtide.com>

* make hazelcasts tests even faster

Signed-off-by: olivier lamy <olamy@webtide.com>

* cleanup comments

Signed-off-by: olivier lamy <olamy@webtide.com>

* run mongodb test in embdedded mode

Signed-off-by: olivier lamy <olamy@webtide.com>

* mongodb embedded test enabled per default

Signed-off-by: olivier lamy <olamy@webtide.com>

* Issue #2231 more session tests

Signed-off-by: Jan Bartel <janb@webtide.com>

* fix mongodb embedded tests

Signed-off-by: olivier lamy <olamy@webtide.com>

* cleanup code

Signed-off-by: olivier lamy <olamy@webtide.com>

* use Logger rather than System.err.println

Signed-off-by: olivier lamy <olamy@webtide.com>

* Issue #2231 Add test for DefaultSessionCache

Signed-off-by: Jan Bartel <janb@webtide.com>

* Issue #2231 Redisable mongo tests by default.

Signed-off-by: Jan Bartel <janb@webtide.com>

* fix issue with empty local repo build

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* jenkins should run mongodb tests

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* build this plugin last so we should not hit the maven invoker plugin

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* build test first for this one

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* use invoker plugin 3.0.2-SNAPSHOT as there is a fix for https://issues.apache.org/jira/browse/MINVOKER-191

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* temporary use of apache snapshots repository because of maven-invoker-plugin 3.0.2-SNAPSHOT

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-03-28 20:14:15 +10:00
Olivier Lamy 5286fb8081
[WIP] add it test for jspc plugin so we can test it with jdk10 (#2363)
* add it test for jspc plugin so we can test it with jdk10

Signed-off-by: olivier lamy <olamy@webtide.com>

* record maven invoker results

Signed-off-by: olivier lamy <olamy@webtide.com>

* seems to be require as a dependency

Signed-off-by: olivier lamy <olamy@webtide.com>

* no need of install

Signed-off-by: olivier lamy <olamy@webtide.com>

* remove invoker as it do not support well parallel

Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-21 21:11:16 +10:00
olivier lamy 16699214c6 fix using -DskipTests not skipping tests #2359
Signed-off-by: olivier lamy <olamy@webtide.com>

use -DskipTests

Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-20 21:19:02 +10:00
olivier lamy 016df7e15b use settings file which configure using nexus mirror
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-15 15:48:31 +10:00
Olivier Lamy a40b5ccf35 simplify using new syntax (#2286)
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-06 19:09:12 +11:00
Joakim Erdfelt 8728f2b2c7 Marking stages with jdk name too (helping in jenkins UI) 2018-02-28 12:43:03 -06:00
olivier lamy 866461a501 use a separated local maven repo per build and run maven in multi thread surefire configuration improvement
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-27 10:06:52 +10:00
olivier lamy 21053b9813 make it more simple
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-13 18:02:20 +10:00
olivier lamy 9437732be9 use step declarative
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-13 16:08:22 +10:00
olivier lamy a34a17bbf2 add jdk and os to stage labels
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-13 14:02:18 +10:00
olivier lamy 5547435e09 add matrix with os
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-04 09:46:53 +10:00
olivier lamy 50910d9437 add matrix with os
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-04 09:45:25 +10:00
olivier lamy d838ee33d7 fix active branch name detection
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-03 20:56:12 +10:00
olivier lamy 6b56136163 fix compact 3 stage syntax
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 18:15:59 +10:00
olivier lamy 3fed7205fd really parallel
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 16:27:43 +10:00
olivier lamy 99fc4ab471 run in parallel
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 14:29:08 +10:00
olivier lamy 5fbea380bf add jdk in mail notif failure
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 12:00:42 +10:00
olivier lamy de91bdeb64 display maven version informations
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:58:54 +10:00
olivier lamy 1aa5f84a20 fix loop variable name
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:53:35 +10:00
olivier lamy 1f71485795 fix loop variable name
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:52:46 +10:00
olivier lamy f9ec02b8bb fix loop variable name
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:51:28 +10:00
olivier lamy 6ccf7cb9d2 move Method def outside of the loop
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:48:13 +10:00
olivier lamy 127de228ef fix failing formatting from ide
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:46:35 +10:00
olivier lamy b558ebb812 fix failing formatting from ide
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:44:55 +10:00
olivier lamy f52f1cee2c add multiple jdks build
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:24:31 +10:00
Joakim Erdfelt a472546bd0 Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x 2017-08-16 05:05:58 -07:00
Joakim Erdfelt 7ac18fc215 Javadoc build doesn't need to be offline 2017-08-16 05:05:04 -07:00
Joakim Erdfelt 1311052b15 Cleaning up state of branch to match the original jetty-9.4.x
+ Does not include changes to /jetty-cdi/
+ Does not include changes to /jetty-websocket/ for javax.websocket-1.1
2017-08-08 09:47:04 -07:00
Joakim Erdfelt c6d45c0af1 Restoring Jenkinsfile testing 2017-08-08 09:14:05 -07:00
olivier lamy d438c51075 activate mojo it profile in Jenkinsfile
Signed-off-by: olivier lamy <olamy@webtide.com>
2017-08-08 09:13:56 -07:00
Joakim Erdfelt 712b5bbcf9 Making javadoc build stage be offline instead
(cherry picked from commit c794af8)
2017-05-12 12:08:11 -07:00
Joakim Erdfelt c794af869e Making javadoc build stage be offline instead 2017-05-12 06:11:03 -07:00
Greg Wilkins 02d4e5d1f6 More time to run tests 2017-03-30 17:11:28 +11:00
Simone Bordet 53281d3202 Merged branch 'jetty-9.2.x' into 'jetty-9.3.x'. 2017-01-18 18:52:20 +01:00
Olivier Lamy 9bc4cd32fc backport of fixes for #592 (#1208)
Signed-off-by: olivier lamy <olamy@webtide.com>
2017-01-01 20:33:51 +11:00
Joakim Erdfelt 76992139f8 Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-10-20 15:11:25 -07:00
Joakim Erdfelt 3bfc914889 More attempts at jacoco exclusions 2016-10-20 14:14:50 -07:00
Joakim Erdfelt a733d2768c Setting jacoco jenkins publisher to report only on org.eclipse.jetty.* 2016-10-20 12:39:47 -07:00
Joakim Erdfelt bb0ac62328 Correcting for Jenkinsfile "stage" syntax warning
The Warning Message:

   "Using the 'stage' step without a block argument is deprecated"
2016-10-20 11:29:24 -07:00
Joakim Erdfelt 09abf0b4bd Revert "Correcting Jenkinsfile warning"
This reverts commit d4abbb0499.
2016-10-20 11:09:24 -07:00
Joakim Erdfelt d4abbb0499 Correcting Jenkinsfile warning
+ Using the 'stage' step without a block argument is deprecated
2016-10-20 10:03:18 -07:00
Joakim Erdfelt 6ded652dae Tweaking jacoco includes/excludes 2016-10-20 09:31:00 -07:00
Joakim Erdfelt 0162140e09 Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-10-19 16:16:59 -07:00
Joakim Erdfelt 91cbb067f8 Limiting jacoco reports to only org.eclipse.jetty classes 2016-10-19 14:36:59 -07:00
Joakim Erdfelt b459c4118b Using new recommended timeout() syntax 2016-10-19 13:15:39 -07:00
Joakim Erdfelt 52e81a5ef8 Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-10-19 10:56:49 -07:00
Joakim Erdfelt c3a07945cc Adding more reports to build 2016-10-19 10:07:26 -07:00
Joakim Erdfelt 91e5fb2ce5 Adding jacoco report generation and publishing 2016-10-19 08:51:45 -07:00
Joakim Erdfelt a45e8b5154 Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-09-26 09:47:51 -07:00
Joakim Erdfelt 885bee09a5 Adjusting Jenkins timeouts 2016-09-26 09:47:29 -07:00
Joakim Erdfelt 5f41e972aa Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-09-20 13:01:14 -07:00
Joakim Erdfelt e0c433c831 Adding timeout for compile and javadoc 2016-09-20 13:00:57 -07:00
Joakim Erdfelt 4527ba1801 Merge branch 'jetty-9.2.x' into jetty-9.3.x 2016-08-15 15:22:53 -07:00
Joakim Erdfelt 36ac693385 Some Jenkinsfile cleanup 2016-08-15 15:18:18 -07:00
Joakim Erdfelt 78544b999b Adding email on stage failure 2016-08-15 13:37:38 -07:00
Joakim Erdfelt d6dd5046ce work around jetty-distribution incremental build issue 2016-07-29 16:09:03 -07:00
Joakim Erdfelt db76da0fee Simplifying build & test 2016-07-29 12:48:21 -07:00
Joakim Erdfelt 796e596673 Removing windows build from pipeline (takes too long) 2016-07-28 15:41:36 -07:00
Joakim Erdfelt 995a78053c Jenkins experiment with windows and timeouts 2016-07-28 15:02:56 -07:00
Joakim Erdfelt 71b0c88607 Tweaking test stage issues with dependency plugin 2016-07-28 14:39:39 -07:00
Joakim Erdfelt 6fb03201f8 Adding permgen setting to java env 2016-07-28 12:11:43 -07:00
Joakim Erdfelt 428be69dc0 Adding Jenkinsfile for 9.2.x 2016-07-28 12:00:24 -07:00
Joakim Erdfelt d3b9157217 Updating maven builds to be batchless, fixing test stage 2016-07-26 10:40:46 -07:00
Joakim Erdfelt a707ec2b3c Tweaking compile & testing 2016-07-26 07:25:23 -07:00
Joakim Erdfelt aa86d120e5 Adding scm checkout 2016-07-25 16:10:46 -07:00
Joakim Erdfelt f4febec6ce Correcting quotes 2016-07-25 16:08:19 -07:00
Joakim Erdfelt a8bcba7ebd Test of Jenkinsfile 2016-07-25 16:06:01 -07:00