-
Notifications
You must be signed in to change notification settings - Fork 7
[feat] Add synthetics plugin #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
yoannmoinet
wants to merge
19
commits into
master
Choose a base branch
from
yoann/s8s-dev-server
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ea051ef
Add s8s plugin
yoannmoinet 92843b8
Update/add utility types
yoannmoinet cad4d4a
Actually run the server and update configurations
yoannmoinet 0ab5804
Add tests
yoannmoinet 9986a72
Finalize feature and testing
yoannmoinet d0b4490
Add missing OSS header
yoannmoinet 7914418
Use local relative imports
yoannmoinet 9267855
Remove unused env var
yoannmoinet 627e847
Update doc
yoannmoinet 6ff010c
Simplify setup
yoannmoinet f5d2cb2
Update TOC
yoannmoinet 0c38e12
Update codeowners
yoannmoinet ed64d1c
Do not run multiple servers
yoannmoinet 9430eb9
Do not make the server fail the build
yoannmoinet fc29fed
Add comment
yoannmoinet 0cc8f29
Missing new line
yoannmoinet 0c1e987
Update tests to better catch multiple server runs
yoannmoinet 31c989e
Merge branch 'master' into yoann/s8s-dev-server
yoannmoinet 2706a91
wip
yoannmoinet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yoannmoinet marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Synthetics Plugin <!-- #omit in toc --> | ||
|
||
Interact with Synthetics at build time. | ||
|
||
<!-- The title and the following line will both be added to the root README.md --> | ||
|
||
## Table of content <!-- #omit in toc --> | ||
|
||
<!-- This is auto generated with yarn cli integrity --> | ||
|
||
<!-- #toc --> | ||
- [Configuration](#configuration) | ||
<!-- #toc --> | ||
|
||
## Configuration | ||
|
||
```ts | ||
synthetics?: { | ||
disabled?: boolean; | ||
} | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "@dd/synthetics-plugin", | ||
"packageManager": "yarn@4.0.2", | ||
"license": "MIT", | ||
"private": true, | ||
"author": "Datadog", | ||
"description": "Interact with Synthetics at build time.", | ||
"homepage": "https://github.com/DataDog/build-plugins/tree/main/packages/plugins/synthetics#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DataDog/build-plugins", | ||
"directory": "packages/plugins/synthetics" | ||
}, | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./*": "./src/*.ts" | ||
}, | ||
"scripts": { | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@dd/core": "workspace:*", | ||
"@dd/error-tracking-plugin": "workspace:*", | ||
"chalk": "2.3.1" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed under the MIT License. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2019-Present Datadog, Inc. | ||
|
||
import type { PluginName } from '@dd/core/types'; | ||
|
||
export const CONFIG_KEY = 'synthetics' as const; | ||
export const PLUGIN_NAME: PluginName = 'datadog-synthetics-plugin' as const; | ||
|
||
export const API_PREFIX = '_datadog-ci_' as const; | ||
export const DEFAULT_PORT = 1234 as const; | ||
yoannmoinet marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to invite etienne I think:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
I'll wait for his review, see if I should instead maybe use a team (cc @etnbrd)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should definitely use the @DataDog/synthetics-ct team, indeed.