Skip to content

Commit 8b1c3b8

Browse files
committed
Updated release notes and missed file
1 parent ac01289 commit 8b1c3b8

File tree

2 files changed

+46
-26
lines changed

2 files changed

+46
-26
lines changed

build-tools-internal/src/test/java/org/elasticsearch/gradle/internal/release/ReleaseNotesGeneratorTest.java

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,40 @@
2525

2626
public class ReleaseNotesGeneratorTest {
2727

28-
/**
29-
* Check that the release notes can be correctly generated.
30-
*/
28+
private static final List<String> CHANGE_TYPES = List.of(
29+
"breaking",
30+
"breaking-java",
31+
"bug",
32+
"fixes",
33+
"deprecation",
34+
"enhancement",
35+
"feature",
36+
"features-enhancements",
37+
"new-aggregation",
38+
"regression",
39+
"upgrade"
40+
);
41+
42+
@Test
43+
public void generateFile_index_rendersCorrectMarkup() throws Exception {
44+
testTemplate("index.md");
45+
}
46+
47+
@Test
48+
public void generateFile_breakingChanges_rendersCorrectMarkup() throws Exception {
49+
testTemplate("breaking-changes.md");
50+
}
51+
3152
@Test
32-
public void generateFile_rendersCorrectMarkup() throws Exception {
53+
public void generateFile_deprecations_rendersCorrectMarkup() throws Exception {
54+
testTemplate("deprecations.md");
55+
}
56+
57+
public void testTemplate(String templateFilename) throws Exception {
3358
// given:
34-
final String template = getResource("/templates/release-notes.asciidoc");
59+
final String template = getResource("/templates/" + templateFilename);
3560
final String expectedOutput = getResource(
36-
"/org/elasticsearch/gradle/internal/release/ReleaseNotesGeneratorTest.generateFile.asciidoc"
61+
"/org/elasticsearch/gradle/internal/release/ReleaseNotesGeneratorTest." + templateFilename
3762
);
3863

3964
final Set<ChangelogEntry> entries = getEntries();
@@ -47,35 +72,19 @@ public void generateFile_rendersCorrectMarkup() throws Exception {
4772

4873
private Set<ChangelogEntry> getEntries() {
4974
final Set<ChangelogEntry> entries = new HashSet<>();
50-
entries.addAll(buildEntries(1, 2));
51-
entries.addAll(buildEntries(2, 2));
52-
entries.addAll(buildEntries(3, 2));
53-
54-
// Security issues are presented first in the notes
55-
final ChangelogEntry securityEntry = new ChangelogEntry();
56-
securityEntry.setArea("Security");
57-
securityEntry.setType("security");
58-
securityEntry.setSummary("Test security issue");
59-
entries.add(securityEntry);
60-
61-
// known issues are presented after security issues
62-
final ChangelogEntry knownIssue = new ChangelogEntry();
63-
knownIssue.setArea("Search");
64-
knownIssue.setType("known-issue");
65-
knownIssue.setSummary("Test known issue");
66-
entries.add(knownIssue);
75+
for (int i = 0; i < CHANGE_TYPES.size(); i++) {
76+
entries.addAll(buildEntries(i, 2));
77+
}
6778

6879
return entries;
6980
}
7081

7182
private List<ChangelogEntry> buildEntries(int seed, int count) {
7283
// Sample of possible areas from `changelog-schema.json`
7384
final List<String> areas = List.of("Aggregation", "Cluster", "Indices", "Mappings", "Search", "Security");
74-
// Possible change types, with `breaking`, `breaking-java`, `known-issue` and `security` removed.
75-
final List<String> types = List.of("bug", "deprecation", "enhancement", "feature", "new-aggregation", "regression", "upgrade");
7685

7786
final String area = areas.get(seed % areas.size());
78-
final String type = types.get(seed % types.size());
87+
final String type = CHANGE_TYPES.get(seed % CHANGE_TYPES.size());
7988

8089
final List<ChangelogEntry> entries = new ArrayList<>(count);
8190

docs/release-notes/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ ES|QL:
5050
* Allow skip shards with `_tier` and `_index` in ES|QL [#123728](https://github.com/elastic/elasticsearch/pull/123728)
5151
* Avoid `NamedWritable` in block serialization [#124394](https://github.com/elastic/elasticsearch/pull/124394)
5252
* ES|QL - Add scoring for full text functions disjunctions [#121793](https://github.com/elastic/elasticsearch/pull/121793)
53+
* ES|QL: Support `::date` in inline cast [#123460](https://github.com/elastic/elasticsearch/pull/123460) (issue: {es-issue}116746[#116746])
5354
* Fix Driver status iterations and `cpuTime` [#123290](https://github.com/elastic/elasticsearch/pull/123290) (issue: {es-issue}122967[#122967])
5455
* Implement runtime skip_unavailable=true [#121240](https://github.com/elastic/elasticsearch/pull/121240)
5556
* Initial support for unmapped fields [#119886](https://github.com/elastic/elasticsearch/pull/119886)
5657
* Introduce `allow_partial_results` setting in ES|QL [#122890](https://github.com/elastic/elasticsearch/pull/122890)
5758
* Introduce a pre-mapping logical plan processing step [#121260](https://github.com/elastic/elasticsearch/pull/121260)
59+
* Pragma to load from stored fields [#122891](https://github.com/elastic/elasticsearch/pull/122891)
5860
* Push down `StartsWith` and `EndsWith` functions to Lucene [#123381](https://github.com/elastic/elasticsearch/pull/123381) (issue: {es-issue}123067[#123067])
5961
* Render `aggregate_metric_double` [#122660](https://github.com/elastic/elasticsearch/pull/122660)
6062
* Retry ES|QL node requests on shard level failures [#120774](https://github.com/elastic/elasticsearch/pull/120774)
@@ -86,6 +88,8 @@ Machine Learning:
8688
* Adding support for binary embedding type to Cohere service embedding type [#120751](https://github.com/elastic/elasticsearch/pull/120751)
8789
* Adding support for specifying embedding type to Jina AI service settings [#121548](https://github.com/elastic/elasticsearch/pull/121548)
8890
* ES|QL `change_point` processing command [#120998](https://github.com/elastic/elasticsearch/pull/120998)
91+
* Integrate with `DeepSeek` API [#122218](https://github.com/elastic/elasticsearch/pull/122218)
92+
* [Inference API] Propagate product use case http header to EIS [#124025](https://github.com/elastic/elasticsearch/pull/124025)
8993

9094
Mapping:
9195
* Enable synthetic recovery source by default when synthetic source is enabled. Using synthetic recovery source significantly improves indexing performance compared to regular recovery source. [#122615](https://github.com/elastic/elasticsearch/pull/122615) (issue: {es-issue}116726[#116726])
@@ -110,6 +114,7 @@ Security:
110114
* Bump nimbus-jose-jwt to 10.0.2 [#124544](https://github.com/elastic/elasticsearch/pull/124544)
111115

112116
Snapshot/Restore:
117+
* GCS blob store: add `OperationPurpose/Operation` stats counters [#122991](https://github.com/elastic/elasticsearch/pull/122991)
113118
* Upgrade AWS SDK to v1.12.746 [#122431](https://github.com/elastic/elasticsearch/pull/122431)
114119

115120
Stats:
@@ -170,13 +175,15 @@ Infra/Core:
170175

171176
Ingest Node:
172177
* Fix geoip databases index access after system feature migration (again) [#122938](https://github.com/elastic/elasticsearch/pull/122938)
178+
* Fix geoip databases index access after system feature migration (take 3) [#124604](https://github.com/elastic/elasticsearch/pull/124604)
173179
* apm-data: Use representative count as event.success_count if available [#119995](https://github.com/elastic/elasticsearch/pull/119995)
174180

175181
Machine Learning:
176182
* Add `ElasticInferenceServiceCompletionServiceSettings` [#123155](https://github.com/elastic/elasticsearch/pull/123155)
177183
* Add enterprise license check to inference action for semantic text fields [#122293](https://github.com/elastic/elasticsearch/pull/122293)
178184
* Avoid potentially throwing calls to Task#getDescription in model download [#124527](https://github.com/elastic/elasticsearch/pull/124527)
179185
* Fix serialising the inference update request [#122278](https://github.com/elastic/elasticsearch/pull/122278)
186+
* Provide model size statistics as soon as an anomaly detection job is opened [#124638](https://github.com/elastic/elasticsearch/pull/124638) (issue: {es-issue}121168[#121168])
180187
* Retry on streaming errors [#123076](https://github.com/elastic/elasticsearch/pull/123076)
181188
* Set Connect Timeout to 5s [#123272](https://github.com/elastic/elasticsearch/pull/123272)
182189
* Updates to allow using Cohere binary embedding response in semantic search queries [#121827](https://github.com/elastic/elasticsearch/pull/121827)
@@ -188,11 +195,15 @@ Mapping:
188195
Ranking:
189196
* Restore `TextSimilarityRankBuilder` XContent output [#124564](https://github.com/elastic/elasticsearch/pull/124564)
190197

198+
Relevance:
199+
* Prevent Query Rule Creation with Invalid Numeric Match Criteria [#122823](https://github.com/elastic/elasticsearch/pull/122823)
200+
191201
Search:
192202
* Do not let `ShardBulkInferenceActionFilter` unwrap / rewrap ESExceptions [#123890](https://github.com/elastic/elasticsearch/pull/123890)
193203
* Fix concurrency issue in `ScriptSortBuilder` [#123757](https://github.com/elastic/elasticsearch/pull/123757)
194204
* Fix handling of auto expand replicas for stateless indices [#122365](https://github.com/elastic/elasticsearch/pull/122365)
195205
* Handle search timeout in `SuggestPhase` [#122357](https://github.com/elastic/elasticsearch/pull/122357) (issue: {es-issue}122186[#122186])
206+
* Let MLTQuery throw IAE when no analyzer is set [#124662](https://github.com/elastic/elasticsearch/pull/124662) (issue: {es-issue}124562[#124562])
196207

197208
Snapshot/Restore:
198209
* Fork post-snapshot-delete cleanup off master thread [#122731](https://github.com/elastic/elasticsearch/pull/122731)

0 commit comments

Comments
 (0)