- 
                Notifications
    
You must be signed in to change notification settings  - Fork 21
 
deployment: Set OCR3 config #1233
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
          
     Merged
      
      
    
  
     Merged
                    Changes from 5 commits
      Commits
    
    
            Show all changes
          
          
            10 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      c48eaf2
              
                Bump chainlink-common to include ocr3.PluginType
              
              
                archseer 972028c
              
                Initial import
              
              
                archseer e176300
              
                Draft
              
              
                archseer 3691564
              
                Remove old comment
              
              
                archseer cab4cd8
              
                merge main (#1327)
              
              
                tt-cll 025992c
              
                Merge remote-tracking branch 'origin/main' into cld-set-ocr3-config
              
              
                tt-cll 72779aa
              
                go mod
              
              
                tt-cll 5eeaf04
              
                remove files
              
              
                tt-cll 00216f1
              
                add setocr
              
              
                tt-cll 9617866
              
                tests
              
              
                tt-cll File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
          The table of contents is too big for display.
        
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| name: IDL Compatibility Check | ||
| 
     | 
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "chains/solana/contracts/target/idl/base_token_pool.json" | ||
| - "chains/solana/contracts/target/idl/burnmint_token_pool.json" | ||
| - "chains/solana/contracts/target/idl/lockrelease_token_pool.json" | ||
| - "chains/solana/contracts/target/idl/ccip_common.json" | ||
| - "chains/solana/contracts/target/idl/ccip_offramp.json" | ||
| - "chains/solana/contracts/target/idl/ccip_router.json" | ||
| - "chains/solana/contracts/target/idl/cctp_token_pool.json" | ||
| - "chains/solana/contracts/target/idl/fee_quoter.json" | ||
| - "chains/solana/contracts/target/idl/rmn_remote.json" | ||
| types: [opened, synchronize, reopened, labeled, unlabeled] | ||
| 
     | 
||
| jobs: | ||
| check-idl-changes: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| contents: read | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| 
     | 
||
| - name: Check for bypass label | ||
| id: check-bypass | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| const { data: labels } = await github.rest.issues.listLabelsOnIssue({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number | ||
| }); | ||
| 
     | 
||
| if (labels.some(label => label.name === 'idl-check-confirmed')) { | ||
| console.log('IDL check bypass label found'); | ||
| return true; | ||
| } | ||
| 
     | 
||
| return false; | ||
| 
     | 
||
| - name: List changed IDL files | ||
| id: changed-files | ||
| run: | | ||
| # Only check specific files to reduce noise | ||
| CHANGED_FILES=$(git diff --name-only origin/${{ github.base_ref }} HEAD -- \ | ||
| chains/solana/contracts/target/idl/base_token_pool.json \ | ||
| chains/solana/contracts/target/idl/ccip_common.json \ | ||
| chains/solana/contracts/target/idl/ccip_offramp.json \ | ||
| chains/solana/contracts/target/idl/ccip_router.json \ | ||
| chains/solana/contracts/target/idl/cctp_token_pool.json \ | ||
| chains/solana/contracts/target/idl/fee_quoter.json \ | ||
| chains/solana/contracts/target/idl/rmn_remote.json | tr '\n' ' ') | ||
| echo "files=$CHANGED_FILES" >> $GITHUB_OUTPUT | ||
| echo "Changed files:" | ||
| echo "$CHANGED_FILES" | ||
| 
     | 
||
| - name: Comment on PR | ||
| if: steps.check-bypass.outputs.result != 'true' | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| script: | | ||
| const changedFiles = `${{ steps.changed-files.outputs.files }}`.trim().split(' ').filter(Boolean); | ||
| 
     | 
||
| if (changedFiles.length === 0) { | ||
| console.log('No monitored IDL files changed'); | ||
| return; | ||
| } | ||
| 
     | 
||
| const filesList = changedFiles.map(file => `- \`${file}\``).join('\n'); | ||
| const commentBody = [ | ||
| '## ⚠️ IDL Compatibility Check Required ⚠️', | ||
| '', | ||
| '### Changes detected in IDL files:', | ||
| filesList, | ||
| '', | ||
| '⚠️ **IMPORTANT**: Please verify that these changes maintain compatibility with our observability pipeline!', | ||
| '', | ||
| '#### To bypass this check:', | ||
| '- Add the `idl-check-confirmed` label to this PR' | ||
| ].join('\n'); | ||
| 
     | 
||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| body: commentBody | ||
| }); | ||
| 
     | 
