Skip to content
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

Fix/namespace #2891

Merged
merged 21 commits into from
Jul 18, 2024
Merged
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
id: filter_go
with:
github_token: ${{ secrets.WORKFLOW_PAT || secrets.GITHUB_TOKEN }}
fetch-tags: 'false'
timeout: '10m'

- name: Check For Solidity Changes
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/goreleaser-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
fetch-tags: 'false'

- uses: docker://ghcr.io/synapsecns/sanguine/git-changes-action:latest
id: filter_go
Expand All @@ -111,7 +111,7 @@ jobs:

# TODO: we may want to dry run this on prs
run-goreleaser:
runs-on: ubuntu-latest
runs-on: namespace-profile-fast-goreleaser
needs: [build-goreleaser,changes]
if: ${{ needs.changes.outputs.package_count > 0 }}
permissions:
Expand All @@ -129,13 +129,18 @@ jobs:
image: ${{ needs.build-goreleaser.outputs.goreleaser-image }}
volumes: [ /repo ]
steps:
- name: Git Checkout
- name: Git Checkout (gh)
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
# submodules: 'recursive'

- name: Git submodules (namespace)
if: contains(runner.name, 'nsc')
run: nsc git-checkout update-submodules --mirror_base_path=${NSC_GIT_MIRROR} --repository_path=${GITHUB_WORKSPACE} --recurse

- name: Set up cache
if: ${{ !contains(runner.name, 'nsc') }}
uses: actions/cache@v4
with:
path: |
Expand All @@ -145,6 +150,12 @@ jobs:
restore-keys: |
${{ runner.os }}-go-${{matrix.package}}

- name: Setup Go cache
uses: namespacelabs/nscloud-cache-action@v1
if: contains(env.RUNNER_LABEL, 'nsc')
with:
cache: go

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
Expand Down
1 change: 1 addition & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Core contains common libraries used across the synapse Go repositories.
## Directory Structure



<pre>
root
├── <a href="./bytemap">bytemap</a>: Implements a map using `[]rune` or `[]byte` instead of `string`
Expand Down
4 changes: 4 additions & 0 deletions docker/goreleaser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ RUN apt-get update && apt-get install -y nodejs
RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin

RUN rm -rf /var/lib/apt/lists/* /var/log/apt/* /tmp/* /var/tmp/*

RUN curl -fsSL https://get.namespace.so/cloud/install.sh | NS_ROOT=/usr/local/bin sh
ENV NS_ROOT=/usr/local/bin
ENV PATH=${PATH}:/usr/local/bin
1 change: 0 additions & 1 deletion services/rfq/guard/service/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (g *Guard) handleBridgeRequestedLog(parentCtx context.Context, req *fastbri
defer func() {
metrics.EndSpanWithErr(span, err)
}()

originClient, err := g.client.GetChainClient(ctx, chainID)
if err != nil {
return fmt.Errorf("could not get correct omnirpc client: %w", err)
Expand Down
Loading