-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ENG-718/rework_fees_again
- Loading branch information
Showing
165 changed files
with
6,450 additions
and
2,630 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Each component that is being frozen should have a section in this file. | ||
# The `changed` section should pull all the files that are changed | ||
# in order to put an error on the given file if it is changed. | ||
|
||
# Please provide a reasoning for each component that is frozen. | ||
|
||
# Frozen for audit. | ||
conductor: &conductor | ||
- crates/astria-conductor/src/** | ||
# Frozen for audit. | ||
sequencer-relayer: &sequencer-relayer | ||
- crates/astria-sequencer-relayer/src/** | ||
|
||
# if new components are added above update the list below to get better | ||
# gh pr level visibility into which files are frozen. | ||
changed: | ||
- *conductor | ||
- *sequencer-relayer |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Code Freeze | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
branches: | ||
- main | ||
|
||
jobs: | ||
code_freeze: | ||
name: Code Freeze | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Filter Check | ||
id: filters | ||
uses: dorny/paths-filter@v3 | ||
with: | ||
list-files: shell | ||
filters: .github/code-freeze-filter.yaml | ||
- name: Output Failure | ||
if: steps.filters.outputs.changes != '' && !contains(github.event.pull_request.labels.*.name, 'override-freeze') | ||
run: | | ||
TITLE="Code Freeze in Effect" | ||
LEGIBLE_CHANGES=$(echo "${{ steps.filters.outputs.changes }}" | sed 's/,changed//g' | sed 's/,/, /g' | sed 's/[][]//g') | ||
echo "### ${TITLE}" >> $GITHUB_STEP_SUMMARY | ||
echo "This PR updates the following components which are code frozen: ${LEGIBLE_CHANGES}" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "The following files are modified and frozen:" >> $GITHUB_STEP_SUMMARY | ||
IFS="," read -ra FILE_LIST <<< "${{ steps.filters.outputs.changed_files }}" | ||
FILE_MESSAGE="This file is under code freeze." | ||
for FILE in "${FILE_LIST[@]}"; do | ||
echo " - ${FILE}" >> $GITHUB_STEP_SUMMARY | ||
echo "::error file=$FILE,title=$TITLE::$FILE_MESSAGE" | ||
done | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "Freeze can be overriden by adding the 'override-freeze' label to the PR." >> $GITHUB_STEP_SUMMARY | ||
exit 1 | ||
- name: Output Bypass | ||
if: steps.filters.outputs.changes != '' && !contains(github.event.pull_request.labels.*.name, 'override-freeze') | ||
run: | | ||
TITLE="Code Freeze in Effect - Bypassed" | ||
LEGIBLE_CHANGES=$(echo "${{ steps.filters.outputs.changes }}" | sed 's/,changed//g' | sed 's/,/, /g' | sed 's/[][]//g') | ||
echo "### ${TITLE}" >> $GITHUB_STEP_SUMMARY | ||
echo "This PR updates the following components which are code frozen: ${LEGIBLE_CHANGES}" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "The following files are modified and frozen:" >> $GITHUB_STEP_SUMMARY | ||
IFS="," read -ra FILE_LIST <<< "${{ steps.filters.outputs.changed_files }}" | ||
FILE_MESSAGE="This file is under code freeze." | ||
for FILE in "${FILE_LIST[@]}"; do | ||
echo " - ${FILE}" >> $GITHUB_STEP_SUMMARY | ||
echo "::warning file=$FILE,title=$TITLE::$FILE_MESSAGE" | ||
done | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "Freeze has been overriden by adding the 'override-freeze' label to the PR." >> $GITHUB_STEP_SUMMARY | ||
exit 0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.alerting.enabled -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: {{ include "sequencer-relayer.name" . }} | ||
{{- if .Values.alerting.prometheusRule.namespace }} | ||
namespace: {{ .Values.alerting.prometheusRule.namespace | quote }} | ||
{{- end }} | ||
labels: | ||
{{- include "sequencer-relayer.labels" . | nindent 4 }} | ||
{{- if .Values.alerting.prometheusRule.additionalLabels }} | ||
{{- toYaml .Values.alerting.prometheusRule.additionalLabels | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.alerting.prometheusRule.rules }} | ||
groups: | ||
- name: {{ template "sequencer-relayer.name" . }} | ||
rules: {{- toYaml .Values.alerting.prometheusRule.rules | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: sequencer-relayer | ||
repository: file://../sequencer-relayer | ||
version: 0.12.1 | ||
digest: sha256:470368e9d1cbb0456ba3a198c42f708591454cc6638c9a0d9918828d898627b0 | ||
generated: "2024-09-10T11:55:38.765161-07:00" | ||
version: 0.12.2 | ||
digest: sha256:3ee234bbedc042030976130a12c0fe364ff171a40d341fec820c49720fef9378 | ||
generated: "2024-09-30T11:40:37.590749-04:00" |
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.