Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 'size' in EQL Sample queries #87846

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
f6003b8
Add support for 'size' in EQL Sample queries
luigidellaquila Jun 20, 2022
872cdfa
Merge branch 'feature/eql_samples' into enhancement/eql_samples_limit
luigidellaquila Jun 20, 2022
b690f64
Merge branch 'feature/eql_samples' into enhancement/eql_samples_limit
luigidellaquila Jun 20, 2022
8571f04
Implement review suggestions
luigidellaquila Jun 22, 2022
7299858
Fix hashCode()
luigidellaquila Jun 27, 2022
a2d7d31
Merge branch 'feature/eql_samples' into enhancement/eql_samples_limit
luigidellaquila Jun 30, 2022
8dab37d
Merge branch 'feature/eql_samples' into enhancement/eql_samples_limit
luigidellaquila Jun 30, 2022
21111f7
Merge branch 'feature/eql_samples' into enhancement/eql_samples_limit
luigidellaquila Jul 12, 2022
7c38041
Make it explicit that test expects no rebalancing. (#89040)
idegtiarenko Aug 8, 2022
c4bd4d3
Fix typo in geo-distance-query doc (#89148)
gonmmarques Aug 8, 2022
259d2e0
Fix typo in TRACING.md
pugnascotia Aug 8, 2022
c81f907
Refine size-your-shards wording (#89081)
DaveCTurner Aug 8, 2022
36c4a17
Do not generate empty buckets for the date histogram (#89070)
salvatore-campagna Aug 8, 2022
ee33383
Polling for cluster diagnostics information (#89014)
masseyke Aug 8, 2022
226b8a2
[DOCS] Modifies the description of frequency. (#89128)
szabosteve Aug 8, 2022
7602015
[DOCS] Improves frequent items aggregation docs (#89122)
szabosteve Aug 8, 2022
92dc846
[ML] Extract ML tasks into a context class for use in autoscaling dec…
dimitris-athanasiou Aug 8, 2022
8bf0df8
Implement review suggestions
luigidellaquila Aug 8, 2022
eed422b
Merge branch 'feature/eql_samples' into enhancement/eql_samples_limit
luigidellaquila Aug 8, 2022
cfad420
Enable BloomFilter for _id of non-datastream indices (#88409)
dnhatn Aug 8, 2022
24e367f
Add support for source fallback with the boolean field type (#89052)
jdconrad Aug 8, 2022
81265d2
Add support for source fallback with scaled float field type (#89053)
jdconrad Aug 8, 2022
ac25477
Quote paths with whitespace in Windows service CLIs (#89072)
ChrisHegarty Aug 8, 2022
2429dbc
Dry up custom immutable Map.Entry implementations (#89153)
original-brownbear Aug 8, 2022
f3659a6
Remove redundant and slow null token check from KeywordFieldMapper (#…
original-brownbear Aug 8, 2022
398b014
Upgrade Gradle wrapper to 7.5.1 (#88918)
mark-vieira Aug 8, 2022
cdbd7ad
Add publishing plugin to elasticsearch-grok project (#89184)
mark-vieira Aug 8, 2022
e6cfd9c
Show assigned role descriptors in Get/QueryApiKey response (#89166)
ywangd Aug 9, 2022
254e6bc
Remove needless optimization ShardRouting.asList (#89179)
original-brownbear Aug 9, 2022
c6c05bb
Deduplicate ShardRouting instances when building ClusterInfo (#89190)
original-brownbear Aug 9, 2022
80eeca7
[ML] Confirm platinum license for experimental ML aggregations (#89117)
droberts195 Aug 9, 2022
9dd47d8
Account for `null` metadata in update API key test (#89195)
n1v0lg Aug 9, 2022
c9d4892
Weaken language about "low-latency" networks (#89198)
DaveCTurner Aug 9, 2022
08fb6ed
[ML] Extract downscale to zero logic into its own method (#89197)
dimitris-athanasiou Aug 9, 2022
cd359b3
geo_line aggregation returns a geojson point when the resulting line …
iverase Aug 9, 2022
e63bcb5
Fixing internal action names (#89182)
masseyke Aug 9, 2022
5233229
Update CODEOWNERS (#89155)
jlind23 Aug 9, 2022
7b615ac
Fix ReactiveStorageIT#testScaleDuringSplitOrClone (#88607)
fcofdez Aug 9, 2022
6a91f97
[Stack Monitoring] Cleanup unused mappings properties (#88899)
klacabane Aug 9, 2022
de281b5
Complete listener in ReservedStateErrorTaskExecutor (#89191)
DaveCTurner Aug 9, 2022
264f09f
Script: Common base class for write scripts (#89141)
stu-elastic Aug 9, 2022
895baf0
Delete invalid settings for system indices (#88903)
grcevski Aug 9, 2022
d663231
User Profile - GetProfile API nows supports multiple UIDs (#89023)
ywangd Aug 10, 2022
72e24d3
Log when repository is marked as corrupted (#89132)
idegtiarenko Aug 10, 2022
546a2e2
Add note on per-segment field name overhead (#89152)
DaveCTurner Aug 10, 2022
ceffaf9
Improve rejection of ambiguous voting config name (#89239)
DaveCTurner Aug 10, 2022
a278594
[ML] Move method to compute current memory scale into NativeMemoryCap…
dimitris-athanasiou Aug 10, 2022
341f3b7
[DOCS] Update URLs in plugin document (#89221)
GabyCT Aug 10, 2022
399a8ac
Add TransportHealthNodeAction (#89127)
gmarouli Aug 10, 2022
c0019a3
Ensure APM module is always installed in release test clusters (#89223)
mark-vieira Aug 10, 2022
841ac8e
Upgrade Apache Commons Logging to 1.2 (#85745)
yrodiere Aug 10, 2022
7cc275d
Downgrade known bad containerd version during packaging tests (#89255)
mark-vieira Aug 11, 2022
453b5b1
Verify auto follower recover after full leader cluster restart (#89207)
idegtiarenko Aug 11, 2022
0bf31b7
Fix message for stalled shutdown (#89254)
DaveCTurner Aug 11, 2022
616fd07
Drop transport client from ping_schedule docs (#89264)
DaveCTurner Aug 11, 2022
2d3bcc4
[DOCS] Warn only one date format is added to the field date formats w…
lucabelluccini Aug 11, 2022
7caa242
Autoscaling requirement for empty tier (#89266)
henningandersen Aug 11, 2022
12a1290
Mute FrozenExistenceDeciderIT.testZeroToOne (#89271)
luigidellaquila Aug 11, 2022
5cbf4fb
[ML] Extract timing of autoscaling into its own class (#89253)
dimitris-athanasiou Aug 11, 2022
892ad01
Refactor registering listeners out of constructors (#89265)
gmarouli Aug 11, 2022
993e467
Sort ranges in geo_distance aggregation (#89154)
iverase Aug 11, 2022
88a0f6f
Check for polygon self-intersections in ShapeFieldMapper (#89210)
iverase Aug 11, 2022
e4a19d4
Fixing remote master stability request when there has never been an e…
masseyke Aug 11, 2022
6c12fe0
[Transform] add an unattended mode setting to transform (#89212)
Aug 11, 2022
89ff87d
Fix CloseIndexIT.testConcurrentClose (#89173)
tlrx Aug 11, 2022
9ad91f2
Add Amazon 2022 to platform support testing matrix
mark-vieira Aug 11, 2022
e063ce8
[DOCS] Separate "user lookup" into its own doc (#88533)
tvernum Aug 12, 2022
96febb7
Ensure secureString remain open when reloading secure settings (#88922)
ywangd Aug 12, 2022
8dfbcd5
Limited-by role descriptors in Get/QueryApiKey response (#89273)
ywangd Aug 12, 2022
5a19729
Drop username from AuthenticateRequest (#88365)
ywangd Aug 12, 2022
da3e4e8
Keep test folders of failed build tools integration tests (#89296)
breskeby Aug 12, 2022
654f31d
Update libbeat config module fields type (#88990)
crespocarlos Aug 12, 2022
ed940b6
Clarify that TransportService#sendRequest never throws (#89298)
DaveCTurner Aug 12, 2022
f9055b5
Miscellaneous cleanups in TransportService (#89299)
DaveCTurner Aug 12, 2022
e4c7feb
Fix: Update geo-bounding-box-query.asciidoc (#87459) (#89301)
abdonpijpelink Aug 12, 2022
0502139
[ML] Feature importance test for house pricing data (#89307)
valeriy42 Aug 12, 2022
5a26455
Adding a check to the master stability health API when there is no ma…
masseyke Aug 12, 2022
ca11e82
[ML] Improve reason when autoscaling capacity cannot be computed (#89…
dimitris-athanasiou Aug 12, 2022
dcc87dd
AwaitsFix for #89325
DaveCTurner Aug 13, 2022
4779893
Introduce BatchExecutionContext (#89323)
DaveCTurner Aug 13, 2022
104ad7f
TSDB: fix time series field caps bwc yaml test (#89236)
weizijun Aug 15, 2022
51f89f4
Handle rejection in LeaderChecker (#89326)
DaveCTurner Aug 15, 2022
621c38c
Report better error for GCS credentials load failure (#89336)
DaveCTurner Aug 15, 2022
745947e
Capture deprecation warnings in batched master tasks (#85525)
DaveCTurner Aug 15, 2022
8d37d48
Check circuit breaker before sending join request (#89318)
DaveCTurner Aug 15, 2022
c4c1802
Unify handling of custom Gradle User home in build tool tests (#89304)
breskeby Aug 15, 2022
9b24b41
Force rejection of unsupported bulk actions in v9 (#89339)
DaveCTurner Aug 15, 2022
10b8047
Include runtime fields in total fields count (#89251)
mayya-sharipova Aug 15, 2022
60016c8
convert raw url to hyperlink in javadoc (#89319)
not-napoleon Aug 15, 2022
098f518
Double quote the env variable in curl command (#89279)
ywangd Aug 15, 2022
8360bf9
Fixing a version check for master stability functionality (#89322)
masseyke Aug 15, 2022
3496dd5
ILM get lifecycle remove unused code (#89260)
weizijun Aug 15, 2022
0811850
Enhance changelog for date_histogram speedup (#89353)
nik9000 Aug 15, 2022
2569d1f
Docs: synthetic source doesn't dedupe numbers (#89355)
nik9000 Aug 15, 2022
00d4953
[DOCS] Fixes broken example in pipeline tutorial (#89315)
abdonpijpelink Aug 16, 2022
e4ff839
[ML] Skip renormalization after node shutdown API called (#89347)
droberts195 Aug 16, 2022
f87ce07
[ML] Sync changelogs between 8.4 and main (#89377)
droberts195 Aug 16, 2022
e7a84b1
Remove deprecated convenient methods from GetApiKeyRequest (#89360)
ywangd Aug 16, 2022
80796fb
Small cleanups to Allocation Performance (#89378)
original-brownbear Aug 16, 2022
914e216
Prepare synthetic source docs for tech-preview (#89358)
nik9000 Aug 16, 2022
fd9473a
[ML] Get categories endpoint to use ECS Grok patterns (#89386)
edsavage Aug 16, 2022
ac9f12f
Add logging in GlobalCheckpointSyncIT (#89185)
Tim-Brooks Aug 16, 2022
b327b17
Fix shard splitting for `nested` (#89351)
nik9000 Aug 16, 2022
d248fa4
[DOCS] Update pull request template URLs (#89290)
GabyCT Aug 16, 2022
5af8ec5
Support camel case dates on 7.x indices (#88914)
grcevski Aug 16, 2022
82ad45f
TSDB: Build `_id` without reparsing (#88789)
nik9000 Aug 16, 2022
dc672b0
Handle snapshot restore in file settings (#89321)
grcevski Aug 16, 2022
acf9a67
Document kNN with aggregations (#89359)
jtibshirani Aug 16, 2022
2841bf7
YAML tests and docs for viewing API key role descriptors (#89186)
ywangd Aug 17, 2022
c4dfc66
[DOCS] Use CJKWidthCharFilter in JapaneseAnalyzer (#89364)
johtani Aug 17, 2022
03f3c81
Downsampling: copy`index.hidden` setting from source (#89177)
csoulios Aug 17, 2022
f2257ca
[DOCS] Adds note about escaping backslashes in regex (#89276)
abdonpijpelink Aug 17, 2022
af8ac50
[DOCS] Update search_after section with an example (#89328)
anthonymcglone2022 Aug 17, 2022
2c37c59
Allocation commands related refactoring (#89400)
idegtiarenko Aug 17, 2022
59c745c
[DOCS] Bulk update API keys API (#89215)
n1v0lg Aug 17, 2022
27061a5
Revert "[DOCS] Update search_after section with an example (#89328)" …
abdonpijpelink Aug 17, 2022
e2bf861
Introduce TriangleTreeReader.DecodedVisitor (#89401)
iverase Aug 17, 2022
189f279
Don't modify source map when parsing composite runtime field (#89114)
romseygeek Aug 17, 2022
3c30674
Fix ConcurrentSnapshotsIT.testAssertMultipleSnapshotsAndPrimaryFailOv…
original-brownbear Aug 17, 2022
5d6af58
GeoShapeValue can determine the spatial relationship with a LatLonGeo…
iverase Aug 17, 2022
f1071ca
Remove side-effects in streams in PrimaryShardAllocator (#89218)
arteam Aug 17, 2022
09d0025
Graph: fix race condition in timeout (#88946)
nik9000 Aug 17, 2022
c038a91
Assign the right path to objects merged when parsing mappings (#89389)
javanna Aug 17, 2022
695d1a8
Remove root argument from buildMappers method (#89390)
javanna Aug 17, 2022
837a8d7
Add support for floating point node.processors setting (#89281)
fcofdez Aug 17, 2022
2a08258
Fix BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackg…
original-brownbear Aug 17, 2022
79a8979
Synthetic source: load text from stored fields (#87480)
nik9000 Aug 17, 2022
ad61274
move log-related logic into log block in IndexLifecycleRunner (#89292)
mushao999 Aug 17, 2022
a1056f1
Docs: Correct ctx.op value to valid 'noop' (#89391)
adammichalik Aug 17, 2022
fe8e586
Add source fallback support for unsigned long mapped type (#89349)
jdconrad Aug 17, 2022
f849847
Fix duplication bug for source fallback in numeric types (#89352)
jdconrad Aug 17, 2022
cbea639
Add the ability to run REST integration tests with 1 allocated proces…
fcofdez Aug 17, 2022
1aa43ec
Add text field support in the Painless scripting fields API (#89396)
jdconrad Aug 17, 2022
f31b1f6
fix a typo in Security.java (#89248)
dh-cloud Aug 17, 2022
825c354
Clean-up file watcher keys. (#89429)
grcevski Aug 17, 2022
63b850c
REST tests for cumulative pipeline aggs (#88966)
nik9000 Aug 17, 2022
b46d95b
REST tests for percentiles_bucket agg (#88029)
nik9000 Aug 17, 2022
3bde177
Rollover min_* conditions docs and highlight (#89434)
joegallo Aug 17, 2022
725367e
User Profile - Detailed errors in hasPrivileges response (#89224)
ywangd Aug 18, 2022
3bb13e2
Return 400 error for GetUserPrivileges call with API keys (#89333)
ywangd Aug 18, 2022
1403ab3
Remove redundant cluster upgrade tests for auth tokens (#89417)
n1v0lg Aug 18, 2022
c238aa1
Add YAML spec docs about matching errors (#89370)
DaveCTurner Aug 18, 2022
18328b0
Remove LegacyClusterTaskResultActionListener (#89459)
DaveCTurner Aug 18, 2022
c541610
Upgrade OpenTelemetry API and remove workaround (#89438)
pugnascotia Aug 18, 2022
58ddca3
feature: support metrics for multi value fields (#88818)
salvatore-campagna Aug 18, 2022
22e1150
Reuse Info in lifecycle step (#89419)
mushao999 Aug 18, 2022
058ea45
Add source fallback support for date and date_nanos mapped types (#89…
jdconrad Aug 18, 2022
9f29241
[ML] Performance improvements related to ECS Grok pattern usage (#89424)
edsavage Aug 18, 2022
3c2fc5a
Mute failing tests (#89465)
williamrandolph Aug 18, 2022
20ed7e3
Better support for multi cluster for run task (#89442)
jakelandis Aug 18, 2022
f0df4b7
Updates to changelog processing after docs redesign (#89463)
pugnascotia Aug 18, 2022
a1015ce
Add periodic job for single processor node testing
mark-vieira Aug 18, 2022
e949dff
Disable openid connect tests due to missing fixture (#89478)
mark-vieira Aug 18, 2022
acf70cd
[Test] Speed up ApiKeyIntegTests (#89444)
ywangd Aug 22, 2022
51c6e6b
Remove deprecated code from `ApiKeyService` (#89380)
n1v0lg Aug 22, 2022
7d7332a
Mute ReactiveStorageIT#testScaleWhileShrinking (#89499)
dimitris-athanasiou Aug 22, 2022
b15f6dd
Mute test in StableMasterDisruptionIT (#89501)
dimitris-athanasiou Aug 22, 2022
58fafe2
Add source fallback support for match_only_text mapped type (#89473)
jdconrad Aug 22, 2022
824bfd0
Inactive shard flush should wait for ongoing one (#89430)
kingherc Aug 22, 2022
e9ea463
SQL: Set track_total_hits to false when not needed (#89106)
luigidellaquila Aug 22, 2022
5b3d51d
Fixing the conditions for fetching remote master history (#89472)
masseyke Aug 22, 2022
6b962ef
Update checkstyle config for newest plugin version (#88919)
mark-vieira Aug 22, 2022
5b999ee
Improve BWC distribution mismatch error message (#88911)
mark-vieira Aug 22, 2022
91d2db2
unmuting fixed test (#89511)
masseyke Aug 22, 2022
4b92e1d
Mark shard failures caused by unsupported aggregations or queries aga…
salvatore-campagna Aug 22, 2022
2800957
Ignore missing reaper logs directory on build completion
mark-vieira Aug 22, 2022
dc0cfd9
Disable ML when testing old ES versions on newer GLIBC (#89517)
mark-vieira Aug 22, 2022
64ccf04
Fork to MANAGEMENT for ILM cache cleanup operations (#89458)
original-brownbear Aug 22, 2022
c9b2cc4
[TEST] Make FileSettingsService test more reliable (#89468)
grcevski Aug 22, 2022
8f52a55
More accurate error message for LDAP user modes (#89492)
ywangd Aug 23, 2022
327b8f8
Stop using BlobContainer to build paths (#89513)
original-brownbear Aug 23, 2022
2b6fdfd
Refactor WildcardExpressionResolver for reusability (#89311)
albertzaharovits Aug 23, 2022
af4421d
Handle expired tokens in cluster migration tests (#89422)
n1v0lg Aug 23, 2022
fb4adda
[ML] Refactor memory autoscaling decider into its own class (#89470)
dimitris-athanasiou Aug 23, 2022
ac71b52
[DOCS] Updates anomaly detection alert rule type screenshot. (#89532)
szabosteve Aug 23, 2022
0cf3dc9
Fix incorrect failed shards count in APIs for current snapshots (#89534)
original-brownbear Aug 23, 2022
b557d20
Update OIDC test fixture (#89526)
jakelandis Aug 23, 2022
74d694e
[DOCS] Resizes anomaly detection screenshot properly. (#89544)
szabosteve Aug 23, 2022
3a78f80
Simplify and improve changelog YAML file validation (#89524)
mark-vieira Aug 23, 2022
5e797c3
More tests for enrich processor (#89554)
nik9000 Aug 23, 2022
1a57652
Add configure_test_clusters_with_one_processor to repro line printer …
mark-vieira Aug 23, 2022
c32e850
Don't use ramdisk for encryption at rest testing
mark-vieira Aug 23, 2022
e276fd9
Docs and yaml tests for viewing API key's limited-by (#89443)
ywangd Aug 23, 2022
32d5122
[ML] Validate trained model deployment queue_capacity limit (#89573)
dimitris-athanasiou Aug 24, 2022
d506aa4
Don't try to disable ML on incompatible versions (#89565)
mark-vieira Aug 24, 2022
0aa0477
Mute StartTrainedModelDeploymentRequestTests.testValidate_GivenQueueC…
mark-vieira Aug 24, 2022
5422860
Small cleanup in ShardGetService (#89578)
romseygeek Aug 24, 2022
365be4d
Bump versions after 8.4.0 release
mark-vieira Aug 24, 2022
caafd4c
Prune changelogs after 8.4.0 release
mark-vieira Aug 24, 2022
773aeab
Bump versions after 7.17.6 release
mark-vieira Aug 24, 2022
061e643
check parent circuit breaker when allocating empty bucket (#89568)
boicehuang Aug 24, 2022
114955f
Add convenience script for pruning old dev branch CI jobs
mark-vieira Aug 24, 2022
875164c
Generate release notes for 8.4 release (#89475)
mark-vieira Aug 23, 2022
7f91884
Remove coming tag from release notes (#89577)
karenzone Aug 24, 2022
ffcf0ea
Ensure only snapshot jdbc driver versions are testing when running ch…
mark-vieira Aug 24, 2022
bdbfcb3
Shorten time that snapshot finalization blocks repo (#89572)
original-brownbear Aug 25, 2022
8cac490
Fix log expectation inconsistency in flush test (#89571)
kingherc Aug 25, 2022
16e4cb1
[ML] Fix random threads_per_allocation in unit test (#89588)
dimitris-athanasiou Aug 25, 2022
862c885
Fix CheckTargetShardsCountStep #(48460) (#89176)
gmarouli Aug 25, 2022
8b3293d
[ML] Remove changelog entry for #89573 (#89613)
dimitris-athanasiou Aug 25, 2022
65b05f8
Add default value for destructive_requires_name (#85591)
Leaf-Lin Aug 25, 2022
2fad061
[DOCS] Update add node section (#89393)
Aug 25, 2022
6616746
Cleanup dead branch and duplication in ThreadContext (#89614)
original-brownbear Aug 25, 2022
3fca120
[ML] Return 408 when start deployment api times out (#89612)
dimitris-athanasiou Aug 25, 2022
dc4debc
[TEST] Fix SimpleThreadPoolIT file watcher thread name (#89624)
grcevski Aug 25, 2022
95a9b35
[Doc] Clarify unsupported operations with DLS/FLS (#89606)
ywangd Aug 26, 2022
98475ee
Merge branch 'main' into enhancement/eql_samples_limit
luigidellaquila Aug 26, 2022
ff7291e
Implement review suggestions
luigidellaquila Aug 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ BWC_VERSION:
- "7.17.4"
- "7.17.5"
- "7.17.6"
- "7.17.7"
- "8.0.0"
- "8.0.1"
- "8.1.0"
Expand All @@ -69,6 +70,6 @@ BWC_VERSION:
- "8.3.1"
- "8.3.2"
- "8.3.3"
- "8.3.4"
- "8.4.0"
- "8.4.1"
- "8.5.0"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
name: os
values:
- "centos-7&&immutable"
- "amazon&&immutable"
- "amazon-2&&immutable"
- "amazon-2022&&immutable"
- "debian-10&&immutable"
- "debian-11&&immutable"
- "opensuse-15-1&&immutable"
Expand Down
1 change: 0 additions & 1 deletion .ci/jobs.t/elastic+elasticsearch+periodic+ear.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
- job:
name: elastic+elasticsearch+%BRANCH%+periodic+ear
workspace: /dev/shm/elastic+elasticsearch+%BRANCH%+periodic+ear
display-name: "elastic / elasticsearch # %BRANCH% - encryption at rest"
description: "The Elasticsearch %BRANCH% branch encryption at rest compatibility tests.\n\n"
node: packaging-large
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
- job:
name: elastic+elasticsearch+%BRANCH%+periodic+single-processor-node-tests
display-name: "elastic / elasticsearch # %BRANCH% - single processor node tests"
description: "Testing with node.processors set to '1' for the Elasticsearch %BRANCH% branch.\n"
node: "general-purpose && docker"
builders:
- inject:
properties-file: '.ci/java-versions.properties'
properties-content: |
JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA
RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA
JAVA11_HOME=$HOME/.java/java11
- shell: |
#!/usr/local/bin/runbld --redirect-stderr
$WORKSPACE/.ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.configure_test_clusters_with_one_processor=true check
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
jjbb-template: periodic-trigger-lgc.yml
vars:
- periodic-job: elastic+elasticsearch+%BRANCH%+periodic+single-processor-node-tests
- lgc-job: elastic+elasticsearch+%BRANCH%+intake
- cron: "H H/12 * * *"
7 changes: 7 additions & 0 deletions .ci/scripts/packaging-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ if [ -f "/etc/os-release" ] ; then
sudo apt-get install -y --allow-downgrades lintian=2.15.0
fi
fi
if [[ "$ID" == "rhel" ]] ; then
# Downgrade containerd if necessary to work around runc bug
# See: https://github.com/opencontainers/runc/issues/3551
if containerd -version | grep -sF 1.6.7; then
sudo yum downgrade -y containerd.io
fi
fi
else
cat /etc/issue || true
fi
Expand Down
5 changes: 2 additions & 3 deletions .ci/snapshotBwcVersions
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
BWC_VERSION:
- "7.17.6"
- "8.3.4"
- "8.4.0"
- "7.17.7"
- "8.4.1"
- "8.5.0"
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ x-pack/plugin/core/src/main/resources/monitoring-logstash-mb.json @elastic/infra
x-pack/plugin/core/src/main/resources/monitoring-logstash.json @elastic/infra-monitoring-ui
x-pack/plugin/core/src/main/resources/monitoring-mb-ilm-policy.json @elastic/infra-monitoring-ui
x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/MonitoringTemplateRegistry.java @elastic/infra-monitoring-ui

# Elastic Agent
x-pack/plugin/fleet/src/main/java/org/elasticsearch/xpack/fleet @elastic/elastic-agent-control-plane
x-pack/plugin/core/src/main/resources/fleet-* @elastic/elastic-agent-control-plane
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ attention.
-->

- Have you signed the [contributor license agreement](https://www.elastic.co/contributor-agreement)?
- Have you followed the [contributor guidelines](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md)?
- Have you followed the [contributor guidelines](https://github.com/elastic/elasticsearch/blob/main/CONTRIBUTING.md)?
- If submitting code, have you built your formula locally prior to submission with `gradle check`?
- If submitting code, is your pull request against master? Unless there is a good reason otherwise, we prefer pull requests against master and will backport as needed.
- If submitting code, is your pull request against main? Unless there is a good reason otherwise, we prefer pull requests against main and will backport as needed.
- If submitting code, have you checked that your submission is for an [OS and architecture that we support](https://www.elastic.co/support/matrix#show_os)?
- If you are submitting this code for a class then read our [policy](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#contributing-as-part-of-a-class) for that.
- If you are submitting this code for a class then read our [policy](https://github.com/elastic/elasticsearch/blob/main/CONTRIBUTING.md#contributing-as-part-of-a-class) for that.
2 changes: 1 addition & 1 deletion TRACING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ For context, the APM agent pulls configuration from [multiple
sources][agent-config], with a hierarchy that means, for example, that options
set in the config file cannot be overridden via system properties.

Now, in order to send tracing data to the APM server, ES needs to configured with
Now, in order to send tracing data to the APM server, ES needs to be configured with
either a `secret_key` or an `api_key`. We could configure these in the agent via
system properties, but then their values would be available to any Java code in
Elasticsearch that can read system properties.
Expand Down
4 changes: 2 additions & 2 deletions build-tools-internal/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionSha256Sum=97a52d145762adc241bad7fd18289bf7f6801e08ece6badf80402fe2b9f250b1
distributionSha256Sum=db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InternalDistributionDownloadPluginFuncTest extends AbstractGradleFuncTest
"""

when:
def result = gradleRunner("setupDistro", '-g', testProjectDir.newFolder('GUH').path).build()
def result = gradleRunner("setupDistro", '-g', gradleUserHome).build()

then:
result.task(":distribution:archives:${testArchiveProjectName}:buildExpanded").outcome == TaskOutcome.SUCCESS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package org.elasticsearch.gradle.internal

import spock.lang.TempDir
import spock.lang.Unroll
import com.github.tomakehurst.wiremock.WireMockServer

Expand Down Expand Up @@ -126,7 +127,7 @@ class JdkDownloadPluginFuncTest extends AbstractGradleFuncTest {
when:
def result = WiremockFixture.withWireMock(mockRepoUrl, mockedContent) { server ->
buildFile << repositoryMockSetup(server, jdkVendor, jdkVersion)
gradleRunner('getJdk', '-i', '-g', testProjectDir.newFolder().toString()).build()
gradleRunner('getJdk', '-i', '-g', gradleUserHome).build()
}

then:
Expand Down Expand Up @@ -179,13 +180,12 @@ class JdkDownloadPluginFuncTest extends AbstractGradleFuncTest {
def result = WiremockFixture.withWireMock(mockRepoUrl, mockedContent) { server ->
buildFile << repositoryMockSetup(server, VENDOR_ADOPTIUM, ADOPT_JDK_VERSION)

def commonGradleUserHome = testProjectDir.newFolder().toString()
// initial run
def firstResult = gradleRunner('clean', 'getJdk', '-i', '--warning-mode', 'all', '-g', commonGradleUserHome).build()
def firstResult = gradleRunner('clean', 'getJdk', '-i', '--warning-mode', 'all', '-g', gradleUserHome).build()
// assert the output of an executed transform is shown
assertOutputContains(firstResult.output, "Unpacking $expectedArchiveName using $transformType")
// run against up-to-date transformations
gradleRunner('clean', 'getJdk', '-i', '--warning-mode', 'all', '-g', commonGradleUserHome).build()
gradleRunner('clean', 'getJdk', '-i', '--warning-mode', 'all', '-g', gradleUserHome).build()
}

then:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (buildNumber && performanceTest == null) {

fileset(dir: "${gradle.gradleUserHomeDir}/workers", followsymlinks: false)

fileset(dir: "${project.projectDir}/.gradle/reaper", followsymlinks: false)
fileset(dir: "${project.projectDir}/.gradle/reaper", followsymlinks: false, erroronmissingdir: false)
}
} catch (Exception e) {
logger.lifecycle("Failed to archive additional logs", e)
Expand Down
60 changes: 60 additions & 0 deletions build-tools-internal/src/main/groovy/elasticsearch.run-ccs.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

import org.elasticsearch.gradle.testclusters.DefaultTestClustersTask
import org.elasticsearch.gradle.testclusters.RunTask

boolean proxyMode = true;

def fulfillingCluster = testClusters.register('fulfilling-cluster') {
setting 'xpack.watcher.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
setting 'xpack.license.self_generated.type', 'trial'

user username: 'elastic-admin', password: 'elastic-password', role: '_es_test_root'
}

def queryingCluster = testClusters.register('querying-cluster') {
setting 'xpack.watcher.enabled', 'false'
setting 'xpack.ml.enabled', 'false'
setting 'xpack.license.self_generated.type', 'trial'
if (proxyMode) {
setting 'cluster.remote.my_remote_cluster.mode', 'proxy'
setting 'cluster.remote.my_remote_cluster.proxy_address', {
"\"${fulfillingCluster.get().getAllTransportPortURI().get(0)}\""
}
} else {
setting 'cluster.remote.my_remote_cluster.seeds', {
fulfillingCluster.get().getAllTransportPortURI().collect { "\"$it\"" }.toString()
}
}
setting 'cluster.remote.connections_per_cluster', "1"

user username: 'elastic-admin', password: 'elastic-password', role: '_es_test_root'
}

// the following task is needed to make sure the fulfilling cluster is fully configured before starting both clusters
// this allows the quering cluster to use configuration from the fulfilling cluster while honoring the RunTasks configuration (such as use port 9200)
tasks.register('initfulfillingCluster', RunTask) {
useCluster testClusters.named("fulfilling-cluster")
initOnly = true //only initialize the testCluster, don't start it
portOffset = 1 //when only initializing, instruct to use one above the normal ports to avoid collisions when other cluster also initializes
//debug = true //this task doesn't honor the command line options for run-ccs, so need to statically configure debug
}

tasks.register("run-ccs", RunTask) {
dependsOn initfulfillingCluster
useCluster testClusters.named("fulfilling-cluster")
useCluster testClusters.named("querying-cluster")
doFirst {
println "** Querying cluster HTTP endpoints are: ${-> queryingCluster.get().allHttpSocketURI.join(",")}"
println "** Querying cluster transport endpoints are: ${-> queryingCluster.get().getAllTransportPortURI().join(",")}"
println "** Fulfilling cluster HTTP endpoints are: ${-> fulfillingCluster.get().allHttpSocketURI.join(",")}"
println "** Fulfilling cluster transport endpoints are: ${-> fulfillingCluster.get().getAllTransportPortURI().join(",")}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.gradle.language.base.plugins.LifecycleBasePlugin;

import java.io.File;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -249,9 +250,10 @@ static void createBuildBwcTask(
@Override
public void execute(Task task) {
if (expectedOutputFile.exists() == false) {
throw new InvalidUserDataException(
"Building " + bwcVersion.get() + " didn't generate expected artifact " + expectedOutputFile
);
Path relativeOutputPath = project.getRootDir().toPath().relativize(expectedOutputFile.toPath());
final String message = "Building %s didn't generate expected artifact [%s]. The working branch may be "
+ "out-of-date - try merging in the latest upstream changes to the branch.";
throw new InvalidUserDataException(message.formatted(bwcVersion.get(), relativeOutputPath));
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

import org.elasticsearch.gradle.VersionProperties;
import org.elasticsearch.gradle.internal.info.BuildParams;
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster;
import org.elasticsearch.gradle.testclusters.TestClustersPlugin;
import org.gradle.api.NamedDomainObjectContainer;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.provider.ProviderFactory;
Expand All @@ -36,6 +38,16 @@ public void apply(Project project) {
version -> (version.equals(VersionProperties.getElasticsearchVersion()) && BuildParams.isSnapshotBuild() == false)
|| BuildParams.getBwcVersions().unreleasedInfo(version) == null
);

if (shouldConfigureTestClustersWithOneProcessor()) {
NamedDomainObjectContainer<ElasticsearchCluster> testClusters = (NamedDomainObjectContainer<ElasticsearchCluster>) project
.getExtensions()
.getByName(TestClustersPlugin.EXTENSION_NAME);
testClusters.configureEach(elasticsearchCluster -> elasticsearchCluster.setting("node.processors", "1"));
}
}

private boolean shouldConfigureTestClustersWithOneProcessor() {
return Boolean.parseBoolean(System.getProperty("tests.configure_test_clusters_with_one_processor", "false"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,16 @@ public void validate(InputChanges inputChanges) throws IOException {
errors.values().stream().flatMap(Collection::stream).forEach(printWriter::println);
}
StringBuilder sb = new StringBuilder();
sb.append("Error validating JSON. See the report at: ");
sb.append("Verification failed. See the report at: ");
sb.append(getReport().toURI().toASCIIString());
sb.append(System.lineSeparator());
sb.append(
String.format("Verification failed: %d files contained %d violations", errors.keySet().size(), errors.values().size())
String.format(
"Error validating %s: %d files contained %d violations",
getFileType(),
errors.keySet().size(),
errors.values().size()
)
);
throw new JsonSchemaException(sb.toString());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
import java.util.stream.Collectors;

/**
* This class models the contents of a changelog YAML file. We validate it using a
* JSON Schema, as well as some programmatic checks in {@link ValidateChangelogEntryTask}.
* This class models the contents of a changelog YAML file. We validate it using a JSON Schema.
* <ul>
* <li><code>buildSrc/src/main/resources/changelog-schema.json</code></li>
* <li><a href="https://json-schema.org/understanding-json-schema/">Understanding JSON Schema</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.gradle.api.file.FileTree;
import org.gradle.api.file.ProjectLayout;
import org.gradle.api.provider.Provider;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.api.tasks.util.PatternSet;

import java.io.File;
Expand Down Expand Up @@ -52,23 +51,15 @@ public void apply(Project project) {
.getAsFileTree()
.matching(new PatternSet().include("**/*.yml", "**/*.yaml"));

final Provider<ValidateYamlAgainstSchemaTask> validateChangelogsAgainstYamlTask = project.getTasks()
.register("validateChangelogsAgainstSchema", ValidateYamlAgainstSchemaTask.class, task -> {
final Provider<ValidateYamlAgainstSchemaTask> validateChangelogsTask = project.getTasks()
.register("validateChangelogs", ValidateYamlAgainstSchemaTask.class, task -> {
task.setGroup("Documentation");
task.setDescription("Validate that the changelog YAML files comply with the changelog schema");
task.setInputFiles(yamlFiles);
task.setJsonSchema(new File(project.getRootDir(), RESOURCES + "changelog-schema.json"));
task.setReport(new File(project.getBuildDir(), "reports/validateYaml.txt"));
});

final TaskProvider<ValidateChangelogEntryTask> validateChangelogsTask = project.getTasks()
.register("validateChangelogs", ValidateChangelogEntryTask.class, task -> {
task.setGroup("Documentation");
task.setDescription("Validate that all changelog YAML files are well-formed");
task.setChangelogs(yamlFiles);
task.dependsOn(validateChangelogsAgainstYamlTask);
});

final Function<Boolean, Action<GenerateReleaseNotesTask>> configureGenerateTask = shouldConfigureYamlFiles -> task -> {
task.setGroup("Documentation");
if (shouldConfigureYamlFiles) {
Expand Down
Loading