Skip to content

Commit

Permalink
Turn of Maven connection pooling to avoid connection issues on the CI a…
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Oct 1, 2020
1 parent e8fde4e commit 675fae1
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 28 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/camel-master-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ on:

env:
LANG: en_US
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -e

jobs:
build:
if: github.repository == 'apache/camel-quarkus'
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Xmx3000m
outputs:
matrix: ${{ steps.set-native-matrix.outputs.matrix }}
steps:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
version: '11'
- name: Build Camel Quarkus
run: |
./mvnw -B -ntp clean install -Papache-snapshots -pl '!docs'
./mvnw ${MAVEN_ARGS} clean install -Papache-snapshots -pl '!docs'
- name: Tar Maven Repo
shell: bash
run: tar -czvf maven-repo.tgz -C ~ build-data .m2/repository
Expand All @@ -91,7 +91,7 @@ jobs:
git rebase --abort
fi
./mvnw verify -N -B -ntp -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
native-tests:
name: Native Tests - ${{matrix.category}}
Expand Down Expand Up @@ -148,15 +148,15 @@ jobs:
do modules+=("integration-tests/$i");
done
IFS=,
eval ./mvnw -B -ntp clean verify \
eval ./mvnw clean verify \
-Papache-snapshots \
-Dnative \
-Ddocker \
-pl "${modules[*]}"
- name: Report Build Failure
if: failure()
run: |
./mvnw verify -N -B -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
handle-build-status:
needs: native-tests
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
- name: Report build status
id: report
run: |
./mvnw verify -N -B -ntp -Pbuild-notification -Dstatus=verify -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=verify -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
- name: Sync branch Master to Camel Master
if: steps.report.outputs.overall_build_status == 'success'
run: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ on:

env:
LANG: en_US.UTF-8
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -e

jobs:
initial-mvn-install:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Xmx3000m
outputs:
matrix: ${{ steps.set-native-matrix.outputs.matrix }}
steps:
Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
git clone --depth 1 --branch master https://github.com/quarkusio/quarkus.git \
&& cd quarkus \
&& echo "Current Quarkus commit:" $(git rev-parse HEAD) \
&& ./mvnw -B clean install -DskipTests -DskipITs
&& ./mvnw ${MAVEN_ARGS} clean install -DskipTests -DskipITs
- name: Checkout
uses: actions/checkout@v2
- name: mvn clean install -DskipTests
run: |
./mvnw -V -ntp ${BRANCH_OPTIONS} clean install -DskipTests -Dquarkus.build.skip \
./mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} clean install -DskipTests -Dquarkus.build.skip \
-T1C -Dorg.slf4j.simpleLogger.showThreadName=true
- name: Fail if there are uncommitted changes
shell: bash
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
for i in $TEST_MODULES
do modules+=("integration-tests/$i"); done
IFS=,
eval ./mvnw -V -ntp ${BRANCH_OPTIONS} clean verify \
eval ./mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} clean verify \
-Dformatter.skip -Dimpsort.skip -Denforce=false \
-Pnative,docker,ci \
-pl "${modules[*]}"
Expand Down Expand Up @@ -215,19 +215,19 @@ jobs:
- name: cd extensions-core && mvn test
run: |
cd extensions-core
../mvnw -V -ntp ${BRANCH_OPTIONS} \
../mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} \
-Dformatter.skip -Dimpsort.skip -Denforce=false -Dcamel-quarkus.update-extension-doc-page.skip \
test
- name: cd extensions && mvn test
run: |
cd extensions
../mvnw -V -ntp ${BRANCH_OPTIONS} \
../mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} \
-Dformatter.skip -Dimpsort.skip -Denforce=false -Dcamel-quarkus.update-extension-doc-page.skip \
test
- name: cd docs && mvn verify
run: |
cd docs
../mvnw -ntp ${BRANCH_OPTIONS} \
../mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} \
-Dformatter.skip -Dimpsort.skip -Denforce=false \
verify
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
- name: cd extensions-jvm && mvn clean test
run: |
cd extensions-jvm
../mvnw -V -ntp ${BRANCH_OPTIONS} \
../mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} \
-Dformatter.skip -Dimpsort.skip -Denforce=false \
clean test
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
- name: cd integration-tests && mvn clean verify
run: |
cd integration-tests
../mvnw -V -ntp ${BRANCH_OPTIONS} \
../mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} \
-Dformatter.skip -Dimpsort.skip -Denforce=false \
clean verify
Expand Down Expand Up @@ -359,7 +359,7 @@ jobs:
- name: cd examples && mvn clean test/verify
run: |
cd examples
../mvnw -V -ntp ${BRANCH_OPTIONS} \
../mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} \
-Dformatter.skip -Dimpsort.skip -Denforce=false \
${MVN_TARGETS}
Expand All @@ -386,7 +386,7 @@ jobs:
# # of memory this we nee to limit it to avoid the process fail for OOM.
# - name: Integration Tests
# run: |
# ./mvnw -V -B \
# ./mvnw ${MAVEN_ARGS} \
# -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean verify \
# -Dnative \
# -Ddocker \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ on:

