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

test: fix flaky TestAppenderFlushMetric #178

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

marclop
Copy link
Contributor

@marclop marclop commented Jun 6, 2024

Fixes the flaky TestAppenderFlushMetric test by increasing the number of events sent to they will always span two bulk requests in size.

Tested using:

$ go test -run=TestAppenderFlushMetric -count=100 -failfast ./...
?   	github.com/elastic/go-docappender/v2/docappendertest	[no test files]
ok  	github.com/elastic/go-docappender/v2	5.870s
$ go test -race -run=TestAppenderFlushMetric -count=100 -failfast ./...
?   	github.com/elastic/go-docappender/v2/docappendertest	[no test files]
ok  	github.com/elastic/go-docappender/v2	7.385s

Fixes the flaky `TestAppenderFlushMetric` test by increasing the number
of events sent to they will always span two bulk requests in size.

Signed-off-by: Marc Lopez Rubio <[email protected]>
@marclop marclop requested a review from kruskall June 6, 2024 10:39
@marclop marclop requested a review from a team as a code owner June 6, 2024 10:39
@obltmachine obltmachine added the safe-to-test Automated label for running bench-diff on forked PRs label Jun 6, 2024
@marclop marclop merged commit a158b6d into elastic:main Jun 6, 2024
6 checks passed
@marclop marclop deleted the b/fix-flaky-TestAppenderFlushMetric branch June 6, 2024 11:13
codeboten referenced this pull request in open-telemetry/opentelemetry-collector-contrib Jun 11, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/elastic/go-docappender/v2](https://github.com/elastic/go-docappender)
| `v2.1.3` -> `v2.1.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2felastic%2fgo-docappender%2fv2/v2.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2felastic%2fgo-docappender%2fv2/v2.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2felastic%2fgo-docappender%2fv2/v2.1.3/v2.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2felastic%2fgo-docappender%2fv2/v2.1.3/v2.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>elastic/go-docappender
(github.com/elastic/go-docappender/v2)</summary>

###
[`v2.1.4`](https://github.com/elastic/go-docappender/releases/tag/v2.1.4)

[Compare
Source](https://github.com/elastic/go-docappender/compare/v2.1.3...v2.1.4)

##### What's Changed

- integrationtest go mod tidy by
[@&#8203;carsonip](https://github.com/carsonip) in
[https://github.com/elastic/go-docappender/pull/176](https://github.com/elastic/go-docappender/pull/176)
- Fix typo in comment by
[@&#8203;carsonip](https://github.com/carsonip) in
[https://github.com/elastic/go-docappender/pull/175](https://github.com/elastic/go-docappender/pull/175)
- test: fix flaky TestAppenderFlushMetric by
[@&#8203;marclop](https://github.com/marclop) in
[https://github.com/elastic/go-docappender/pull/178](https://github.com/elastic/go-docappender/pull/178)
- build(deps): bump github.com/elastic/go-elasticsearch/v8 from 8.13.1
to 8.14.0 by [@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/elastic/go-docappender/pull/179](https://github.com/elastic/go-docappender/pull/179)
- Support `require_data_stream` new config option by
[@&#8203;marclop](https://github.com/marclop) in
[https://github.com/elastic/go-docappender/pull/180](https://github.com/elastic/go-docappender/pull/180)

**Full Changelog**:
elastic/go-docappender@v2.1.3...v2.1.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Yang Song <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe-to-test Automated label for running bench-diff on forked PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants