Skip to content

Chore(deps): bump github.com/elastic/elastic-integration-corpus-generator-tool from 0.10.0 to 0.11.0#3208

Merged
mergify[bot] merged 2 commits intomainfrom
dependabot/go_modules/github.com/elastic/elastic-integration-corpus-generator-tool-0.11.0
Jan 20, 2026
Merged

Chore(deps): bump github.com/elastic/elastic-integration-corpus-generator-tool from 0.10.0 to 0.11.0#3208
mergify[bot] merged 2 commits intomainfrom
dependabot/go_modules/github.com/elastic/elastic-integration-corpus-generator-tool-0.11.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 14, 2026

Bumps github.com/elastic/elastic-integration-corpus-generator-tool from 0.10.0 to 0.11.0.

Release notes

Sourced from github.com/elastic/elastic-integration-corpus-generator-tool's releases.

v0.11.0

What's Changed

New Contributors

Full Changelog: elastic/elastic-integration-corpus-generator-tool@v0.10.0...v0.11.0

Commits
  • 9370e17 Add byte and short types (#170)
  • 467e3fc Restore concurrency safety at generator level (#169)
  • b564f05 Bump the github-actions group across 1 directory with 2 updates (#156)
  • 04789ba Add support for counter resets (#152)
  • 2732131 github-action: add dependabot for GitHub actions (#155)
  • a33344d extend enum support (#144)
  • 1676ff9 github-action: delete opentelemetry workflow (#145)
  • 22bc96c Add CODEOWNERS file and clarify ownership in repo readme (#140)
  • 7407a15 Bump golang.org/x/sync from 0.6.0 to 0.7.0 (#139)
  • 22431d2 Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#134)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

…ator-tool

Bumps [github.com/elastic/elastic-integration-corpus-generator-tool](https://github.com/elastic/elastic-integration-corpus-generator-tool) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/elastic/elastic-integration-corpus-generator-tool/releases)
- [Commits](elastic/elastic-integration-corpus-generator-tool@v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/elastic/elastic-integration-corpus-generator-tool
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner January 14, 2026 17:22
Copy link
Contributor

@mergify mergify bot left a comment

Choose a reason for hiding this comment

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

Automatically approving dependabot

@mrodm
Copy link
Contributor

mrodm commented Jan 16, 2026

There was a breaking change in elastic/elastic-integration-corpus-generator-tool#169
cc @elastic/ecosystem

Maybe we could add the same parameter set in tests ? WDYT @shmsr ?
https://github.com/elastic/elastic-integration-corpus-generator-tool/pull/169/files#diff-9f4dfe9994f786198e4f4b158c9b6529d41fac2feeb1d4b18afbc036456637fcR315

One example where it is used in elastic-package (benchrunners)

return genlib.NewGeneratorWithCustomTemplate(tpl, config, fields, totEvents)
case "gotext":
return genlib.NewGeneratorWithTextTemplate(tpl, config, fields, totEvents)

@shmsr
Copy link
Member

shmsr commented Jan 16, 2026

There was a breaking change in elastic/elastic-integration-corpus-generator-tool#169 cc @elastic/ecosystem

Maybe we could add the same parameter set in tests ? WDYT @shmsr ? https://github.com/elastic/elastic-integration-corpus-generator-tool/pull/169/files#diff-9f4dfe9994f786198e4f4b158c9b6529d41fac2feeb1d4b18afbc036456637fcR315

One example where it is used in elastic-package (benchrunners)

return genlib.NewGeneratorWithCustomTemplate(tpl, config, fields, totEvents)
case "gotext":
return genlib.NewGeneratorWithTextTemplate(tpl, config, fields, totEvents)

Here it did come up during the review, but later we agreed that the library was still in version 0. However, yes, from now on, we will try to ensure that even in version 0.x.x, we do not break the API unless absolutely necessary.

We can use a default seed like mentioned here and make the changes in elastic-package: elastic/elastic-integration-corpus-generator-tool#169 (comment)?

@mrodm
Copy link
Contributor

mrodm commented Jan 16, 2026

We can use a default seed like mentioned here and make the changes in elastic-package: elastic/elastic-integration-corpus-generator-tool#169 (comment)?

Do you mean updating elastic-package code to use as default value int64(1) ? Would that cause that the same values are created every execution if that seed is set?

	case "", "placeholder":
		generator, err = genlib.NewGeneratorWithCustomTemplate(tpl, *config, fields, totEvents, int64(1))
	case "gotext":
		generator, err = genlib.NewGeneratorWithTextTemplate(tpl, *config, fields, totEvents, int64(1))
	}

or doing this (as I see in the tests in that PR)?

	case "", "placeholder":
		generator, err = genlib.NewGeneratorWithCustomTemplate(tpl, *config, fields, totEvents, rand.Int63())
	case "gotext":
		generator, err = genlib.NewGeneratorWithTextTemplate(tpl, *config, fields, totEvents, rand.Int63())
	}

Any suggestion to add for this new parameter?

Another options, Should it be added new functions in the library that creates the generator without adding ourselves the random seed as parameter ? Thereby, the seed could be created by the library with a safe value to use?

@cavokz
Copy link

cavokz commented Jan 16, 2026

Apologies for the lack of documentation about this change.

Using rand.Int63() is indeed a way to solve it. You could also use time.Now().UnixNano():

diff --git internal/benchrunner/runners/rally/runner.go internal/benchrunner/runners/rally/runner.go
index 77c427ce..8c27a402 100644
--- internal/benchrunner/runners/rally/runner.go
+++ internal/benchrunner/runners/rally/runner.go
@@ -580,9 +580,9 @@ func (r *runner) initializeGenerator(ctx context.Context) (genlib.Generator, err
 		logger.Debugf("unknown generator template type %q, defaulting to \"placeholder\"", r.scenario.Corpora.Generator.Template.Type)
 		fallthrough
 	case "", "placeholder":
-		generator, err = genlib.NewGeneratorWithCustomTemplate(tpl, *config, fields, totEvents)
+		generator, err = genlib.NewGeneratorWithCustomTemplate(tpl, *config, fields, totEvents, time.Now().UnixNano())
 	case "gotext":
-		generator, err = genlib.NewGeneratorWithTextTemplate(tpl, *config, fields, totEvents)
+		generator, err = genlib.NewGeneratorWithTextTemplate(tpl, *config, fields, totEvents, time.Now().UnixNano())
 	}

 	if err != nil {
diff --git internal/benchrunner/runners/stream/runner.go internal/benchrunner/runners/stream/runner.go
index 7735a5c0..7bd91889 100644
--- internal/benchrunner/runners/stream/runner.go
+++ internal/benchrunner/runners/stream/runner.go
@@ -313,9 +313,9 @@ func (r *runner) initializeGenerator(tpl []byte, config genlib.Config, fields ge
 		logger.Debugf("unknown generator template type %q, defaulting to \"placeholder\"", scenario.Corpora.Generator.Template.Type)
 		fallthrough
 	case "", "placeholder":
-		return genlib.NewGeneratorWithCustomTemplate(tpl, config, fields, totEvents)
+		return genlib.NewGeneratorWithCustomTemplate(tpl, config, fields, totEvents, time.Now().UnixNano())
 	case "gotext":
-		return genlib.NewGeneratorWithTextTemplate(tpl, config, fields, totEvents)
+		return genlib.NewGeneratorWithTextTemplate(tpl, config, fields, totEvents, time.Now().UnixNano())
 	}
 }
 func (r *runner) collectGenerators(ctx context.Context) error {
diff --git internal/benchrunner/runners/system/runner.go internal/benchrunner/runners/system/runner.go
index a5f44ac9..4ecd8ecf 100644
--- internal/benchrunner/runners/system/runner.go
+++ internal/benchrunner/runners/system/runner.go
@@ -522,9 +522,9 @@ func (r *runner) initializeGenerator(ctx context.Context) (genlib.Generator, err
 		logger.Debugf("unknown generator template type %q, defaulting to \"placeholder\"", r.scenario.Corpora.Generator.Template.Type)
 		fallthrough
 	case "", "placeholder":
-		generator, err = genlib.NewGeneratorWithCustomTemplate(tpl, *config, fields, totEvents)
+		generator, err = genlib.NewGeneratorWithCustomTemplate(tpl, *config, fields, totEvents, time.Now().UnixNano())
 	case "gotext":
-		generator, err = genlib.NewGeneratorWithTextTemplate(tpl, *config, fields, totEvents)
+		generator, err = genlib.NewGeneratorWithTextTemplate(tpl, *config, fields, totEvents, time.Now().UnixNano())
 	}

 	if err != nil {

@mrodm
Copy link
Contributor

mrodm commented Jan 19, 2026

Thanks @cavokz !
I've applied your suggestion in this commit 062569f

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@mrodm
Copy link
Contributor

mrodm commented Jan 19, 2026

@elastic/ecosystem could you do also another review for this?

@cavokz
Copy link

cavokz commented Jan 19, 2026

@elastic/ecosystem could you do also another review for this?

I understand that this API change is not very appealing for a user that does not actually care about seeding the random generator. An option I'm proposing in elastic/elastic-integration-corpus-generator-tool#171 (comment) is to maybe switch to a more extensible way to provide optional settings.

@mergify mergify bot added the queued label Jan 20, 2026
mergify bot added a commit that referenced this pull request Jan 20, 2026
@mergify
Copy link
Contributor

mergify bot commented Jan 20, 2026

Merge Queue Status

✅ The pull request has been merged at 062569f

This pull request spent 31 minutes 41 seconds in the queue, including 31 minutes 28 seconds running CI.
The checks were run on draft #3218.

Required conditions to merge

@mergify mergify bot merged commit cfc12f1 into main Jan 20, 2026
5 checks passed
@mergify mergify bot deleted the dependabot/go_modules/github.com/elastic/elastic-integration-corpus-generator-tool-0.11.0 branch January 20, 2026 11:23
@mergify mergify bot removed the queued label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants