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

Introduce test utils for ingest pipelines #112733

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Sep 11, 2024

Replaces the somewhat-awkward API on ClusterAdminClient for
manipulating ingest pipelines with some test-specific utilities that are
easier to use.

Relates #107984 in that this change massively reduces the noise that
would otherwise result from removing the trappy timeouts in these APIs.

@DaveCTurner DaveCTurner added >non-issue :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v8.16.0 labels Sep 11, 2024
Replaces the somewhat-awkward API on `ClusterAdminClient` for
manipulating ingest pipelines with some test-specific utilities that are
easier to use.

Relates elastic#107984 in that this change massively reduces the noise that
would otherwise result from removing the trappy timeouts in these APIs.
@DaveCTurner DaveCTurner force-pushed the 2024/09/11/ingest-test-utils branch from e4775fe to 006afa4 Compare September 11, 2024 11:06
@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Sep 11, 2024
@DaveCTurner DaveCTurner marked this pull request as ready for review September 11, 2024 13:12
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Sep 11, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I do have a question, I see safeGet and safeAwait seem to be a pattern we want tests to use — should they be documented somewhere so that contributors and other developers know to use them? (Or maybe they already are? I didn't find them mentioned)

@DaveCTurner DaveCTurner merged commit 8607d40 into elastic:main Sep 12, 2024
16 checks passed
@DaveCTurner DaveCTurner deleted the 2024/09/11/ingest-test-utils branch September 12, 2024 07:22
@DaveCTurner
Copy link
Contributor Author

should they be documented somewhere so that contributors and other developers know to use them?

Possibly, tho I'm not really sure where. It's not like we want to completely forbid .actionGet() and friends in tests, at least we're a long way from doing that today, and old habits die hard.

v1v added a commit to v1v/elasticsearch that referenced this pull request Sep 12, 2024
…tion-ironbank-ubi

* upstream/main: (302 commits)
  Deduplicate BucketOrder when deserializing (elastic#112707)
  Introduce test utils for ingest pipelines (elastic#112733)
  [Test] Account for auto-repairing for shard gen file (elastic#112778)
  Do not throw in task enqueued by CancellableRunner (elastic#112780)
  Mute org.elasticsearch.script.StatsSummaryTests testEqualsAndHashCode elastic#112439
  Mute org.elasticsearch.repositories.blobstore.testkit.integrity.RepositoryVerifyIntegrityIT testTransportException elastic#112779
  Use a dedicated test executor in MockTransportService (elastic#112748)
  Estimate segment field usages (elastic#112760)
  (Doc+) Inference Pipeline ignores Mapping Analyzers (elastic#112522)
  Fix verifyVersions task (elastic#112765)
  (Doc+) Terminating Exit Codes (elastic#112530)
  (Doc+) CAT Nodes default columns (elastic#112715)
  [DOCS] Augment installation warnings (elastic#112756)
  Mute org.elasticsearch.repositories.blobstore.testkit.integrity.RepositoryVerifyIntegrityIT testCorruption elastic#112769
  Bump Elasticsearch to a minimum of JDK 21 (elastic#112252)
  ESQL: Compute support for filtering ungrouped aggs (elastic#112717)
  Bump Elasticsearch version to 9.0.0 (elastic#112570)
  add CDR related data streams to kibana_system priviliges (elastic#112655)
  Support widening of numeric types in union-types (elastic#112610)
  Introduce data stream options and failure store configuration classes (elastic#109515)
  ...
davidkyle pushed a commit that referenced this pull request Sep 12, 2024
Replaces the somewhat-awkward API on `ClusterAdminClient` for
manipulating ingest pipelines with some test-specific utilities that are
easier to use.

Relates #107984 in that this change massively reduces the noise that
would otherwise result from removing the trappy timeouts in these APIs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >non-issue serverless-linked Added by automation, don't add manually Team:Data Management Meta label for data/management team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants