forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into source_loader_with_…
…filters
- Loading branch information
Showing
559 changed files
with
6,110 additions
and
2,161 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ steps: | |
matrix: | ||
setup: | ||
image: | ||
- centos-7 | ||
- debian-11 | ||
- opensuse-leap-15 | ||
- oraclelinux-7 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ steps: | |
matrix: | ||
setup: | ||
image: | ||
- centos-7 | ||
- debian-11 | ||
- opensuse-leap-15 | ||
- oraclelinux-7 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ steps: | |
matrix: | ||
setup: | ||
image: | ||
- centos-7 | ||
- debian-11 | ||
- opensuse-leap-15 | ||
- oraclelinux-7 | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,12 @@ | |
name: "Merge main to openjdk23-bundle branch" | ||
on: | ||
schedule: | ||
- cron: '30 17 * * *' | ||
- cron: "30 17 * * *" | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
merge-branch: | ||
if: github.repository == 'elastic/elasticsearch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
|
@@ -15,6 +16,6 @@ jobs: | |
- name: merge | ||
uses: devmasx/[email protected] | ||
with: | ||
type: 'now' | ||
type: "now" | ||
target_branch: openjdk23-bundle | ||
github_token: ${{ secrets.ELASTICSEARCHMACHINE_TOKEN }} |
This file contains 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
This file contains 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
This file contains 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
46 changes: 46 additions & 0 deletions
46
...org/elasticsearch/gradle/internal/test/rest/transform/close_to/ReplaceValueInCloseTo.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
package org.elasticsearch.gradle.internal.test.rest.transform.close_to; | ||
|
||
import com.fasterxml.jackson.databind.node.NumericNode; | ||
import com.fasterxml.jackson.databind.node.ObjectNode; | ||
|
||
import org.elasticsearch.gradle.internal.test.rest.transform.ReplaceByKey; | ||
import org.gradle.api.tasks.Internal; | ||
|
||
/** | ||
* Replaces the value of the `value` of a close_to assertion for a given sub-node. | ||
* For example: close_to: { get.fields._routing: { value: 5.1, error: 0.00001 } } | ||
* to close_to: { get.fields._routing: { value: 9.5, error: 0.00001 } } | ||
*/ | ||
public class ReplaceValueInCloseTo extends ReplaceByKey { | ||
|
||
public ReplaceValueInCloseTo(String replaceKey, NumericNode replacementNode) { | ||
this(replaceKey, replacementNode, null); | ||
} | ||
|
||
public ReplaceValueInCloseTo(String replaceKey, NumericNode replacementNode, String testName) { | ||
super(replaceKey, replaceKey, replacementNode, testName); | ||
} | ||
|
||
@Override | ||
@Internal | ||
public String getKeyToFind() { | ||
return "close_to"; | ||
} | ||
|
||
@Override | ||
public void transformTest(ObjectNode matchParent) { | ||
ObjectNode closeToNode = (ObjectNode) matchParent.get(getKeyToFind()); | ||
ObjectNode subNode = (ObjectNode) closeToNode.get(requiredChildKey()); | ||
subNode.remove("value"); | ||
subNode.set("value", getReplacementNode()); | ||
} | ||
} |
This file contains 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
Oops, something went wrong.