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

refactor: fix add-path / GITHUB_PATH commands #1472

Merged
merged 13 commits into from
Dec 9, 2022
Merged

Conversation

ChristopherHX
Copy link
Contributor

@ChristopherHX ChristopherHX commented Nov 27, 2022

The existing code applies prepend path for all actions, while it shouldn't do it for docker actions.
Additionally GITHUB_PATH shouldn't update the env directly, instead add to extrapath

Seems like the old ::add-path:: never worked correctly, because the first add-path always wins e.g.

  • add node12 as node
  • use node ver 12
  • add node16
  • still in version 12, node16 added to a later path component after node12

Duplicated path are now eliminated.

Resolves #1384

Still to complex for get it ready.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2022

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 12 0 0.04s
✅ REPOSITORY gitleaks yes no 2.44s
✅ REPOSITORY git_diff yes no 0.0s
✅ REPOSITORY secretlint yes no 0.94s

See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@pull-request-size pull-request-size bot added size/L and removed size/M labels Nov 27, 2022
@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Merging #1472 (03b61e9) into master (4f8da0a) will increase coverage by 3.76%.
The diff coverage is 67.67%.

@@            Coverage Diff             @@
##           master    #1472      +/-   ##
==========================================
+ Coverage   57.50%   61.27%   +3.76%     
==========================================
  Files          32       45      +13     
  Lines        4594     6990    +2396     
==========================================
+ Hits         2642     4283    +1641     
- Misses       1729     2403     +674     
- Partials      223      304      +81     
Impacted Files Coverage Δ
pkg/common/file.go 0.00% <0.00%> (ø)
pkg/container/docker_logger.go 52.08% <ø> (ø)
pkg/container/host_environment.go 0.00% <0.00%> (ø)
pkg/container/parse_env_file.go 0.00% <0.00%> (ø)
pkg/container/util.go 0.00% <0.00%> (ø)
pkg/model/action.go 0.00% <0.00%> (ø)
pkg/model/step_result.go 0.00% <ø> (ø)
pkg/container/docker_run.go 13.58% <11.48%> (+8.04%) ⬆️
...ontainer/linux_container_environment_extensions.go 24.32% <24.32%> (ø)
pkg/model/workflow.go 46.43% <25.25%> (-4.48%) ⬇️
... and 38 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ChristopherHX ChristopherHX marked this pull request as ready for review November 28, 2022 16:22
@ChristopherHX ChristopherHX requested a review from a team as a code owner November 28, 2022 16:22
@ChristopherHX
Copy link
Contributor Author

I finally got the tests all green.

I modified tests, read carefully.

@ChristopherHX ChristopherHX changed the title fix: add-path / GITHUB_PATH commands refactor: fix add-path / GITHUB_PATH commands Dec 6, 2022
Copy link
Member

@catthehacker catthehacker left a comment

Choose a reason for hiding this comment

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

Looks good

@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

@mergify mergify bot added needs-work Extra attention is needed and removed needs-work Extra attention is needed labels Dec 6, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

@mergify mergify bot added needs-work Extra attention is needed and removed needs-work Extra attention is needed labels Dec 6, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

@mergify mergify bot added the needs-work Extra attention is needed label Dec 6, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

2 similar comments
@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

@ChristopherHX
Copy link
Contributor Author

...I am doing something wrong..., ...now the increased 15min timeout isn't sufficient after merging my other PRs...

@mergify
Copy link
Contributor

mergify bot commented Dec 6, 2022

@ChristopherHX this pull request has failed checks 🛠

1 similar comment
@mergify
Copy link
Contributor

mergify bot commented Dec 7, 2022

@ChristopherHX this pull request has failed checks 🛠

@ChristopherHX
Copy link
Contributor Author

ChristopherHX commented Dec 7, 2022

I will need to debug this test execution regression, github actions also fails with 30min timeout.

Converting to draft

Thank you @catthehacker, @KnisterPeter for reviewing my PR wave.

@ChristopherHX ChristopherHX marked this pull request as draft December 7, 2022 09:02
@KnisterPeter
Copy link
Member

I will need to debug this test execution regression, github actions also fails with 30min timeout.

I think we have this issue in master already. So it might be something we merged recently.

@ChristopherHX
Copy link
Contributor Author

Yes you are right, it is on master as a flaky test.

It's freezes in TestMaskValues while waiting for the output. Removing the test make the ci pass.

@ChristopherHX ChristopherHX marked this pull request as ready for review December 9, 2022 11:15
@mergify mergify bot removed the needs-work Extra attention is needed label Dec 9, 2022
@mergify mergify bot merged commit d281230 into master Dec 9, 2022
@mergify mergify bot deleted the fix-path-handling branch December 9, 2022 11:16
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.

Fail to run action xu-cheng/texlive-action/full
3 participants