ci: gha test workflow for integration and unit test#44034
ci: gha test workflow for integration and unit test#44034thaJeztah merged 7 commits intomoby:masterfrom
Conversation
related #42484 |
integration-cli/requirements_test.go
Outdated
| } | ||
|
|
||
| func NotGitHubActions() bool { | ||
| return os.Getenv("GITHUB_ACTIONS") != "true" |
There was a problem hiding this comment.
Better to use strconv.ParseBool
There was a problem hiding this comment.
Yes, I think we can either go with "allow the variable to both enable or explicitly disable", in which case we would have something like gzDecompress()
Or, we could keep it simple and consider any non-empty value to be "enabled", and empty to be "disabled";
Line 198 in 9184f0b
Given that this is only for CI, and not a user-facing option, I'd be ok with "non-empty" means "enabled";
| return os.Getenv("GITHUB_ACTIONS") != "true" | |
| return os.Getenv("GITHUB_ACTIONS") == "" |
Or is it expected for this var to have GITHUB_ACTIONS=false ? I see various project just checking for "empty", but there's some that have "false" conditions as well; https://grep.app/search?q=GITHUB_ACTIONS&case=true&filter[lang][0]=Shell
AkihiroSuda
left a comment
There was a problem hiding this comment.
Cgroup2 mode seems misconfigured
Good catch, thanks Akihiro! |
|
LOL; looks like we need to hash the paths; |
7c9071e to
1aa0970
Compare
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
|
@AkihiroSuda @tianon PTAL 🤗 |
integration-cli/requirements_test.go
Outdated
| } | ||
|
|
||
| func GitHubActions() bool { | ||
| return os.Getenv("GITHUB_ACTIONS") == "true" |
There was a problem hiding this comment.
Ah, dang; I recall I commented on this to use "non-empty" (as I don't think we'll ever gonna use GITHUB_ACTIONS=false); #44034 (comment)
Looks like it was inadvertently marked as "resolved"; does that suggestion work for you, @AkihiroSuda ?
There was a problem hiding this comment.
Ah I missed this one. Done with non-empty.
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
Signed-off-by: CrazyMax <[email protected]>
|
This one again 😞: https://github.com/moby/moby/runs/8246861287?check_suite_focus=true#step:6:225 @thaJeztah Could we merge #44086 first? This is really frustrating and seems to happen quite often. |
|
Thanks for the re-run @thaJeztah, good to merge? |
|
Thanks! I think that should address @AkihiroSuda's comment; let me merge this to unblock the other work, but @AkihiroSuda if there's anything to fix up after this, let me know ❤️ |
follow-up #43479
- What I did
Adds gha
testworkflow to run integration and unit test. Will ease testing #43529 and also moving out some bits from Jenkins.I use the same matrix strategy to distribute integration-cli tests as windows workflow.
Looking at the overall number of jobs running in the pipeline now I think we could remove tests againstwindows-2019so queue size would be reduce.Some tests look broken on GitHub Runner, probably linked to the runner environment so skipping them on gha env for now.
integration (rootless): https://github.com/crazy-max/moby/runs/8010866754?check_suite_focus=true#step:7:1032related #41561
ìntegration-cli: https://github.com/crazy-max/moby/runs/8010867286?check_suite_focus=true#step:6:662related #36541
ìntegration-cli: https://github.com/crazy-max/moby/runs/8010867670?check_suite_focus=true#step:6:1328related #41559 #43996
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)