keptn-sandbox / k6-service

Keptn Service for running K6 as load testing tool.
MIT License
7 stars 1 forks source link

Discuss: Building K6 extensions and running test instead of asking user to do it #4

Closed jainammm closed 1 year ago

jainammm commented 2 years ago

Topic

  k6_local_test:
    name: k6 counter extension run
    runs-on: ubuntu-latest
    container: docker://golang:1.17-alpine

    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Install xk6
        run: go install go.k6.io/xk6/cmd/xk6@latest

      - name: Build xk6-counter binary
        run: xk6 build --with github.com/mstoykov/xk6-counter@latest

      - name: Run k6 extension test
        run: ./k6 run extension/script.js

References

agardnerIT commented 1 year ago

I believe we can close this. I think we're at an agreement that we don't model this (entirely) in Keptn. The user brings their k6 container (binary inside a container that they have built in CI) and we run it with JES

jainammm commented 1 year ago

yes, we tried multiple things for this