Skip to content

[FEA] Update nightly container builder to test with non-root user #238

@rgsl888prabhu

Description

@rgsl888prabhu

Currently the nightly container test suite need to start running a root since github actions needs to create temporary files, but it can't do so as root and fails as follows.

Run actions/checkout@v4
  with:
    path: /home/cuopt
    fetch-depth: 0
    repository: NVIDIA/cuopt
    token: ***
    ssh-strict: true
    ssh-user: git
    persist-credentials: true
    clean: true
    sparse-checkout-cone-mode: true
    fetch-tags: false
    show-progress: true
    lfs: false
    submodules: false
    set-safe-directory: true
/usr/bin/docker exec  dc9a9c3a1db6b43c98438e87dff1ebecf6bddfad56e555bbed6126d9b6ffffde sh -c "cat /etc/*release | grep ^ID"
node:fs:2368
    return binding.writeFileUtf8(
                   ^

Error: EACCES: permission denied, open '/__w/_temp/_runner_file_commands/save_state_07b0cf61-e80b-423b-9332-6b55193bcd47'
    at Object.writeFileSync (node:fs:2368:20)
    at Object.appendFileSync (node:fs:2449:6)
    at Object.issueFileCommand (/__w/_actions/actions/checkout/v4/dist/index.js:3060:8)
    at Object.saveState (/__w/_actions/actions/checkout/v4/dist/index.js:2977:31)
    at 4866 (/__w/_actions/actions/checkout/v4/dist/index.js:2402:10)
    at __nccwpck_require__ (/__w/_actions/actions/checkout/v4/dist/index.js:38194:43)
    at 2565 (/__w/_actions/actions/checkout/v4/dist/index.js:150:34)
    at __nccwpck_require__ (/__w/_actions/actions/checkout/v4/dist/index.js:38194:43)
    at 9210 (/__w/_actions/actions/checkout/v4/dist/index.js:1171:36)
    at __nccwpck_require__ (/__w/_actions/actions/checkout/v4/dist/index.js:38194:43) {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/__w/_temp/_runner_file_commands/save_state_07b0cf61-e80b-423b-9332-6b55193bcd47'

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions