GithubHelp home page GithubHelp logo

Comments (2)

lsf37 avatar lsf37 commented on June 19, 2024 1

Test with only refers to repositories that are mentioned in the manifest the test is running on (e.g. camkes-vm-examples-manifest). Saying Test with: org/ci-actions#n doesn't make sense in that context.

We could try to make ci-actions a special case, but that also doesn't make any sense, because at the time the action runs it is much too late -- it is already running the old version of the action (the action reads the PR text). It'd have to somehow reset and restart itself in a different version which is not supported by any of the underlying GitHub infrastructure (and probably shouldn't be for security). It'd also need to be able to automatically build and deploy test docker containers etc.

Testing action code works differently and depends on what kind of action it is. If it is a docker action you need to build and deploy that container manually somewhere and modify the workflow file in the repo you are testing to point to that new container. You'll usually want to change the test trigger to push: <testing-branch> where <testing-branch> is the PR branch in your repo that you want to test the action with. After all this, when you push to the branch it should be executing the new action code.

This is not anything to do with the action setup in ci-actions, it's just how GitHub actions work. I don't think there is anything to implement or fix here, even if it is annoying to do.

What I could try to do is write up a small doc that has instructions on how to do this, because it is absolutely true that this all a bit complex.

from ci-actions.

axel-h avatar axel-h commented on June 19, 2024

Sam issue if it's a PR in the seL4 organization, see https://github.com/Hensoldt-Cyber/camkes-vm-examples/actions/runs/4617763392/jobs/8164399372?pr=5

Setting up
  Starting repo checkout on branch master with manifest master.xml:
  repo has been initialized in /github/workspace
  repo sync has finished successfully.
  Fetching 0f9fd9cce918a25f8f0e0227fea4f1585ec04fe9 from github.com/Hensoldt-Cyber/camkes-vm-examples.git
  extra PRs: seL4/ci-actions#268
  unknown
  Fetching refs/pull/268/head from github.com/seL4/ci-actions.git
  fatal: not a git repository (or any parent up to mount point /github)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  fatal: not a git repository (or any parent up to mount point /github)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
...

from ci-actions.

Related Issues (20)

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.