diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7fe72b4f..451ea9b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -193,11 +193,6 @@ jobs: needs: [build-binaries, build-windows-installer] if: ${{ startsWith(github.ref, 'refs/tags/v') }} steps: - - name: get release version - run: | - VERSION=$GITHUB_REF_NAME - VERSION_SHA=$GITHUB_SHA - echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Checkout code uses: actions/checkout@v4 - name: Download binaries @@ -211,18 +206,9 @@ jobs: name: windows-installer path: dist - name: Generate checksum file - env: - VERSION: ${{ env.VERSION }} - run: sha256sum dist/* > "xk6-disruptor-${VERSION}-checksums.txt" + run: sha256sum dist/* > "xk6-disruptor-${{ github.REF_NAME }}-checksums.txt" - name: Create release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VERSION: ${{ env.VERSION }} run: | - MESSAGE="$(cat ./releases/${VERSION}.md)" - assets=() - for asset in ./dist/*; do - assets+=("$asset") - done - gh release create "$VERSION" --target "$VERSION_SHA" -F "./releases/${VERSION}.md" "${assets[@]}" - + gh release upload "${{ github.REF_NAME }}" ./dist/* diff --git a/releases/v0.1.0.md b/releases/v0.1.0.md deleted file mode 100644 index 0c03a987..00000000 --- a/releases/v0.1.0.md +++ /dev/null @@ -1,15 +0,0 @@ -This is the first public release of xk6-disruptor - -The xk6-disruptor is a [k6](https://k6.io) extension providing fault injection capabilities. - -> ⚠️ xk6-disruptor is in the alpha stage, undergoing active development. We do not guarantee API compatibility between releases - your k6 scripts may need to be updated on each release until this extension reaches v1.0 release. - -If you encounter any bugs or unexpected behavior, please search the currently open GitHub issues first, and create a new one if it doesn't exist yet. - -Check our [documentation](https://k6.io/docs/javascript-api/xk6-disruptor) for instructions on how to [install](https://k6.io/docs/javascript-api/xk6-disruptor/get-started/installation) `xk6-disruptor` and a guide to the fault injection [API](https://k6.io/docs/javascript-api/xk6-disruptor/api) . - -You can keep track of our development plan in our [roadmap](https://github.com/grafana/xk6-disruptor/blob/main/ROADMAP.md). - -If you encounter any bugs or unexpected behavior, please search the [currently open GitHub issues](https://github.com/grafana/xk6-disruptor/issues) first, and create a new one if it doesn't exist yet. - - diff --git a/releases/v0.1.1.md b/releases/v0.1.1.md deleted file mode 100644 index 9f4a472f..00000000 --- a/releases/v0.1.1.md +++ /dev/null @@ -1,10 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [Disruptor agent not working on MacOS on ARM chips](https://github.com/grafana/xk6-disruptor/issues/62) -- [Unit tests fail in MacOS](https://github.com/grafana/xk6-disruptor/issues/80) - -## Improvements -- Binaries generated for Linux and MacOS for amd64 and arm64 architectures -- Agent image supports amd64 and arm64 architectures -- MacOS is supported as a build platform for both the extension and the agent image diff --git a/releases/v0.1.3.md b/releases/v0.1.3.md deleted file mode 100644 index 3f7bd7ba..00000000 --- a/releases/v0.1.3.md +++ /dev/null @@ -1,8 +0,0 @@ -This is a patch release with minor improvements. - -## Improvements -- Binary and installer generated for Windows. Windows is now a supported platform for running tests. -- [Support for Kubernetes in-cluster configuration](https://github.com/grafana/xk6-disruptor/pull/97 ). This improvement allows xk6-disruptor to be executed in a pod using the k6-operator. - -## New contributors -- @mcandeia contributed with support for in-cluster configuration https://github.com/grafana/xk6-disruptor/pull/97 \ No newline at end of file diff --git a/releases/v0.2.0.md b/releases/v0.2.0.md deleted file mode 100644 index 87b4eeeb..00000000 --- a/releases/v0.2.0.md +++ /dev/null @@ -1,7 +0,0 @@ -xk6-disruptor v0.2.0 is out! - -This release contains new functionalities for the disruptor. - -## Enhancements -- [Support for fault injection in gRPC services](https://github.com/grafana/xk6-disruptor/pull/120). This improvement allows xk6-disruptor to inject faults in gRPC requests. Check the example [](https://k6.io/docs/javascript-api/xk6-disruptor/examples/inject-grpc-faults-into-service/) - diff --git a/releases/v0.2.1.md b/releases/v0.2.1.md deleted file mode 100644 index 77d7c3fe..00000000 --- a/releases/v0.2.1.md +++ /dev/null @@ -1,5 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [ServiceDisruptor does not resolve target port if service uses port name](https://github.com/grafana/xk6-disruptor/issues/130) - diff --git a/releases/v0.3.0.md b/releases/v0.3.0.md deleted file mode 100644 index 293674fd..00000000 --- a/releases/v0.3.0.md +++ /dev/null @@ -1,12 +0,0 @@ -xk6-disruptor v0.3.0 is out! - -This release contains breaking changes in the xk6-disruptor API. - -## Breaking changes - -- [Use duration as strings in API](https://github.com/grafana/xk6-disruptor/pull/137).
-This PR changes xk6-disruptor's API to use strings in duration-related parameters, avoiding the use of implicit time units in numeric parameters and making it consistent with k6 API. Changes where introduced to: - * The duration of the fault injection methods - * The delay introduced in HTTP and GRPC faults - - diff --git a/releases/v0.3.1.md b/releases/v0.3.1.md deleted file mode 100644 index c208633d..00000000 --- a/releases/v0.3.1.md +++ /dev/null @@ -1,5 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [Missing time units in fault injection](https://github.com/grafana/xk6-disruptor/issues/144) - diff --git a/releases/v0.3.10.md b/releases/v0.3.10.md deleted file mode 100644 index 013eeb9a..00000000 --- a/releases/v0.3.10.md +++ /dev/null @@ -1,11 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Enhancements -- [#359](https://github.com/grafana/xk6-disruptor/pull/359) Pod Termination fault. This new fault type allows the termination of a set of the targets pods for a PodDisruptor or ServiceDisruptor. - -## Bug fixes -- [#368](https://github.com/grafana/xk6-disruptor/pull/368) Fix pod controller not stopping all fault injection when an error occurs - -## Internal improvements -- [#355](https://github.com/grafana/xk6-disruptor/pull/355) [#356](https://github.com/grafana/xk6-disruptor/pull/356) [#365](https://github.com/grafana/xk6-disruptor/pull/365) Multiple changes in the code structure to facilitate the addition of new features and improve testability. -- [#340](https://github.com/grafana/xk6-disruptor/pull/340) [#341](https://github.com/grafana/xk6-disruptor/pull/341) [#342](https://github.com/grafana/xk6-disruptor/pull/342) Complete migration of integration tests to using TestContainers diff --git a/releases/v0.3.11.md b/releases/v0.3.11.md deleted file mode 100644 index 4033fb41..00000000 --- a/releases/v0.3.11.md +++ /dev/null @@ -1,14 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Updates - -- [#370](https://github.com/grafana/xk6-disruptor/pull/370) We have updated our license to AGPL to align with Grafana license policy - -## Bug fixes - -- [#391](https://github.com/grafana/xk6-disruptor/pull/391) Revert the update of upload/download artifacts actions to v4 due to issues when uploading artifacts from multiple jobs - -## Internal improvements -- [#388](https://github.com/grafana/xk6-disruptor/pull/388) Update k6 to v0.49.0 -- [#298](https://github.com/grafana/xk6-disruptor/pull/298) [#376](https://github.com/grafana/xk6-disruptor/pull/376) Update dependencies -- [#357](https://github.com/grafana/xk6-disruptor/pull/357) [#374](https://github.com/grafana/xk6-disruptor/pull/374) Experimental work on new disruptions diff --git a/releases/v0.3.12.md b/releases/v0.3.12.md deleted file mode 100644 index 9276d218..00000000 --- a/releases/v0.3.12.md +++ /dev/null @@ -1,14 +0,0 @@ -This is a patch release that updates dependencies - -## Updates - -### Chores -* Update golangci/golangci-lint-action action to v6 by @renovate in https://github.com/grafana/xk6-disruptor/pull/398 -* Change to using sobek instead of goja by @mstoykov in https://github.com/grafana/xk6-disruptor/pull/400 -* Update module github.com/florianl/go-nfqueue to v2 by @renovate in https://github.com/grafana/xk6-disruptor/pull/399 -* Update alpine Docker tag to v3.20 by @renovate in https://github.com/grafana/xk6-disruptor/pull/380 - -## New Contributors -* @mstoykov made their first contribution in https://github.com/grafana/xk6-disruptor/pull/400 - -**Full Changelog**: https://github.com/grafana/xk6-disruptor/compare/v0.3.11...v0.3.12 diff --git a/releases/v0.3.2.md b/releases/v0.3.2.md deleted file mode 100644 index dcd85bf6..00000000 --- a/releases/v0.3.2.md +++ /dev/null @@ -1,17 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [#182](https://github.com/grafana/xk6-disruptor/issues/182) HTTP Headers are not preserved in HTTP fault injection -- [#128](https://github.com/grafana/xk6-disruptor/issues/128) Validate target port when injecting protocol faults to Pods - -## Internal improvements - -- [#160](https://github.com/grafana/xk6-disruptor/pull/160) Use ingresses in the e2e test to facilitate parallel tests. Mitigates the flakiness issues in the e2e tests [#147](https://github.com/grafana/xk6-disruptor/issues/147). Also allows removing some complex logic used for preventing port collisions between tests [#189](https://github.com/grafana/xk6-disruptor/pull/189) -- [#172](https://github.com/grafana/xk6-disruptor/pull/172) Introduce an abstraction for the runtime environment to facilitate testing -- Facilitate debugging of the disruptor agent by means of instrumentation options [#166](https://github.com/grafana/xk6-disruptor/pull/166) and also adding the option of running the agent as a proxy in the development environment [#169](https://github.com/grafana/xk6-disruptor/pull/169) -- [#177](https://github.com/grafana/xk6-disruptor/pull/177) [#170](https://github.com/grafana/xk6-disruptor/pull/170) Multiple minor improvements in the code -- [#176](https://github.com/grafana/xk6-disruptor/pull/176) Add a CI action to validate spelling in the code - -## New contributors -- [@nickandreev](https://github.com/nickandreev) Validate target port when injecting protocol faults to Pods [#128](https://github.com/grafana/xk6-disruptor/issues/128) -- [@roobre](https://github.com/roobre) Multiple contributions [#177](https://github.com/grafana/xk6-disruptor/pull/177) [#170](https://github.com/grafana/xk6-disruptor/pull/170) [#176](https://github.com/grafana/xk6-disruptor/pull/176) \ No newline at end of file diff --git a/releases/v0.3.3.md b/releases/v0.3.3.md deleted file mode 100644 index 75d43c59..00000000 --- a/releases/v0.3.3.md +++ /dev/null @@ -1,8 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [#219](https://github.com/grafana/xk6-disruptor/issues/219) Disruptor binaries does not include experimental browser module - -## Internal improvements -- [210](https://github.com/grafana/xk6-disruptor/pull/210) Set up Renovate for dependency update automation -- [209](https://github.com/grafana/xk6-disruptor/pull/209) [212](https://github.com/grafana/xk6-disruptor/pull/212) Refactoring to improve separation between agent logic from cli for better testability and preparation for implementing a gRPC interface for the agent [52](https://github.com/grafana/xk6-disruptor/issues/52) diff --git a/releases/v0.3.4.md b/releases/v0.3.4.md deleted file mode 100644 index 16348e2b..00000000 --- a/releases/v0.3.4.md +++ /dev/null @@ -1,15 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Enhancements -- [#231](https://github.com/grafana/xk6-disruptor/pull/231) Allow interception of port-forwarded traffic -- [#257](https://github.com/grafana/xk6-disruptor/pull/257) Refuse to inject a fault on pods with hostNetwork set to true - -## Internal improvements -- [#258](https://github.com/grafana/xk6-disruptor/pull/258) Upgrade to golangci-lint v1.53.3 -- [#244](https://github.com/grafana/xk6-disruptor/pull/244) Implement mechanism for generating custom agent commands per target pod -- [#241](https://github.com/grafana/xk6-disruptor/pull/241) Update actions/setup-go action to v4 -- [#239](https://github.com/grafana/xk6-disruptor/pull/239) Add golangci to renovate configuration -- [#237](https://github.com/grafana/xk6-disruptor/pull/237) Update alpine Docker tag to v3.18 -- [#235](https://github.com/grafana/xk6-disruptor/pull/235) Update go k8s libraries to v0.27.3 -- [#233](https://github.com/grafana/xk6-disruptor/pull/233)[#236](https://github.com/grafana/xk6-disruptor/pull/236) Enhancements in the setup and cleanup of e2e test resources -- [#213](https://github.com/grafana/xk6-disruptor/pull/213) Generate runtime metrics \ No newline at end of file diff --git a/releases/v0.3.5.md b/releases/v0.3.5.md deleted file mode 100644 index c6b73c48..00000000 --- a/releases/v0.3.5.md +++ /dev/null @@ -1,5 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [#264](https://github.com/grafana/xk6-disruptor/pull/264) Revert change of default proxy port to 8000 -- [#263](https://github.com/grafana/xk6-disruptor/issues/263) Custom builds from a release break version synchronization between extension and agent \ No newline at end of file diff --git a/releases/v0.3.6.md b/releases/v0.3.6.md deleted file mode 100644 index 79efce96..00000000 --- a/releases/v0.3.6.md +++ /dev/null @@ -1,8 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Bug Fixes -- [#276](https://github.com/grafana/xk6-disruptor/pull/276) Bump k6 version to fix broken dependency -- [#269](https://github.com/grafana/xk6-disruptor/pull/269) Fix build process failing for non-release builds - -## Internal improvements -- [#271](https://github.com/grafana/xk6-disruptor/pull/271) [#273](https://github.com/grafana/xk6-disruptor/pull/273) Minor improvements in code \ No newline at end of file diff --git a/releases/v0.3.7.md b/releases/v0.3.7.md deleted file mode 100644 index fabe7c05..00000000 --- a/releases/v0.3.7.md +++ /dev/null @@ -1,6 +0,0 @@ -## Bug Fixes -- [#293](https://github.com/grafana/xk6-disruptor/pull/293) Revert [#271](https://github.com/grafana/xk6-disruptor/issues/271) as a quick fix for [#292](https://github.com/grafana/xk6-disruptor/issues/292) - - -## Internal improvements -- [#285](https://github.com/grafana/xk6-disruptor/pull/285) [#287](https://github.com/grafana/xk6-disruptor/pull/287) [#291](https://github.com/grafana/xk6-disruptor/pull/291) Minor improvements in code \ No newline at end of file diff --git a/releases/v0.3.8.md b/releases/v0.3.8.md deleted file mode 100644 index 8d85dc62..00000000 --- a/releases/v0.3.8.md +++ /dev/null @@ -1,15 +0,0 @@ -This is a patch release that fixes a few bugs and does minor improvements. - -## Enhancements -- [#320](https://github.com/grafana/xk6-disruptor/pull/320) Report an error if proxy does not receive any requests -- [#267](https://github.com/grafana/xk6-disruptor/pull/267) Report error if there are no targets for a disruptor - -## Bug Fixes -- [#326](https://github.com/grafana/xk6-disruptor/pull/326) Prevent race condition waiting for condition that could affect the injection of the agent in the target Pods -- [#316](https://github.com/grafana/xk6-disruptor/pull/316) Add missing validations in some fault injections - -## Internal improvements -- [#322](https://github.com/grafana/xk6-disruptor/pull/322) [#323](https://github.com/grafana/xk6-disruptor/pull/323) Proof of concepts that demonstrate using TestContainers for integration tests for agent and the Kubernetes helper library -- [#313](https://github.com/grafana/xk6-disruptor/pull/313) Add tool for e2e test cluster setup and cleanup. This tool facilitates sharing clusters among tests to reduce the setup time -- [#303](https://github.com/grafana/xk6-disruptor/pull/303) [#304](https://github.com/grafana/xk6-disruptor/pull/304) [#306](https://github.com/grafana/xk6-disruptor/pull/306) Minor improvements in code and tests -- [#297](https://github.com/grafana/xk6-disruptor/pull/297) Update k6 to v0.46.0 \ No newline at end of file diff --git a/releases/v0.3.9.md b/releases/v0.3.9.md deleted file mode 100644 index 31753216..00000000 --- a/releases/v0.3.9.md +++ /dev/null @@ -1,4 +0,0 @@ -This is a patch release that fixes a bug that prevented `xk6-disruptor` to be built using `xk6`. - -## Bug Fixes -- [#332](https://github.com/grafana/xk6-disruptor/pull/332) Fix xk6 not being able to build k6 with xk6-disruptor due to a mismatch in GRPC dependencies