env:
LANG: en_US
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -e

jobs:
check-format:
Expand All @@ -53,7 +55,7 @@ jobs:
version: '11'
- name: mvn validate
run: |
./mvnw ${BRANCH_OPTIONS} -fae -ntp \
./mvnw ${MAVEN_ARGS} ${BRANCH_OPTIONS} -fae \
-DskipTests \
-Pcheck-format \
clean validate
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/quarkus-master-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ on:

env:
LANG: en_US
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -e

jobs:
build:
if: github.repository == 'apache/camel-quarkus'
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Xmx3000m
outputs:
matrix: ${{ steps.set-native-matrix.outputs.matrix }}
steps:
Expand Down Expand Up @@ -70,10 +70,10 @@ jobs:
git clone --depth 1 --branch master https://github.com/quarkusio/quarkus.git \
&& cd quarkus \
&& echo "Current Quarkus commit:" $(git rev-parse HEAD) \
&& ./mvnw -B -ntp clean install -DskipTests -DskipITs -Denforcer.skip -Dquarkus.build.skip -DskipDocs
&& ./mvnw ${MAVEN_ARGS} clean install -DskipTests -DskipITs -Denforcer.skip -Dquarkus.build.skip -DskipDocs
- name: Build Camel Quarkus
run: |
./mvnw -B -ntp clean install -Dquarkus.version=999-SNAPSHOT -pl '!docs'
./mvnw ${MAVEN_ARGS} clean install -Dquarkus.version=999-SNAPSHOT -pl '!docs'
- name: Tar Maven Repo
shell: bash
run: |
Expand All @@ -100,7 +100,7 @@ jobs:
git rebase --abort
fi
./mvnw verify -N -B -ntp -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
native-tests:
name: Native Tests - ${{matrix.category}}
Expand Down Expand Up @@ -157,15 +157,15 @@ jobs:
do modules+=("integration-tests/$i");
done
IFS=,
eval ./mvnw -B -ntp clean verify \
eval ./mvnw ${MAVEN_ARGS} clean verify \
-Dnative \
-Ddocker \
-Dquarkus.version=999-SNAPSHOT \
-pl "${modules[*]}"
- name: Report Build Failure
if: failure()
run: |
./mvnw verify -N -B -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
handle-build-status:
needs: native-tests
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
- name: Report build status
id: report
run: |
./mvnw verify -N -B -ntp -Pbuild-notification -Dstatus=verify -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=verify -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-master -Dbranch-commit=$(cat ~/build-data/master-sha.txt)
- name: Sync branch Master to Quarkus Master
if: steps.report.outputs.overall_build_status == 'success'
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.camel.quarkus.component.base64.it;

import java.net.URI;
import java.util.Locale;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
Expand Down Expand Up @@ -47,6 +48,14 @@ public Response post(String message) throws Exception {
LOG.infof("Sending to base64: %s", message);
final String response = producerTemplate.requestBody("direct:start", message, String.class);
LOG.infof("Got response from base64: %s", response);
LOG.warn("Default locale " + Locale.getDefault());
for (Locale l : Locale.getAvailableLocales()) {
LOG.warn("-- avail locale " + l);
}
LOG.warn("de-de " + String.format(Locale.GERMANY, "%.8f,%.8f", 0.1, 0.1));
LOG.warn("US " + String.format(Locale.US, "%.8f,%.8f", 0.1, 0.1));
LOG.warn("ENGLISH" + String.format(Locale.ENGLISH, "%.8f,%.8f", 0.1, 0.1));
LOG.warn("root " + String.format(Locale.ROOT, "%.8f,%.8f", 0.1, 0.1));
return Response
.created(new URI("https://camel.apache.org/"))
.header("content-length", response.length())
Expand Down

0 comments on commit 675fae1

Please sign in to comment.