You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/31 11:02:13 UTC
[camel] branch main updated (2c07628 -> 2ba5ea3)
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git.
from 2c07628 Sync deps
new 268d754 (chores) ci: fix test log archive
new 2ba5ea3 (chores) ci: make the labeler effective for any scope of change
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/actions/quick-test/action.yaml | 2 +-
.github/actions/quick-test/quick-test.sh | 5 +++--
.github/workflows/component-pr.yaml | 14 --------------
.../{component-pr.yaml => generic-pr.yaml} | 22 +++-------------------
.../{component-pr => generic-pr}/label-config.yml | 0
5 files changed, 7 insertions(+), 36 deletions(-)
copy .github/workflows/{component-pr.yaml => generic-pr.yaml} (63%)
rename .github/workflows/{component-pr => generic-pr}/label-config.yml (100%)
[camel] 01/02: (chores) ci: fix test log archive
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 268d75437e7f9a270dec49dc6b8d765f533da05e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Mar 31 12:53:45 2022 +0200
(chores) ci: fix test log archive
---
.github/actions/quick-test/action.yaml | 2 +-
.github/actions/quick-test/quick-test.sh | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/actions/quick-test/action.yaml b/.github/actions/quick-test/action.yaml
index 9d9ba79..2da51ec 100644
--- a/.github/actions/quick-test/action.yaml
+++ b/.github/actions/quick-test/action.yaml
@@ -30,5 +30,5 @@ runs:
uses: actions/upload-artifact@v2
if: always()
with:
- name: test-logs-java-${{ matrix.java }}
+ name: test-logs
path: automated-build-log/**.log
diff --git a/.github/actions/quick-test/quick-test.sh b/.github/actions/quick-test/quick-test.sh
index f283ff3..2c787c3 100755
--- a/.github/actions/quick-test/quick-test.sh
+++ b/.github/actions/quick-test/quick-test.sh
@@ -20,7 +20,7 @@ MVN_OPTS=${MVN_OPTS:-$MVN_DEFAULT_OPTS}
failures=0
basedir=$(pwd)
testDate=$(date '+%Y-%m-%d-%H%M%S')
-logDir=${basedir}/automated-build-log/${testDate}
+logDir=${basedir}/automated-build-log
testHost=$(hostname)
function notifySuccess() {
@@ -49,7 +49,8 @@ function runTest() {
echo "############################################################"
echo ""
- mvn -Psourcecheck ${MVN_OPTS} verify 2>&1 >>"${logDir}/${component/\//-}.log"
+ echo "Logging test to ${logDir}/${component/\//-}.log"
+ mvn -Psourcecheck ${MVN_OPTS} verify 2>&1 >> "${logDir}/${component/\//-}.log"
if [[ $? -ne 0 ]]; then
((failures++))
notifyError "${component} test" "${total}" "${current}" "${failures}"
[camel] 02/02: (chores) ci: make the labeler effective for any scope of change
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2ba5ea35135a72759ceb4d31cbe61c00105b2ddc
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Mar 31 13:01:09 2022 +0200
(chores) ci: make the labeler effective for any scope of change
---
.github/workflows/component-pr.yaml | 14 --------------
.../{component-pr.yaml => generic-pr.yaml} | 22 +++-------------------
.../{component-pr => generic-pr}/label-config.yml | 0
3 files changed, 3 insertions(+), 33 deletions(-)
diff --git a/.github/workflows/component-pr.yaml b/.github/workflows/component-pr.yaml
index f5c4c17..730df2a 100644
--- a/.github/workflows/component-pr.yaml
+++ b/.github/workflows/component-pr.yaml
@@ -30,11 +30,7 @@ jobs:
name: Process
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- uses: actions/github-script@v6
- env:
- RESULT: ${{ steps.quick-test.outputs.result }}
- COUNT: ${{ steps.quick-test.outputs.count }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@@ -46,13 +42,3 @@ jobs:
repo: context.repo.repo,
body: `This PR changes components and will be tested automatically`
})
- - name: Label changes scope
- if: |
- github.event_name == 'pull_request_target' &&
- (github.event.action == 'opened' ||
- github.event.action == 'synchronize')
- uses: actions/labeler@2.2.0
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- configuration-path: .github/workflows/component-pr/label-config.yml
- sync-labels: true
diff --git a/.github/workflows/component-pr.yaml b/.github/workflows/generic-pr.yaml
similarity index 63%
copy from .github/workflows/component-pr.yaml
copy to .github/workflows/generic-pr.yaml
index f5c4c17..04ff5565 100644
--- a/.github/workflows/component-pr.yaml
+++ b/.github/workflows/generic-pr.yaml
@@ -22,37 +22,21 @@ on:
types:
- opened
- reopened
- paths:
- - 'components/**'
+ - synchronize
jobs:
process:
name: Process
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions/github-script@v6
- env:
- RESULT: ${{ steps.quick-test.outputs.result }}
- COUNT: ${{ steps.quick-test.outputs.count }}
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- const { RESULT, COUNT } = process.env
-
- github.rest.issues.createComment({
- issue_number: context.issue.number,
- owner: context.repo.owner,
- repo: context.repo.repo,
- body: `This PR changes components and will be tested automatically`
- })
- name: Label changes scope
if: |
github.event_name == 'pull_request_target' &&
(github.event.action == 'opened' ||
+ github.event.action == 'reopened' ||
github.event.action == 'synchronize')
uses: actions/labeler@2.2.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- configuration-path: .github/workflows/component-pr/label-config.yml
+ configuration-path: .github/workflows/generic-pr/label-config.yml
sync-labels: true
diff --git a/.github/workflows/component-pr/label-config.yml b/.github/workflows/generic-pr/label-config.yml
similarity index 100%
rename from .github/workflows/component-pr/label-config.yml
rename to .github/workflows/generic-pr/label-config.yml