Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-1083) Bump childprocess to '~> 4.0.0'; Disable @process.leader #1084

Merged
merged 1 commit into from
Jun 11, 2021
Merged

(GH-1083) Bump childprocess to '~> 4.0.0'; Disable @process.leader #1084

merged 1 commit into from
Jun 11, 2021

Conversation

sanfrancrisko
Copy link
Contributor

Prior to this commit, it was observed on Windows Server 2016, 2019
Github Actions instances that invoking the pdk would result in
ACCESS_DENIED errors.

When the ChildProcess.leader parameter is set to true, it will set
the CREATE_BREAKAWAY_FROM_JOB and JOB_OBJECT_LIMIT_BREAKAWAY_OK
flags in the Win32. This is not required in Windows > Server 2008 / 7
and can potentially cause issues when Task Scheduler attempts to
schedule a job that invokes a program with insufficient privileges.

This commit also bumps childprocess to ~> 4.0.0 and hitimes
to 2.0.0 to resolve dependency issues after bumping childprocess

Closes: #1083

@codecov
Copy link

codecov bot commented Jun 9, 2021

Codecov Report

Merging #1084 (690fde9) into main (4f2fbf0) will increase coverage by 0.06%.
The diff coverage is n/a.

❗ Current head 690fde9 differs from pull request most recent head 5d6cbb3. Consider uploading reports for the commit 5d6cbb3 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1084      +/-   ##
==========================================
+ Coverage   91.27%   91.33%   +0.06%     
==========================================
  Files         138      137       -1     
  Lines        5511     5506       -5     
==========================================
- Hits         5030     5029       -1     
+ Misses        481      477       -4     
Impacted Files Coverage Δ
lib/pdk/cli/exec/command.rb 88.80% <ø> (-0.09%) ⬇️
lib/pdk/version.rb

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b03b72...5d6cbb3. Read the comment docs.

@sanfrancrisko
Copy link
Contributor Author

Appears dependency resolution is timing out on Windows systems w/ Ruby 2.5. Cannot reproduce on macOS - will try to do so on an ABS provisioned Windows host

Prior to this commit, it was observed on Windows Server 2016, 2019
Github Actions instances that invoking the pdk would result in
ACCESS_DENIED errors.

When the ChildProcess.leader parameter is set to true, it will set
the `CREATE_BREAKAWAY_FROM_JOB` and `JOB_OBJECT_LIMIT_BREAKAWAY_OK`
flags in the Win32. This is not required in Windows > Server 2008 / 7
and can potentially cause issues when Task Scheduler attempts to
schedule a job that invokes a program with insufficient privileges.

This commit also bumps `childprocess` to `~> 4.0.0` and `hitimes`
to `2.0.0` to resolve dependency issues after bumping `childprocess`.
@sanfrancrisko sanfrancrisko requested a review from a team as a code owner June 11, 2021 14:14
Copy link
Contributor

@jpogran jpogran left a comment

Choose a reason for hiding this comment

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

Approving as it was both manually and automatically tested as detailed #1083

@jpogran jpogran merged commit 986daec into puppetlabs:main Jun 11, 2021
@sanfrancrisko sanfrancrisko deleted the GH-1083/main/child_process_win branch June 11, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when spinning up a child process from inside of ruby
2 participants