Skip to content

Commit

Permalink
Update Agent image to support node and update OpenAPI specs (#3924)
Browse files Browse the repository at this point in the history
* wip

* wip

* updating controller with missing methods

* update frontend to consider openapi changes
  • Loading branch information
danielbdias authored Jul 8, 2024
1 parent 70382de commit 397b26b
Show file tree
Hide file tree
Showing 58 changed files with 3,807 additions and 270 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.23.0
version: v2.0.1
args: release --clean --split --nightly
env:
GOOS: ${{ matrix.GOOS }}
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.23.0
version: v2.0.1
args: continue --merge
env:
VERSION: sha-${{ env.sha_short }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
version: v1.23.0
version: v2.0.1
args: release --skip=announce --snapshot -f .goreleaser.dev.yaml

- name: Move binaries to known location
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.23.0
version: v2.0.1
args: release --clean -f .goreleaser.rc.yaml
env:
VERSION: ${{ github.ref_name}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.23.0
version: v2.0.1
args: release --clean
env:
VERSION: ${{ github.ref_name}}
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.agent
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ ENV TRACETEST_API_KEY ""

WORKDIR /app

# Setup Tracetest CLI
COPY ./tracetest /app/tracetest
COPY ./agent/entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh

# Setup additional runtimes used by triggers
RUN apk add nodejs npm

ENTRYPOINT ["/app/entrypoint.sh"]

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export VERSION?=dev
export TRACETEST_DEFAULT_CLOUD_ENDPOINT=https://app.tracetest.io
TAG?=$(VERSION)
GORELEASER_VERSION=1.23.0-pro
GORELEASER_VERSION=2.0.1-pro

PROJECT_ROOT=${PWD}

Expand Down
36 changes: 36 additions & 0 deletions api/users.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
openapi: 3.0.1

components:
requestBodies:
AfterLogin:
description: After login request
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/AfterLogin"
schemas:
AfterLogin:
type: object
properties:
userId:
type: string
email:
type: string
name:
type: string
User:
required:
- id
- name
- emails
type: object
properties:
id:
type: string
name:
type: string
emails:
type: array
items:
type: string
92 changes: 92 additions & 0 deletions server/http/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,3 +879,95 @@ func (c *controller) GetRunGroups(_ context.Context, _ int32, _ int32, _ string,
func (c *controller) GetRunsFromRunGroup(context.Context, int32, int32, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) CreateEnvironment(context.Context, openapi.EnvironmentResource) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) CreateInvite(context.Context, openapi.InviteResource) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) CreateToken(context.Context, openapi.Token) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) DeleteEnvironment(context.Context, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) DeleteInvite(context.Context, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) DeleteToken(context.Context, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) DeleteMonitorRun(context.Context, string, int32) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) GetEnvironment(context.Context, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) GetInvite(context.Context, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) GetMonitorRun(context.Context, string, int32) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) GetMonitorRuns(context.Context, string, int32, int32) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) GetMonitorVersion(context.Context, string, int32) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) ListEnvironments(context.Context, int32, int32, string, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) ListInvites(context.Context, int32, int32, string, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) ListTokens(context.Context, int32, int32, string, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) RunMonitor(context.Context, string, openapi.RunMonitorInformation) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) TestAlert(context.Context, openapi.Alert) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) UpdateEnvironment(context.Context, string, openapi.EnvironmentResource) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) UpdateInvite(context.Context, string, openapi.InviteResource) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) UpdateToken(context.Context, string) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) UpsertEnvironment(context.Context, openapi.EnvironmentResource) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) UpsertInvite(context.Context, openapi.InviteResource) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}

func (c *controller) UpsertToken(context.Context, openapi.Token) (openapi.ImplResponse, error) {
return openapi.Response(http.StatusPaymentRequired, nil), nil
}
Loading

0 comments on commit 397b26b

Please sign in to comment.