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

Intermittent 'Repository Dose Not Exists !' error whilst trying to sync #9

Open
kevinvella1 opened this issue Mar 9, 2021 · 3 comments
Assignees

Comments

@kevinvella1
Copy link

Describe the bug
Intermittent 'Repository Dose Not Exists !' error whilst trying to sync

To Reproduce
Steps to reproduce the behavior:

  1. Run workflow for multiple repositories

Expected behavior
Workflows should sync across all repositories

Additional context
We have multiple repositories being used for syncing and we are constantly running into the Repository Dose Not Exists ! error. It does not happen all the time but intermittent

@varunsridharan
Copy link
Owner

@kevinvella1 sorry about that. but can you provide more info?

  1. is that a private repository ?
  2. how often dose this occur for you ?
  3. have you tried setting up proper Access Token for it ?

@varunsridharan varunsridharan self-assigned this Apr 19, 2021
@afirth
Copy link
Contributor

afirth commented Jun 1, 2021

This error occurs when the token provided to the action in the input GITHUB_TOKEN does not have access to the downstream repos.

@afirth
Copy link
Contributor

afirth commented Jun 1, 2021

I can reliably reproduce this by calling the action twice.

      - name: Fetching Local Repository
        uses: actions/checkout@master

      - name: Running Workflow Sync - K8s
        # uses: varunsridharan/action-github-workflow-sync@decdb07b953f882d879ffbd4eb82a588842e22b9
        uses: FATMAP/action-github-workflow-sync@cd4f0dbfb282260c1fcad62bd31a6a7c1d00d410
        env:
          REPOSITORIES: |
            FATMAP/search-infra
          WORKFLOW_FILES: |
            github-actions/k8s/.=.github/workflows
        with:
          DRY_RUN: ${{ env.DRY_RUN }}
          REPOSITORIES: ${{ env.REPOSITORIES }}
          WORKFLOW_FILES: ${{ env.WORKFLOW_FILES }}
          GITHUB_TOKEN: ${{ secrets.WORKFLOW_SYNC_PERSONAL_ACCESS_TOKEN }}
          PULL_REQUEST: true
          COMMIT_EACH_FILE: true

      - name: Running Workflow Sync - K8s
        # uses: varunsridharan/action-github-workflow-sync@decdb07b953f882d879ffbd4eb82a588842e22b9
        uses: FATMAP/action-github-workflow-sync@cd4f0dbfb282260c1fcad62bd31a6a7c1d00d410
        env:
          REPOSITORIES: |
            FATMAP/search-infra
          WORKFLOW_FILES: |
            github-actions/k8s/.=.github/workflows
        with:
          DRY_RUN: ${{ env.DRY_RUN }}
          REPOSITORIES: ${{ env.REPOSITORIES }}
          WORKFLOW_FILES: ${{ env.WORKFLOW_FILES }}
          GITHUB_TOKEN: ${{ secrets.WORKFLOW_SYNC_PERSONAL_ACCESS_TOKEN }}
          PULL_REQUEST: true
          COMMIT_EACH_FILE: true
Run FATMAP/action-github-workflow-sync@cd4f0dbfb282260c1fcad62bd31a6a7c1d00d410
-------------------------------------------------------
⚙️ Basic Config
  * AUTO_CREATE_NEW_BRANCH     : false
  * COMMIT_EACH_FILE           : true
  * PULL_REQUEST               : true
  * DRY_RUN                    : true
  * WORKFLOW_FILES_DIR         : workflows
  * WORKSPACE                  : /home/runner/work/workflow-sync/
  * SKIP_CI                    : false
  * COMMIT_MESSAGE             : false
-------------------------------------------------------

📓 FATMAP/search-infra
  ⚙️ Repository Config
  	Slug        : search-infra
  	Owner       : FATMAP
  	Git URL     : ***github.com/FATMAP/search-infra.git
  	Branch      : default
  	Local Path  : /home/runner/work/workflow-sync/FATMAP/search-infra/default/
  	✔  Repository Cloned
  	✔  Pull Request Branch "file-sync-10-master-1622567253" Created From master
  
  🗃 Git Config
  	> Name  : Workflow Sync Bot
  	> Email : [email protected]
  
  github-actions/k8s/.=.github/workflows
  	✔  github-actions/k8s/. => .github/workflows
  ✔  [file-sync-10-master-1622567253 b010d2e] 💬 - Files Synced | Runner ID : 10 | ⚡ Triggered By FATMAP/github-file-sync
   2 files changed, 135 insertions(+)
   create mode 100644 .github/workflows/kustomize-lint.yaml
   create mode 100644 .github/workflows/skaffold-deploy.yaml
   
  Warning: ⚠️ No Changes Are Pushed
  Git Status
  On branch file-sync-10-master-1622567253
  nothing to commit, working tree clean
   

0s
Run FATMAP/action-github-workflow-sync@cd4f0dbfb282260c1fcad62bd31a6a7c1d00d410
  with:
    DRY_RUN: true
    REPOSITORIES: FATMAP/search-infra
  
    WORKFLOW_FILES: github-actions/k8s/.=.github/workflows
  
    GITHUB_TOKEN: ***
    PULL_REQUEST: true
    COMMIT_EACH_FILE: true
    WORKFLOW_FILES_DIR: workflows
    AUTO_CREATE_NEW_BRANCH: false
    SKIP_CI: false
    COMMIT_MESSAGE: false
  env:
    DRY_RUN: true
    REPOSITORIES: FATMAP/search-infra
  
    WORKFLOW_FILES: github-actions/k8s/.=.github/workflows
  
-------------------------------------------------------
⚙️ Basic Config
  * AUTO_CREATE_NEW_BRANCH     : false
  * COMMIT_EACH_FILE           : true
  * PULL_REQUEST               : true
  * DRY_RUN                    : true
  * WORKFLOW_FILES_DIR         : workflows
  * WORKSPACE                  : /home/runner/work/workflow-sync/
  * SKIP_CI                    : false
  * COMMIT_MESSAGE             : false
-------------------------------------------------------

📓 FATMAP/search-infra
  ⚙️ Repository Config
  	Slug        : search-infra
  	Owner       : FATMAP
  	Git URL     : ***github.com/FATMAP/search-infra.git
  	Branch      : default
  	Local Path  : /home/runner/work/workflow-sync/FATMAP/search-infra/default/
  Error: 	🛑️  Repository Dose Not Exists !

Additionally, these errors do not fail the workflow, which they probably should

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants