Giter Club home page Giter Club logo

Comments (6)

ryanccn avatar ryanccn commented on July 23, 2024

I think this might be because too many store paths are being passed to the attic push command and it exceeds the system limit

await exec("attic", ["push", cache, ...addedPaths]);

from attic-action.

ryanccn avatar ryanccn commented on July 23, 2024

@gallexme I made a fix in e78c87f, see if it works now

from attic-action.

gallexme avatar gallexme commented on July 23, 2024
name: "Test"
on:
  pull_request:
  push:
jobs:
  tests:
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v3  
    - name: Setup Attic cache
      uses: ryanccn/[email protected]
      with:
        endpoint: ${{ secrets.ATTIC_ENDPOINT }}
        cache: ${{ secrets.ATTIC_CACHE }}
        token: ${{ secrets.ATTIC_TOKEN }}
    - run: nix flake update
    - run: nix flake check --impure
Post job cleanup.
Error: An error occurred trying to start process '/nix/store/xasbpkm59l734mh5djibqga8d91q6n-github-runner-2.307.1/lib/externals/node16/bin/node' with working directory '/run/github-runner/machineid/repo/repo'. Argument list too long
##[debug]System.ComponentModel.Win32Exception (7): An error occurred trying to start process '/nix/store/xasbpkm59l734mh5d40jibqga8d91q6n-github-runner-2.307.1/lib/externals/node16/bin/node' with working directory '/run/github-runner/machineid/repo/repo'. Argument list too long
##[debug]   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
##[debug]   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
##[debug]   at System.Diagnostics.Process.Start()
##[debug]   at GitHub.Runner.Sdk.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Channel`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken) in /build/src/src/Runner.Sdk/ProcessInvoker.cs:line 298
##[debug]   at GitHub.Runner.Common.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Channel`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken) in /build/src/src/Runner.Common/ProcessInvoker.cs:line 296
##[debug]   at GitHub.Runner.Worker.Handlers.DefaultStepHost.ExecuteAsync(IExecutionContext context, String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, String standardInInput, CancellationToken cancellationToken) in /build/src/src/Runner.Worker/Handlers/StepHost.cs:line 89
##[debug]   at GitHub.Runner.Worker.Handlers.NodeScriptActionHandler.RunAsync(ActionRunStage stage) in /build/src/src/Runner.Worker/Handlers/NodeScriptActionHandler.cs:line 192
##[debug]   at GitHub.Runner.Worker.ActionRunner.RunAsync() in /build/src/src/Runner.Worker/ActionRunner.cs:line 278
##[debug]   at GitHub.Runner.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) in /build/src/src/Runner.Worker/StepsRunner.cs:line 290
##[debug]Finishing: Post Setup Attic cache

unsure if the update was pickedup by github runner

from attic-action.

gallexme avatar gallexme commented on July 23, 2024

jfi in the log it doesnt say
pushing to cache
so maybe it fails already at const cache = core.getInput("cache"); one moment will send whole log

from attic-action.

gallexme avatar gallexme commented on July 23, 2024

9_Post Setup Attic cache.txt
3_Setup Attic cache.txt

from attic-action.

gallexme avatar gallexme commented on July 23, 2024

cachix seems to write em to a file instead, maybe they faced a similar issue https://github.com/cachix/cachix-action/blob/master/src/main.ts#L60C97-L60C97

from attic-action.

Related Issues (4)

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.