Commit graph

34 commits

Author SHA1 Message Date
Mark Vieira
dcf2b010f2
Use unsecure entropy source in docker packaging tests (#119598) (#119611) 2025-01-06 13:42:53 -08:00
Mark Vieira
8573b3b2d2
Print thread dump when ES fails to start during Docker packaging tests (#119477) (#119483)
(cherry picked from commit 577d102740)
2025-01-03 10:01:10 +11:00
Rene Groeschke
f28df38704
[8.17] Revert cloud wolfi migration (#119068) (#119103)
This reverts the wolfi migration for cloud ess docker images.

(cherry picked from commit 81f725d3d8)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DockerBase.java
#	distribution/docker/build.gradle
#	qa/packaging/src/test/java/org/elasticsearch/packaging/test/DockerTests.java
2024-12-20 03:22:05 +11:00
Rene Groeschke
6192818528
Replace cloud-ess docker image with wolfi-ess (#114413) (#114684)
* Replace cloud-ess docker image with wolfi-ess
   We just replaced the existing implementation of cloud-ess with what was wolfi-ess which is a wolfi based ess image.
   The cloud image itself will be removed in a future commit it was not used anywhere

* Switch to test cloud docker image instead of default docker in packaging pr tests.
  This adds way more coverage than the default docker image which is also barely touched

(cherry picked from commit f1f5ee06a3)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DockerBase.java
2024-10-14 16:07:11 +02:00
Rene Groeschke
54ecb2c666
Add wolfi ess docker image (#113810) (#114111)
(cherry picked from commit 54c83d7fa7)
2024-10-04 13:44:42 +02:00
Brian Seeders
c0be2e2c1b
Fix packaging tests after addition of new wolfi-based image (#112831) (#113715) 2024-09-27 16:01:14 -04:00
Mark Vieira
0279c0a909
Add AGPLv3 as a supported license 2024-09-13 14:30:33 -07:00
Ryan Ernst
0cf9c54f65
Fix windows memory locking (#111866)
Memory locking on Windows with the bundled jdk was broken by native
access refactoring. This commit fixes the linking issue, as well as adds
a packaging test to ensure memory locking is invoked on all supported
platforms.
2024-08-15 12:00:41 -07:00
Mark Vieira
acb5ab1134
Make ConfigurationTests.test20HostnameSubstitution more resilient (#111216)
This is an attempt to fix occasional test failures where asserting on a
request response fails because the cluster has not finished
initialization and cannot yet serve requests.

Closes #109660
2024-07-24 09:27:26 +10:00
Mark Vieira
ce3bc5db13
Make docker packaging test more resilient (#111205)
Wrap check for container shutdown log message in an `assertBusy()` to
deal with race conditions.

Closes #111132
2024-07-24 04:41:28 +10:00
Mark Vieira
943c12abe1
Unmute DockerTests.test600Interrupt (#111165)
Investigating https://github.com/elastic/elasticsearch/issues/111132 and
it seems this test has been muted on `main` for some time. Let's unmute,
to see if this is specific to the 7.17 branch or not.
2024-07-23 04:35:55 +10:00
Rene Groeschke
320f2414aa
Ignore configs from DistributionDownload plugin and bwc for resolveAllDependencies (#110828) 2024-07-12 17:17:55 +02:00
Rene Groeschke
816cedc217
[CI] Do not cache any es distros when creating ci images (#110742) 2024-07-11 13:00:11 +02:00
Rene Groeschke
facabf627b
[Gradle] Only resolve latest patch version for resolveAllDependencies (#110584)
* Only resolve latest patch version for resolveAllDependencies

This should avoid downloading to many elasticsearch distributions
and reduce disk usage and speed up image creations.

* Some cleanup
2024-07-08 15:34:16 +02:00
Mark Vieira
44f5968448
Adjust packaging test exit code assertion (#109879) 2024-06-18 13:33:44 -07:00
Benjamin Trent
b147d07533
Muting PackageTests class #109852 (#109874)
* Muting PackageTests class #109852

* fixing mute
2024-06-18 12:13:50 -04:00
Benjamin Trent
429c970dd3
Muting test70RestartServer for issue #109852 (#109860) 2024-06-19 00:06:01 +10:00
David Turner
e66cb6c632 AwaitsFix for #109852 2024-06-18 13:30:34 +01:00
Ryan Ernst
a4588c0e3f
Run bootstrap checks in packaging tests (#109031)
Bootstrap checks are an important part of ensuring proper Elasticsearch
configuration. They are often system dependent, so checking they work on
each supported platform should be part of testing. This commit adjusts
packaging tests to enable bootstrap checks.
2024-05-24 18:32:37 -04:00
Ryan Ernst
b37d9358e7
Fix DockerTests.dumpDebug to read the container logs (#108652)
This commit overrides dumpDebug for DockerTests to pull the log from
docker rather than looking in the filesystem.
2024-05-15 19:23:06 -04:00
Ryan Ernst
9ae678da81
Wait for readiness in docker readiness test (#108681)
Previously readiness waited only on a master node being elected.
Recently it was also made to wait on file settings being applied. Yet
the node may be fully started before those file settings are applied.
The test expected readiness was ok after the node finishes starting.

This commit retries the readiness check until it succeeds since
readiness state will be updated async to the node finishing starting.

closes #108523
2024-05-15 15:29:06 -07:00
Nikolaj Volgushev
e6d38bb43b
Mute test500Readiness (#108661)
Mute for: https://github.com/elastic/elasticsearch/issues/108523
2024-05-15 04:28:50 -04:00
Ryan Ernst
bf96968ea0
Debug docker readiness tests (#108587) 2024-05-13 21:53:39 -07:00
Mark Vieira
64ef2f42c2
AwaitsFix #108523 2024-05-10 17:19:48 -07:00
Mark Vieira
e10b3d4b2b
Increase startup timeout in packaging tests (#108487) 2024-05-09 16:33:26 -07:00
Jake Landis
79e6e770f9
upgrade bouncy castle (non-fips) to 1.78.1 (#108223) 2024-05-03 16:10:20 -05:00
Mark Vieira
982c567d9a
Increase container size for machine dependent heap docker tests (#107797) 2024-04-23 16:29:31 -07:00
Kostas Krikellas
d11048e7ff
Mute DocketTests.test150MachineDependentHeap (#107509)
Related to #104786
2024-04-16 04:34:18 -04:00
Ryan Ernst
acb16ff36b
Improve packaging test debugging (#106491)
Packaging tests have several files that may be useful in debugging
failures. Additionally, we sometimes have assertions for which we want
to catch them and emit additional debugging info. This commit guards
the common ways that Elasticsearch is started and assertions are run
with dumping all debug information available.
2024-03-19 11:14:18 -07:00
Athena Brown
92c2b36e69
Decouple enrollment token version from node version (#104018)
This commit decouples the version used in enrollment tokens from node
version, as part of the larger effort to make versioning more granular.
The changes are relatively minimal, as the version encoded into
enrollment tokens is not actually used anywhere as far as I can tell,
either in Elasticsearch or Kibana, apart from checks that it is present.
That said, I've been around the block enough times to know better than
to remove a perfectly good version field that's already in something
like this.
2024-02-22 19:31:03 -05:00
William Brafford
0a4a052abc
Bring packaging tests README up to date (#102675) 2023-11-28 08:36:56 -05:00
Jake Landis
17a46a6e9f
upgrade bouncy castle jars (#100923)
This commit upgrades the Bouncy Castle jars. Bouncy Castle is used for 
some internal build concners as well as a comnand line application. 
Most notably Bouncy Castle is also used as the FIPs certified JCE/JSEE provider 
we use to test our ability to use a FIPs compliant crypto provider. 

The following changes here are a result of the upgraded Bouncy Castle jars:
* TLSv1.3 is now supported when running in FIPs mode 
* RSA PKCS#1 v1.5 is no longer allowed in FIPS mode
* Triple DES (3DES) is no longer allowed in FIPS mode
* Minor updates the security manager configuration used to test FIPs (to read permissions from the security provider)
* Minor adjustments to tests to accommodate the above changes. 
* Minor adjustments to the gradle build to accommodate new dependencies 

Note - update to the documentation will come in a later commit.
2023-11-21 11:14:41 -06:00
William Brafford
8e6e0e59ea
Make some classes final to avoid suppressing "this-escape" warning (#101699)
* Avoid "this-escape" by making classes final

The "this-escape" compiler warning is intended to alert
developers to potential bugs in object initialization due to
subclassing. This class of bugs cannot occur when a class is
final. Here, we take cases where a class has no implementations
but generates a "this-escape" warning, and we make those
classes final rather than suppressing the compiler warning.
This makes the remaining suppressions more meaningful, since
they now indicate places where we may want to look for
initialization bugs.

In a few cases, making a class final meant changing some of its
protected fields and methods to private or default
accessibility.

Some classes with no implementations are mocked in testing.
Since making those classes final would involve non-trivial
rewrites of tests, I've left them alone.

* Spotless, remove redundant modifiers, clean up "protected" usage

* Revert a few more mocked classes
2023-11-02 08:34:02 -04:00
Rene Groeschke
d8f1627e27
Remove vagrant support for OS packaging tests (#100987)
- This hasnt been maintained in a while and the vagrant gradle plugin also broke compatibiliy for gradle 
  --configuration-cache. Also this removes a lot maintenance burden.
- Rework DistroTestPlugin and simplify task dependencies
- Rename :qa:os to :qa:packaging
- Update testing doc recommending buildkite tools for debugging packaging tests
2023-10-19 12:10:58 +02:00