Skip to content

Commit

Permalink
Merge branch 'main' into drop-ccs-telemetry-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Oct 1, 2024
2 parents 2dd80ba + 276f71d commit a4c8e2f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs-preview-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
pull_request_target:
types: [opened]
paths:
- '**.asciidoc'
- "**.asciidoc"

jobs:
doc-preview:
if: github.repository == 'elastic/elasticsearch'
permissions:
pull-requests: write
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ permissions:
jobs:
validation:
name: "Validation"
if: github.repository == 'elastic/elasticsearch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sync-main-to-jdk-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
3 changes: 2 additions & 1 deletion .github/workflows/updatecli-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ name: updatecli-compose
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
- cron: "0 6 * * *"

permissions:
contents: read

jobs:
compose:
if: github.repository == 'elastic/elasticsearch'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public SyntheticSourceExample example(int maxValues) {

var textArray = values.stream().map(Value::text).toList();

var blockExpectedList = values.stream().map(Value::tokenCount).filter(Objects::nonNull).toList();
var blockExpectedList = values.stream().map(Value::tokenCount).filter(Objects::nonNull).sorted().toList();
var blockExpected = blockExpectedList.size() == 1 ? blockExpectedList.get(0) : blockExpectedList;

return new SyntheticSourceExample(textArray, textArray, blockExpected, this::mapping);
Expand All @@ -230,7 +230,7 @@ private record Value(String text, Integer tokenCount) {}

private Value generateValue() {
if (rarely()) {
return new Value(null, null);
return new Value(null, nullValue);
}

var text = randomList(0, 10, () -> randomAlphaOfLengthBetween(0, 10)).stream().collect(Collectors.joining(" "));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ public void testParseRequestConfig_ThrowsElasticsearchStatusExceptionWhenChunkin
createRandomChunkingSettingsMap(),
getSecretSettingsMap(apiKey)
),
Set.of(),
modelVerificationListener
);
}
Expand Down Expand Up @@ -210,7 +209,6 @@ public void testParseRequestConfig_CreatesAGoogleAiStudioEmbeddingsModelWhenChun
createRandomChunkingSettingsMap(),
getSecretSettingsMap(apiKey)
),
Set.of(),
modelListener
);
}
Expand Down Expand Up @@ -240,7 +238,6 @@ public void testParseRequestConfig_CreatesAGoogleAiStudioEmbeddingsModelWhenChun
new HashMap<>(Map.of()),
getSecretSettingsMap(apiKey)
),
Set.of(),
modelListener
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public void testParseRequestConfig_ThrowsElasticsearchStatusExceptionWhenChunkin
"id",
TaskType.TEXT_EMBEDDING,
getRequestConfigMap(getServiceSettingsMap("url"), createRandomChunkingSettingsMap(), getSecretSettingsMap("secret")),
Set.of(),
modelVerificationListener
);
}
Expand All @@ -153,7 +152,6 @@ public void testParseRequestConfig_CreatesAnEmbeddingsModelWhenChunkingSettingsP
"id",
TaskType.TEXT_EMBEDDING,
getRequestConfigMap(getServiceSettingsMap("url"), createRandomChunkingSettingsMap(), getSecretSettingsMap("secret")),
Set.of(),
modelVerificationActionListener
);
}
Expand All @@ -175,7 +173,6 @@ public void testParseRequestConfig_CreatesAnEmbeddingsModelWhenChunkingSettingsN
"id",
TaskType.TEXT_EMBEDDING,
getRequestConfigMap(getServiceSettingsMap("url"), getSecretSettingsMap("secret")),
Set.of(),
modelVerificationActionListener
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public void testParseRequestConfig_ThrowsElasticsearchStatusExceptionWhenChunkin
createRandomChunkingSettingsMap(),
getSecretSettingsMap("secret")
),
Set.of(),
modelVerificationListener
);
}
Expand Down Expand Up @@ -171,7 +170,6 @@ public void testParseRequestConfig_CreatesAMistralEmbeddingsModelWhenChunkingSet
createRandomChunkingSettingsMap(),
getSecretSettingsMap("secret")
),
Set.of(),
modelVerificationListener
);
}
Expand Down Expand Up @@ -199,7 +197,6 @@ public void testParseRequestConfig_CreatesAMistralEmbeddingsModelWhenChunkingSet
getEmbeddingsTaskSettingsMap(),
getSecretSettingsMap("secret")
),
Set.of(),
modelVerificationListener
);
}
Expand Down

0 comments on commit a4c8e2f

Please sign in to comment.