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 2025/01/08 07:04:55 UTC
(camel) branch camel-4.8.x updated (d289bd41486 -> 462e303c088)
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a change to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
from d289bd41486 CAMEL-21576: container pulling adjustments
new 08c4e226dfe (chores) ci: removed automation for old and unmaintained branches/versions
new df91d45241e (chores) ci: removed Camel 3.x from labeled branches
new 37ea146f93a (chores) ci: removed quick-test action as it was used only for Camel 3
new 462e303c088 (chores) ci: removed test result comments from Camel 3 automation
The 4 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 | 61 --------
.github/actions/quick-test/quick-test.sh | 216 --------------------------
.github/workflows/component-pr.yaml | 101 +-----------
.github/workflows/generic-pr/label-config.yml | 6 -
.github/workflows/pr-build-camel-3.yml | 105 -------------
.github/workflows/pr-build-camel-40x.yml | 77 ---------
6 files changed, 1 insertion(+), 565 deletions(-)
delete mode 100644 .github/actions/quick-test/action.yaml
delete mode 100755 .github/actions/quick-test/quick-test.sh
delete mode 100644 .github/workflows/pr-build-camel-3.yml
delete mode 100644 .github/workflows/pr-build-camel-40x.yml
(camel) 04/04: (chores) ci: removed test result comments from Camel 3 automation
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 462e303c088efe97211197c1eecb260b576ee9fe
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jan 7 15:41:39 2025 +0100
(chores) ci: removed test result comments from Camel 3 automation
---
.github/workflows/component-pr.yaml | 101 +-----------------------------------
1 file changed, 1 insertion(+), 100 deletions(-)
diff --git a/.github/workflows/component-pr.yaml b/.github/workflows/component-pr.yaml
index 7aae4375c65..9a243dc966d 100644
--- a/.github/workflows/component-pr.yaml
+++ b/.github/workflows/component-pr.yaml
@@ -26,10 +26,6 @@ on:
- 'parent/**'
- 'core/**'
- 'components/**'
- workflow_run:
- workflows: [ "PR Build (Camel 3.x)" ]
- types:
- - completed
permissions: {}
jobs:
@@ -70,99 +66,4 @@ jobs:
* :warning: Be careful when sharing logs. Review their contents before sharing them publicly.`
- })
- - name: 'Download artifact'
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
- if: |
- github.event_name == 'workflow_run'
- with:
-# Secure download based on:
-# - https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
-# - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run
- script: |
- var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
- owner: context.repo.owner,
- repo: context.repo.repo,
- run_id: ${{github.event.workflow_run.id }},
- });
- var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "test-logs"
- })[0];
- var download = await github.rest.actions.downloadArtifact({
- owner: context.repo.owner,
- repo: context.repo.repo,
- artifact_id: matchArtifact.id,
- archive_format: 'zip',
- });
- var fs = require('fs');
- fs.writeFileSync('${{github.workspace}}/test-logs.zip', Buffer.from(download.data));
- - run: unzip test-logs.zip
- if: |
- github.event_name == 'workflow_run'
- - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
- if: |
- github.event_name == 'workflow_run'
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- let fs = require('fs');
- let issue_number = Number(fs.readFileSync('./pr_number'));
- let componentsTotal = Number(fs.readFileSync('./components-total'));
- let componentsTested = Number(fs.readFileSync('./components-tested'));
- let componentsFailures = Number(fs.readFileSync('./components-failures'));
- let componentsSuccesses = Number(fs.readFileSync('./components-successes'));
-
- var message = ""
-
- if (componentsTested === 0) {
- if (componentsTotal === 0) {
- message = ":no_entry_sign: There are (likely) no components to be tested in this PR"
- } else {
- if (componentsTotal > 20) {
- message = `:leftwards_arrow_with_hook: There are either **too many** changes to be tested in this PR or the code **needs be rebased**: (${componentsTotal} components likely to be affected)`
- }
- }
- } else {
- message = `### Components test results:
-
- | Total | Tested | Failed :x: | Passed :white_check_mark: |
- | --- | --- | --- | --- |
- | ${componentsTotal} | ${componentsTested} | ${componentsFailures} | ${componentsSuccesses} |`
- }
-
- await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: issue_number,
- body: message
- });
- - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
- if: |
- github.event_name == 'workflow_run'
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- script: |
- let fs = require('fs');
- let issue_number = Number(fs.readFileSync('./pr_number'));
- let coreTested = Number(fs.readFileSync('./core-tested'));
- let coreFailures = Number(fs.readFileSync('./core-failures'));
- let coreSuccesses = Number(fs.readFileSync('./core-successes'));
-
- var message = ""
-
- if (coreTested === 0) {
- message = ":no_entry_sign: There are (likely) no changes in core core to be tested in this PR"
- } else {
- message = `### Core test results:
-
- | Tested | Failed :x: | Passed :white_check_mark: |
- | --- | --- | --- |
- | ${coreTested} | ${coreFailures} | ${coreSuccesses} |`
- }
-
- await github.rest.issues.createComment({
- owner: context.repo.owner,
- repo: context.repo.repo,
- issue_number: issue_number,
- body: message
- });
+ })
\ No newline at end of file
(camel) 01/04: (chores) ci: removed automation for old and unmaintained branches/versions
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 08c4e226dfe585ef58417a5e6d502a66ad2060f1
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jan 7 16:05:35 2025 +0100
(chores) ci: removed automation for old and unmaintained branches/versions
---
.github/workflows/pr-build-camel-3.yml | 105 -------------------------------
.github/workflows/pr-build-camel-40x.yml | 77 -----------------------
2 files changed, 182 deletions(-)
diff --git a/.github/workflows/pr-build-camel-3.yml b/.github/workflows/pr-build-camel-3.yml
deleted file mode 100644
index 10f36ab0d59..00000000000
--- a/.github/workflows/pr-build-camel-3.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-name: PR Build (Camel 3.x)
-
-on:
- pull_request:
- branches:
- - camel-3.20.x
- - camel-3.21.x
- - camel-3.x
- paths-ignore:
- - .github/**
- - README.md
- - SECURITY.md
- - Jenkinsfile
- - Jenkinsfile.*
- - NOTICE.txt
-
-jobs:
- checkstyle:
- if: github.repository == 'apache/camel'
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- with:
- persist-credentials: false
- - id: install-mvnd
- uses: ./.github/actions/install-mvnd
- - name: Set up JDK
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
- with:
- distribution: 'temurin'
- java-version: 11
- cache: 'maven'
- - name: mvn checkstyle
- run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l checkstyle.log $MVND_OPTS -e checkstyle:checkstyle
- - name: archive logs
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- if: always()
- with:
- name: checkstyle.log
- path: checkstyle.log
- - name: Generate failure checkstyle summary
- if: failure()
- run: |
- echo ":x: Checkstyle failed" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- - name: Generate successful checkstyle summary
- if: success()
- run: |
- echo ":white_check_mark: Checkstyle passed" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- build:
- if: github.repository == 'apache/camel'
- permissions:
- issues: write
- runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ '11' ]
- steps:
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- with:
- persist-credentials: false
- - id: install-packages
- uses: ./.github/actions/install-packages
- - id: install-mvnd
- uses: ./.github/actions/install-mvnd
- - name: Set up JDK ${{ matrix.java }}
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
- with:
- distribution: 'temurin'
- java-version: ${{ matrix.java }}
- cache: 'maven'
- - name: maven build
- run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l build.log $MVND_OPTS -Pfastinstall -DskipTests install
- - name: archive logs
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- if: always()
- with:
- name: build.log
- path: build.log
- - id: test
- name: Quick test execution for affected components
- uses: ./.github/actions/quick-test
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- start-commit: ${{ github.event.pull_request.base.sha }}
- end-commit: ${{ github.event.after }}
- artifact-upload-suffix: java-${{ matrix.java }}
diff --git a/.github/workflows/pr-build-camel-40x.yml b/.github/workflows/pr-build-camel-40x.yml
deleted file mode 100644
index 961595cbb4b..00000000000
--- a/.github/workflows/pr-build-camel-40x.yml
+++ /dev/null
@@ -1,77 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-name: PR Build (Camel 4)
-
-on:
- pull_request:
- branches:
- - camel-4.0.x
- paths-ignore:
- - .github/**
- - README.md
- - SECURITY.md
- - Jenkinsfile
- - Jenkinsfile.*
- - NOTICE.txt
-
-permissions:
- contents: read
-
-jobs:
- build:
- if: github.repository == 'apache/camel'
- permissions:
- issues: write
- runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ '17' ]
- steps:
- - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- with:
- persist-credentials: false
- - id: install-packages
- uses: ./.github/actions/install-packages
- - id: install-mvnd
- uses: ./.github/actions/install-mvnd
- - name: Set up JDK ${{ matrix.java }}
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
- with:
- distribution: 'temurin'
- java-version: ${{ matrix.java }}
- cache: 'maven'
- - name: maven build
- run: ./mvnw -l build.log -Dquickly install
- - name: archive logs
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- if: always()
- with:
- name: build.log
- path: build.log
- - name: Fail if there are uncommitted changes
- shell: bash
- run: |
- [[ -z $(git status --porcelain) ]] || { echo 'There are uncommitted changes'; git status; echo; echo; git diff; exit 1; }
- - name: mvn test
- uses: ./.github/actions/incremental-build
- with:
- mode: test
- pr-id: ${{ github.event.number }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
- skip-mvnd-install: 'true'
- artifact-upload-suffix: java-${{ matrix.java }}
(camel) 02/04: (chores) ci: removed Camel 3.x from labeled branches
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit df91d45241e28338658a756e0803e85340d695f5
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jan 7 15:15:36 2025 +0100
(chores) ci: removed Camel 3.x from labeled branches
---
.github/workflows/generic-pr/label-config.yml | 6 ------
1 file changed, 6 deletions(-)
diff --git a/.github/workflows/generic-pr/label-config.yml b/.github/workflows/generic-pr/label-config.yml
index 01d5cbc7a0c..e9ed717773a 100644
--- a/.github/workflows/generic-pr/label-config.yml
+++ b/.github/workflows/generic-pr/label-config.yml
@@ -15,12 +15,6 @@
# limitations under the License.
#
-camel-3:
- - base-branch:
- - 'camel-3.21.x'
- - 'camel-3.22.x'
- - 'camel-3.x'
-
camel-4:
- base-branch:
- 'main'
(camel) 03/04: (chores) ci: removed quick-test action as it was used only for Camel 3
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 37ea146f93ace3b5eb93921e6934452c1629630a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jan 7 15:36:19 2025 +0100
(chores) ci: removed quick-test action as it was used only for Camel 3
---
.github/actions/quick-test/action.yaml | 61 ---------
.github/actions/quick-test/quick-test.sh | 216 -------------------------------
2 files changed, 277 deletions(-)
diff --git a/.github/actions/quick-test/action.yaml b/.github/actions/quick-test/action.yaml
deleted file mode 100644
index 2ceb970e6c0..00000000000
--- a/.github/actions/quick-test/action.yaml
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-name: "Quick Test Runner"
-description: "Runs a tests only for the changed components"
-inputs:
- start-commit: # id of input
- description: 'Starting commit'
- required: true
- end-commit: # id of input
- description: 'End commit'
- required: true
- github-token: # id of input
- description: 'Github hub token'
- required: true
- artifact-upload-suffix:
- description: 'Suffix for artifacts stored'
- required: false
- default: ''
-outputs:
- result:
- description: "Quick test result"
- value: ${{ steps.quick-test.outputs.result }}
- component-count:
- description: "Number of modified components"
- value: ${{ steps.quick-test.outputs.component-count }}
- failures-count:
- description: "Number of errors"
- value: ${{ steps.quick-test.outputs.failures-count }}
-runs:
- using: "composite"
- steps:
- - id: quick-test
- run: ${{ github.action_path }}/quick-test.sh ${{ inputs.start-commit }} ${{ inputs.end-commit }}
- shell: bash
- - name: Save PR number
- if: always()
- env:
- PR_NUMBER: ${{ github.event.number }}
- shell: bash
- run: echo $PR_NUMBER > ./automated-build-log/pr_number
- - name: archive logs
- uses: actions/upload-artifact@v4
- if: always()
- with:
- name: test-logs-${{ inputs.artifact-upload-suffix }}
- path: automated-build-log/**/*
diff --git a/.github/actions/quick-test/quick-test.sh b/.github/actions/quick-test/quick-test.sh
deleted file mode 100755
index 036d41d319f..00000000000
--- a/.github/actions/quick-test/quick-test.sh
+++ /dev/null
@@ -1,216 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# This script runs a quick test for modified components
-# It receives a starting and end commit IDs and verifies if any component was modified between them.
-# It iterates through the list of components, running a unit and integration tests with -Psourcecheck
-# The result and other important data is saved on log files (i.e.: test log, the PR number and the result message).
-# The log file is archived by the action (see: action.yaml file)
-
-echo "Using MVND_OPTS=$MVND_OPTS"
-
-# Script variables
-failures=0
-successes=0
-maxNumberOfTestableComponents=20
-basedir=$(pwd)
-testDate=$(date '+%Y-%m-%d-%H%M%S')
-logDir=${basedir}/automated-build-log
-testHost=$(hostname)
-
-# How to test this code:
-#
-# Set the GITHUB_STEP_SUMMARY variable and select a commit range containing changes core, components or both:
-# GITHUB_STEP_SUMMARY=$HOME/tmp/step-summary.txt ./.github/actions/quick-test/quick-test.sh beginning end.
-#
-# For instance:
-# GITHUB_STEP_SUMMARY=$HOME/tmp/step-summary.txt ./.github/actions/quick-test/quick-test.sh 74e90da8ec55afe5065d5de495df7fe7a 9e05505d7eaad98c55d67a09cae8aa9505253c72
-
-function notifySuccess() {
- local component=$1
- local total=$2
- local current=$3
-
- echo "${component} test completed successfully: ${current} verified / ${failures} failed"
- echo "| ${component} | :white_check_mark: pass" >> $GITHUB_STEP_SUMMARY
-}
-
-function notifyError() {
- local component=$1
- local total=$2
- local current=$3
-
- echo "Failed ${component} test: ${current} verified / ${failures} failed"
- echo "| ${component} | :x: fail" >> $GITHUB_STEP_SUMMARY
-}
-
-function resetCounters() {
- current=0
- failures=0
- successes=0
-}
-
-function setResultValue() {
- local value=$1
- local file=$2
-
- echo "$1" > "$file"
-}
-
-function setComponentTestResults() {
- local tested=$1
- local failures=$2
- local successes=$3
-
- setResultValue "$tested" "${logDir}/components-tested"
- setResultValue "$failures" "${logDir}/components-failures"
- setResultValue "$successes" "${logDir}/components-successes"
-}
-
-function setCoreTestResults() {
- local tested=$1
- local failures=$2
- local successes=$3
-
- setResultValue "$tested" "${logDir}/core-tested"
- setResultValue "$failures" "${logDir}/core-failures"
- setResultValue "$successes" "${logDir}/core-successes"
-}
-
-function runTest() {
- local component=$1
- local total=$2
- local current=$3
-
- echo "############################################################"
- echo "Testing component ${current} of ${total}: ${component}"
- echo "############################################################"
- echo ""
-
- echo "Logging test to ${logDir}/${component/\//-}.log"
- ${basedir}/mvnw -l "${logDir}/${component/\//-}.log" -Psourcecheck ${MVND_OPTS} verify
- if [[ $? -ne 0 ]]; then
- ((failures++))
- notifyError "${component}" "${total}" "${current}" "${failures}"
- else
- ((successes++))
- notifySuccess "${component}" "${total}" "${current}" "${failures}"
- fi
-
- local shortName=$(basename "${component}")
- local testLog="target/${shortName}-test.log"
- if [[ -f "$testLog" ]] ; then
- echo "Copying test log file at ${testLog} to the log directory"
- mv "${testLog}" "${logDir}"/
- else
- echo "There is no log file to copy at ${testLog}"
- fi
-}
-
-function componentTest() {
- local component=$1
- local total=$2
- local current=$3
-
- if [[ -d "${basedir}/${component}" ]] ; then
- cd "${basedir}/${component}"
- runTest "${component}" "${total}" "${current}"
- else
- echo "Skipping modified entity ${basedir}/${component} because it's not a directory"
- fi
-}
-
-function coreTest() {
- echo "| Core | Result |" >> $GITHUB_STEP_SUMMARY
- echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
-
- cd "core"
- runTest "core" "1" "1"
- find . -iname '*test*.log' -exec mv {} "${logDir}"/ \;
-}
-
-function testComponents() {
- local current=0
- local startCommit=${1:-""}
- local endCommit=${2:-""}
-
- mkdir -p "${logDir}"
-
- echo "Searching for modified components"
- local components=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^components' | grep -v "camel-aws" | grep -v -e '^$' | cut -d / -f 1-2 | uniq | sort)
- local componentsAws=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^components' | grep "camel-aws" | grep -v -e '^$' | cut -d / -f 1-3 | uniq | sort)
-
- if [[ -z "${components}" ]] ; then
- components="${componentsAws}"
- else
- components=$(printf '%s\n%s' "${components}" "${componentsAws}")
- fi
-
- local total=$(echo "${components}" | grep -v -e '^$' | wc -l)
-
- echo "${total}" > "${logDir}/components-total"
- if [[ ${total} -eq 0 ]]; then
- setComponentTestResults 0 0 0
- exit 0
- else
- if [[ ${total} -gt ${maxNumberOfTestableComponents} ]]; then
- setComponentTestResults 0 0 0
- exit 0
- fi
- fi
-
- echo "It will test the following ${total} components:"
- echo "${components}"
-
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "| Component | Result |" >> $GITHUB_STEP_SUMMARY
- echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
-
- resetCounters
- for component in $(echo $components); do
- ((current++))
- componentTest "${component}" "${total}" "${current}"
- done
-
- setComponentTestResults "$total" "$failures" "$successes"
-
- exit "${failures}"
-}
-
-function testCore() {
- local current=0
- local startCommit=${1:-""}
- local endCommit=${2:-""}
-
- mkdir -p "${logDir}"
- resetCounters
-
- setCoreTestResults 0 0 0
- echo "Searching for camel core changes"
- local core=$(git diff "${startCommit}..${endCommit}" --name-only --pretty=format:"" | grep -e '^core' | grep -v -e '^$' | cut -d / -f 1 | uniq | sort)
- if [[ ! -z "${core}" ]] ; then
- coreTest
- setCoreTestResults "1" "$failures" "$successes"
- fi
-}
-
-function main() {
- testCore "$@"
- testComponents "$@"
-}
-
-main "$@"