-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Remove generate-schema command and JSON schema (#3974)
As it was not used in an automated context, we're removing the generated JSON schema for the event protocol. This resolves inconsistencies in the documentation of our event protocol and also improves our compile times through fewer derives. We will subsequently improve the documentation of Relays types and work on a replacement mechanism to publish docs for these types. In the meanwhile, documentation can be viewed here: https://getsentry.github.io/relay/relay_event_schema/protocol/index.html
- Loading branch information
Showing
62 changed files
with
5 additions
and
5,256 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -48,56 +48,6 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: target/doc | ||
|
||
event_schema: | ||
name: Event Schema | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Rust Toolchain | ||
run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
||
- uses: swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ github.job }} | ||
|
||
- name: Generate Schema | ||
run: cargo run -p generate-schema -- -o event.schema.json | ||
|
||
- name: Deploy | ||
if: github.ref == 'refs/heads/master' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DATA_SCHEMAS_GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.name "$(git log -1 --pretty=format:%an $GITHUB_SHA)" | ||
git config --global user.email "$(git log -1 --pretty=format:%ae $GITHUB_SHA)" | ||
git clone https://getsentry-bot:[email protected]/getsentry/sentry-data-schemas | ||
cd sentry-data-schemas/ | ||
mkdir -p ./relay/ | ||
mv ../event.schema.json relay/event.schema.json | ||
git add relay/event.schema.json | ||
echo "attempting commit" | ||
if ! git commit -m "getsentry/relay@$GITHUB_SHA" ; then | ||
echo "Stopping, no changes" | ||
exit 0 | ||
fi | ||
for i in 1 2 3 4 5; do | ||
echo "git push; Attempt $i" | ||
if git push; then | ||
exit 0 | ||
fi | ||
git pull --rebase | ||
done | ||
echo "Failed to push" | ||
exit 1 | ||
metrics_docs: | ||
name: Metrics Docs | ||
runs-on: ubuntu-latest | ||
|
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.