Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Add initial k6/x/execution module #1

Merged
merged 5 commits into from
Aug 26, 2021
Merged

Add initial k6/x/execution module #1

merged 5 commits into from
Aug 26, 2021

Conversation

imiric
Copy link
Contributor

@imiric imiric commented Jun 21, 2021

This is the extracted JS module originally added in grafana/k6#1863. As discussed, we want to make only the core changes required for this module in #1863 and develop the JS API for it separately, so that we can quickly iterate on it from community feedback.

I tested this with xk6 build 0314986c --with github.com/k6io/xk6-execution=. and it works fine, but we should translate the tests for it to be run in this repo somehow, probably in CI. Suggestions welcome.

@imiric imiric requested review from mstoykov, codebien and na-- June 21, 2021 10:06
execution.go Outdated Show resolved Hide resolved
initVU, err := r.NewVU(1, 10, samples)
require.NoError(t, err)

execScheduler, err := local.NewExecutionScheduler(r, testutils.NewLogger(t))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we simplify these into unit tests, and avoid the ExecutionScheduler and the utils copied to make it work?

Copy link

Choose a reason for hiding this comment

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

I doubt this repo will long enough for this to matter all that much

@imiric imiric force-pushed the feat/initial branch 3 times, most recently from 93f2d1d to 7ffcd9d Compare June 22, 2021 14:19
Ivan Mirić added 3 commits June 22, 2021 16:45
Copy link
Contributor

@codebien codebien left a comment

Choose a reason for hiding this comment

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

LGTM, just few comments

README.md Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@na-- na-- requested a review from codebien August 26, 2021 11:54
@na-- na-- dismissed codebien’s stale review August 26, 2021 12:00

Fixed all of the issues

@na-- na-- merged commit 6f6d81b into main Aug 26, 2021
@na-- na-- deleted the feat/initial branch August 26, 2021 12:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants