Skip to content

Conversation

@cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Mar 11, 2021

  • make add-itest-user scripts more verbose
  • use sudo -E to preserve env vars

Github Actions has this in their Default: env_reset in their sudoers config file. This means that HOME and other vars are set to match the sudo target user. Using sudo -E preserves the environment allowing ~ to resolve correctly.

I'm not sure why we didn't hit this earlier. Maybe Github changed their sudoers config? In any case, this should fix it.

@pull-request-size pull-request-size bot added the size/XS PR that changes 0-9 lines. Quick fix/merge. label Mar 11, 2021
@pull-request-size pull-request-size bot added size/S PR that changes 10-29 lines. Very easy to review. and removed size/XS PR that changes 0-9 lines. Quick fix/merge. labels Mar 11, 2021
@cognifloyd cognifloyd changed the title Debug GHA failures Use sudo -E to preserve env vars in CI Mar 11, 2021
@cognifloyd cognifloyd added this to the 3.5.0 milestone Mar 11, 2021
Copy link
Contributor

@m4dcoder m4dcoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@m4dcoder m4dcoder merged commit 8144ee4 into StackStorm:master Mar 11, 2021
@cognifloyd cognifloyd deleted the gha-debug branch February 12, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure: ci/cd size/S PR that changes 10-29 lines. Very easy to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants