|
| 1 | +v0.22.0 is here! :tada: |
| 2 | + |
| 3 | +We're making an intermediary release before v1.0.0, as we wanted to get some changes out quicker. Thanks to @mohanprasaths for contributing to this release! |
| 4 | + |
| 5 | +To see what's left for the v1.0.0 release, check out [this milestone](https://github.com/loadimpact/k6/milestone/4)! |
| 6 | + |
| 7 | +Also, have a look at [our roadmap](https://github.com/loadimpact/k6/wiki/Roadmap) for what's up ahead, beyond the v1.0 release. |
| 8 | + |
| 9 | +## New Features! |
| 10 | +* New JS API to set seed for PRNG. Now, you are able to set a seed to get reproducible (pseudo-)random numbers. (#677) |
| 11 | + |
| 12 | +```js |
| 13 | +import {randomSeed} from "k6"; |
| 14 | + |
| 15 | +randomSeed(123456789); |
| 16 | +let rnd = Math.random(); |
| 17 | +console.log(rnd) |
| 18 | +``` |
| 19 | + |
| 20 | +* A new option `--no-vu-connection-reuse` lets users close HTTP `keep-alive` connections between iterations of a VU. (#676) |
| 21 | +* You can now set the minimum and maximum sleep time at the end of an iteration with the new `--min-sleep` and `--max-sleep` HAR coverter CLI flags. (#694) |
| 22 | +* Another new feature in the HAR converter enabled users to specify a JSON file with [script options](https://docs.k6.io/docs/options) that would be added to the options of the generated scripts with the new `--options` flag. (#694) |
| 23 | + |
| 24 | + |
| 25 | +## UX |
| 26 | + |
| 27 | + |
| 28 | +### Automated deb, rpm, msi and nuget package builds (#675) |
| 29 | + |
| 30 | +Previously we only had [Homebrew releases](https://github.com/loadimpact/k6#mac) for Mac and simple archives with [plain binary releases](https://github.com/loadimpact/k6/releases) for all other platforms. From now on, we'll also automatically build installation packages for Windows and rpm or deb based Linux distributions and upload them to bintray on every new release: [https://bintray.com/loadimpact](https://bintray.com/loadimpact/) |
| 31 | + |
| 32 | +For Debian-based Linux distributions, you have to do something like this to install k6: |
| 33 | + |
| 34 | +```sh |
| 35 | +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 |
| 36 | +echo "deb https://dl.bintray.com/loadimpact/deb stable main" | sudo tee -a /etc/apt/sources.list |
| 37 | +sudo apt-get update |
| 38 | +sudo apt-get install k6 |
| 39 | +``` |
| 40 | + |
| 41 | +And for rpm-based ones like Fedora and CentOS: |
| 42 | + |
| 43 | +```sh |
| 44 | +wget https://bintray.com/loadimpact/rpm/rpm -O bintray-loadimpact-rpm.repo |
| 45 | +sudo mv bintray-loadimpact-rpm.repo /etc/yum.repos.d/ |
| 46 | +sudo yum install k6 |
| 47 | +``` |
| 48 | + |
| 49 | +For Windows you can download and install the [latest `.msi` package](https://dl.bintray.com/loadimpact/windows/k6-latest-amd64.msi) or, if you use the [chocolatey package manager](https://chocolatey.org/), follow [these instructions](https://bintray.com/repo/buildSettings?repoPath=%2Floadimpact%2Fchoco) to set up the k6 repository. |
| 50 | + |
| 51 | + |
| 52 | +### Other UX improvements |
| 53 | + |
| 54 | +* There's a new option to reset the saved cloud token: `k6 login cloud --reset` (#672) |
| 55 | +* The check and group names in the summary at the end of a test now appear in the order they were defined. Thanks to @mohanprasaths for fixing this! (#674) |
| 56 | + |
| 57 | +## Internals |
| 58 | + |
| 59 | +### Real-time metrics (#678) |
| 60 | + |
| 61 | +Previously most metrics were emitted only when a script iteration ended. With these changes, metrics would be continuously pushed in real-time, even in the middle of a script iteration. This should slightly decrease memory usage and help a lot with the aggregation efficiency of the cloud collector. |
| 62 | + |
| 63 | +### Portable builds (#658) |
| 64 | + |
| 65 | +Before this, k6 builds that were done with just the standard Go language tools (i.e. `go get`, `go build`, etc.) [were not portable](https://github.com/loadimpact/k6/issues/545) because static resources like JS libraries had to be embedded in the binary after the build. Building fully portable binaries was done with the `build-release.sh` script (which used go.rice to bundle the static resources in the binary), but now that embedding is done beforehand and is commited in the git repo, so commands like `go get/build/install` produce fully-portable binary files without extra steps. |
| 66 | + |
| 67 | +## Bugs fixed! |
| 68 | + |
| 69 | +* Metrics emitted by `setup()` and `teardown()` are not discarded anymore. They are emitted and have the implicit root `group` tag values of `setup` and `teardown` respectively (#678) |
| 70 | +* Fixed a potential `nil` pointer error when the `k6 cloud` command is interrupted. (#682) |
| 71 | + |
| 72 | +## Breaking Changes |
| 73 | +* The `--no-connection-reuse` option has been re-purposed and now disables keep-alive connections globally. The newly added `--no-vu-connection-reuse` option does what was previously done by `--no-connection-reuse` - it closes any open connections between iterations of a VU, but allows for reusing them inside of a single iteration. (#676) |
0 commit comments