This repository was archived by the owner on Sep 17, 2024. It is now read-only.
chore: properly evaluate how tests are skipped on CI when checking modified files#1924
Merged
mdelapenya merged 5 commits intoelastic:masterfrom Dec 17, 2021
Merged
Conversation
Contributor
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
mdelapenya
commented
Dec 17, 2021
v1v
reviewed
Dec 17, 2021
.ci/Jenkinsfile
Outdated
| def regexps = [ "^e2e/_suites/fleet/.*", "^e2e/_suites/helm/.*", "^e2e/_suites/kubernetes-autodiscover/.*", "^.ci/.*", "^cli/.*", "^e2e/.*\\.go", "^internal/.*\\.go" ] | ||
| setEnvVar("SKIP_TESTS", !isGitRegionMatch(patterns: regexps, shouldMatchAll: false)) | ||
| } | ||
| script { |
Member
There was a problem hiding this comment.
NIT:
IIRC, this unrequired when running a method
kuisathaverat
approved these changes
Dec 17, 2021
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
mdelapenya
commented
Dec 17, 2021
mergify bot
pushed a commit
that referenced
this pull request
Dec 17, 2021
…dified files (#1924) * chore: consistency * chore: refactor how the evaluation of the skip_tests is done * chore: use proper function name * chore: remove non needed initialisation Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * chore: call method without script block Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> (cherry picked from commit e438b87)
mergify bot
pushed a commit
that referenced
this pull request
Dec 17, 2021
…dified files (#1924) * chore: consistency * chore: refactor how the evaluation of the skip_tests is done * chore: use proper function name * chore: remove non needed initialisation Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * chore: call method without script block Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> (cherry picked from commit e438b87)
mergify bot
pushed a commit
that referenced
this pull request
Dec 17, 2021
…dified files (#1924) * chore: consistency * chore: refactor how the evaluation of the skip_tests is done * chore: use proper function name * chore: remove non needed initialisation Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * chore: call method without script block Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> (cherry picked from commit e438b87)
mdelapenya
added a commit
that referenced
this pull request
Dec 17, 2021
…dified files (#1924) (#1925) * chore: consistency * chore: refactor how the evaluation of the skip_tests is done * chore: use proper function name * chore: remove non needed initialisation Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * chore: call method without script block Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> (cherry picked from commit e438b87) Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya
added a commit
that referenced
this pull request
Dec 17, 2021
…dified files (#1924) (#1927) * chore: consistency * chore: refactor how the evaluation of the skip_tests is done * chore: use proper function name * chore: remove non needed initialisation Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * chore: call method without script block Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> (cherry picked from commit e438b87) Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya
added a commit
that referenced
this pull request
Dec 17, 2021
…dified files (#1924) (#1926) * chore: consistency * chore: refactor how the evaluation of the skip_tests is done * chore: use proper function name * chore: remove non needed initialisation Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * chore: call method without script block Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> (cherry picked from commit e438b87) Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya
added a commit
to mdelapenya/e2e-testing
that referenced
this pull request
Jan 26, 2022
* main: (45 commits) feat: add CentOS 8 support (elastic#2034) fix: set default region for AWS cli (elastic#2053) chore: use Ansible's built-in replace instead of sed (elastic#2048) chore: split stack configuration and start into two tasks (elastic#2044) feat: enable SSH access to users for debugging cloud instances (elastic#2001) fix: use the right branch for 7.17 backports (elastic#2025) SLES15 enablement (elastic#2007) chore: bump stale agent for main (elastic#2014) Update `fetchBeatsBinary` to be reused in elastic-agent-poc (elastic#1984) chore: add resiliency when provisioning the stack (elastic#1990) chore: bump elastic-package to v0.32.1 (elastic#1959) feat: export Fetch&Download methods in the /pkg directory (elastic#1943) bump stack version 8.1.0-dbc834fd (elastic#1948) bump stack version 8.1.0-76902d39 (elastic#1946) chore: retire 7.15 adding 7.17 (elastic#1938) ci: use withAPMEnv (elastic#1917) Update main branch (elastic#1928) bump stack version 8.1.0-befff95a (elastic#1929) chore: properly evaluate how tests are skipped on CI when checking modified files (elastic#1924) bump stack version 8.1.0-60bffc32 (elastic#1921) ...
mdelapenya
added a commit
to mdelapenya/e2e-testing
that referenced
this pull request
Mar 30, 2022
* main: chore: retire 7.15 adding 7.17 (elastic#1938) ci: use withAPMEnv (elastic#1917) Update main branch (elastic#1928) bump stack version 8.1.0-befff95a (elastic#1929) chore: properly evaluate how tests are skipped on CI when checking modified files (elastic#1924) bump stack version 8.1.0-60bffc32 (elastic#1921) fix: add resiliency when an integration cannot be added to a policy (elastic#1914)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR does two things:
anyOfblock, so that is consistent with all other stages.SKIP_TESTSenv var to false, and:SKIP_TESTSto true.SKIP_TESTSenv var to false.Why is it important?
The unit tests stage is constantly skipped.
make unit-test), and they are passing locallymake noticein the proper directory)Related issues