||
| - name: Fail if no bypass | ||
| if: steps.check-bypass.outputs.result != 'true' && steps.changed-files.outputs.files != '' | ||
| run: | | ||
| echo "::error::IDL changes detected - Please confirm compatibility with observability pipeline" | ||
| exit 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
    
  
  
    
              
              
  
    
      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,104 @@ | ||
| name: "Test Deployments" | ||
| permissions: | ||
| contents: read | ||
| 
     | 
||
| on: | ||
| pull_request: | ||
| merge_group: | ||
| push: | ||
| branches: | ||
| - 'main' | ||
| 
     | 
||
| jobs: | ||
| detect_deployments_changes: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| run_solana_deployment: ${{ steps.filter.outputs.run_solana_deployment }} | ||
| run_evm_deployment: ${{ steps.filter.outputs.run_evm_deployment }} | ||
| run_deployment: ${{ steps.filter.outputs.run_deployment }} | ||
| run_crosschain_deployment: ${{ steps.filter.outputs.run_crosschain_deployment }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Detect changes | ||
| uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
| id: filter | ||
| with: | ||
| list-files: "shell" | ||
| filters: | | ||
| run_deployment: | ||
| - 'deployment/**' | ||
| run_evm_deployment: | ||
| - 'chains/evm/gobindings/generated/**' | ||
| - 'chains/evm/deployment/**' | ||
| run_solana_deployment: | ||
| - 'chains/solana/gobindings/generated/**' | ||
| - 'chains/solana/deployment/**' | ||
| run_crosschain_deployment: | ||
| - 'integration-tests/deployment/**' | ||
| 
     | 
||
| setup-go: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Determine Go version | ||
| id: go_version | ||
| run: echo "GO_VERSION=$(cat go.mod |grep "^go"|cut -d' ' -f 2)" >> $GITHUB_ENV | ||
| - name: Setup Go ${{ env.GO_VERSION }} | ||
| uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
| with: | ||
| go-version: ${{ env.GO_VERSION }} | ||
| - name: Display Go version | ||
| run: go version | ||
| 
     | 
||
| test-evm-deployments: | ||
| needs: [detect_deployments_changes, setup-go] | ||
| if: ${{ needs.detect_deployments_changes.outputs.run_evm_deployment == 'true' }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: chains/evm/deployment | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run tests | ||
| run: go test ./... | ||
| 
     | 
||
| test-solana-deployments: | ||
| needs: [detect_deployments_changes, setup-go] | ||
| if: ${{ needs.detect_deployments_changes.outputs.run_solana_deployment == 'true' }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: chains/solana/deployment | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run tests | ||
| run: go test ./... | ||
| 
     | 
||
| test-deployments: | ||
| needs: [detect_deployments_changes, setup-go] | ||
| if: ${{ needs.detect_deployments_changes.outputs.run_deployment == 'true' }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: deployment | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run tests | ||
| run: go test ./... | ||
| 
     | 
||
| test-deployments-crosschain: | ||
| needs: [detect_deployments_changes, setup-go] | ||
| if: |- | ||
| ${{ | ||
| needs.detect_deployments_changes.outputs.run_crosschain_deployment == 'true' || | ||
| needs.detect_deployments_changes.outputs.run_evm_deployment == 'true' || | ||
| needs.detect_deployments_changes.outputs.run_solana_deployment == 'true' | ||
| }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: integration-tests/deployment | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Run tests | ||
| run: go test ./... | 
This file was deleted.
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| nodejs 20.13.1 | ||
| nodejs 20.17.0 | ||
| pnpm 10.6.5 | 
  
    
      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
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      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.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.