Code Monkey home page Code Monkey logo

await-remote-run's People

Contributors

codex- avatar dependabot[bot] avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

await-remote-run's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update all non-major dependencies (@types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vitest/coverage-v8, esbuild, vitest)
  • chore(deps): update dependency eslint to v9
  • chore(deps): lock file maintenance

Detected dependencies

github-actions
.github/workflows/action.yml
  • actions/checkout v4
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/test.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v4
npm
package.json
  • @actions/core ^1.10.1
  • @actions/github ^6.0.0
  • @types/node ^20.12.7
  • @typescript-eslint/eslint-plugin ^7.8.0
  • @typescript-eslint/parser ^7.8.0
  • @vitest/coverage-v8 ^1.5.3
  • chalk ^5.3.0
  • changelogithub ^0.13.7
  • esbuild ^0.20.2
  • eslint ^8.57.0
  • eslint-config-airbnb-typescript ^18.0.0
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-github ^4.10.2
  • eslint-plugin-import ^2.29.1
  • prettier 3.2.5
  • typescript ^5.4.5
  • vitest ^1.5.3

  • Check this box to trigger a request for Renovate to run again on this repository

Latest release available in GHA is v1.9

Not sure why this is but currently v1 in GHA is version v1.9.0.

❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.8.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
content-disposition: attachment; filename=Codex--await-local-workflow-run-v1.8.0-0-gf936ab4.tar.gz

❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.9.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
content-disposition: attachment; filename=Codex--await-local-workflow-run-v1-0-gda29ec8.tar.gz

❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.10.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
gh: Not Found (HTTP 404)
curl: (6) Could not resolve host: null

❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.11.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
gh: Not Found (HTTP 404)
curl: (6) Could not resolve host: null

❯ gh api -X GET /repos/codex-/await-local-workflow-run/releases/tags/v1.12.0 | jq -r .tarball_url | xargs curl -fsSL -I | grep content-disposition
gh: Not Found (HTTP 404)
curl: (6) Could not resolve host: null

Missing pagination support

Seeing this failure on v1.8.0:

Error: getWorkflowId: An unexpected error has occurred: Failed to get Workflow ID for '<workflow>', available workflows: [<list of 30 workflows>]
Error: Failed: Failed to get Workflow ID for '<workflow>', available workflows: [<list of 30 workflows>]
Warning: Does the token have the correct permissions?
Error: Failed to get Workflow ID for '<workflow>', available workflows: [<list of 30 workflows>]

I believe the issue is probably lack of pagination support as the default results per page is 30.

warning right after creating task

Would it be possible to get rid of the warning that comes, if you start the await right after starting the job?

Warning: Failed to find in_progress Jobs for Workflow Run xxx

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid lockFileMaintenance.schedule: 'Invalid schedule: Failed to parse "every month on the first day of the month"'

Failed to find run

return-dispatch is successfully finding my Run ID using the distinct ID.

However, I'm immediately attempting to run await-remote-run per your documentation using the run_id returned from return-dispatch and it is failing to fund the run based on this ID. I know the ID is correct though, because when I click the outputed URL from return-dispatch it takes me to my other repositories run and it is running as expected. Here are the outputs / log from both return-dispatch and then followed by await-remote-run. Notice the error getWorkflowRunState: An unexpected error has occurred: Not found

image

Run ID Not Returning

Hello! I'm using your helpful guide to return the run_id and am having some issues. Included is a screenshot of the workflow. Any guidance or suggestions is appreciated. Thank you!
failedRunID
(I've covered the run_id returned for privacy reasons but a run id is returned on the remote run

Issue: It looks like the Run ID is being identified but not being returned in the process

Scenario:
On push Repo A is attempting to access and run the tests from Repo B:

action.yml file for Repo A

  pull_request:
  push:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Dispatch and return Run ID
        uses: codex-/[email protected]
        id: return-dispatch
        with:
          token: ${{ secrets.ACCESS_TOKEN }} # Note this is NOT GITHUB_TOKEN but a PAT
          ref: {branch}
          repo: {repo}
          owner: {owner}
          workflow: ci.yml
          workflow_inputs: '{"cake":"delicious"}'
          workflow_timeout_seconds: 100 # Default: 300

      - name: Evaluate that the Run ID output has been set
        run: |
          if [ "${{ steps.return_dispatch.outputs.run_id }}" == "" ]; then
            echo "Failed to return Run ID"
            exit 1
          fi
    
      - name: Output fetched Run ID
        run: echo ${{ steps.return_dispatch.outputs.run_id }}
          
      - name: Await Run ID ${{ steps.return_dispatch.outputs.run_id }}
        uses: Codex-/[email protected]
        with:
          token: ${{ github.token }}
          repo: {repo}
          owner: {owner}
          run_id: ${{ steps.return_dispatch.outputs.run_id }}
          run_timeout_seconds: 300 # Optional
          poll_interval_ms: 5000 # Optional

Repo B: Test file being accessed and return_id being requested:

 workflow_dispatch:
   inputs:
     distinct_id:
       required: true
     cake: # Test for input passthrough.
       required: true
 
 push:
jobs:
 test:
   name: run tests
   runs-on: ubuntu-latest
   env:
     E2E_TESTS_BASE_URL: ${{ secrets.ENV }}
   steps:
     - name: echo distinct ID ${{ github.event.inputs.distinct_id }}
       run: echo ${{ github.event.inputs.distinct_id }}
     - name: echo input passthrough
       run: echo ${{ github.event.inputs.cake }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.