Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/hcsshim
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.11.1
Choose a base ref
...
head repository: microsoft/hcsshim
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.11.2
Choose a head ref
  • 19 commits
  • 104 files changed
  • 6 contributors

Commits on Oct 12, 2023

  1. Add constants for mount types

    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    (cherry picked from commit 11700d2)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    kiashok committed Oct 12, 2023
    Copy the full SHA
    660d4f0 View commit details

Commits on Oct 13, 2023

  1. gcs: Support routing container stdio to sidecar

    Signed-off-by: Ashish Sachdeva <asachdev@microsoft.com>
    (cherry picked from commit b1b0768)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    asachdev17 authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    0fd6fd7 View commit details
  2. Enable guest agent unit tests in the ci

    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit 655649b)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    26a3eed View commit details
  3. Use gh cli to download releases (#1792)

    Use official github cli tool to download releases, instead of manually
    creating URLs.
    
    Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
    (cherry picked from commit f1a2711)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    helsaawy authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    777e2b2 View commit details
  4. [gcs.test] update scratch space cleanup order (#1794)

    Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
    (cherry picked from commit 9fd0e72)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    helsaawy authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    106f318 View commit details
  5. tests: fix uvm resources update tests (#1796)

    inject fragment logic has been added and the uvm resource
    update tests are failing for a completely different reason.
    Update the tests to check for specific "invalid resource"
    message.
    
    Signed-off-by: Maksim An <maksiman@microsoft.com>
    (cherry picked from commit 4f8d26f)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    anmaxvl authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    162c83a View commit details
  6. tests: add rego e2e tests for dump_stacks and get_properties (#1793)

    Signed-off-by: Maksim An <maksiman@microsoft.com>
    (cherry picked from commit 8a094ae)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    anmaxvl authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    8e92c6b View commit details
  7. [ci] Enable caching for proto and integration jobs (#1755)

    Caching is enabled by default in `actions/setup-go@v4`
    (https://githut b.com/actions/setup-go#caching-dependency-files-and-build-outputs)
    so update the `go.sum` path when checking out hcsshim to a non-default
    path.
    
    Additionally, disable for linting, since that often causes errors.
    Without caching, wont need to explicitly delete the module cache.
    
    Relies on: #1752
    
    Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
    (cherry picked from commit 25b6855)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    helsaawy authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    d504d6d View commit details
  8. Add support for NetworkConfigProxy v0 and v1 api

    * Add tests for NetworkConfigProxy v0 support
    
    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit cbb43e5)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    d0e1580 View commit details
  9. Add file wide deprecated option to ncproxygrpc v0 api

    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit 37cd9df)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    0ff2f71 View commit details
  10. When fetch pid counts the contianer can be in an invalid state sometimes

    Signed-off-by: James Sturtevant <jstur@microsoft.com>
    (cherry picked from commit 2095093)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    jsturtevant authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    a7d3976 View commit details
  11. Create a v0 nodenetsvc api and plumb through ncproxy code

    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit 10c29fc)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    421836c View commit details
  12. Add deprecated option to all types and fields for ncproxy v0 apis

    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit 10a4309)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    4f1c7ff View commit details
  13. Add new entries in golangci.yml to prevent linter errors from depreca…

    …ted ncproxy api use
    
    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit 46d8160)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    bc73897 View commit details
  14. Add support for nodenetsvc v0 and readme to test network agent

    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit 3955d35)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    23693bc View commit details
  15. Add linter exclusion for test networkagent

    Signed-off-by: Kathryn Baldauf <kabaldau@microsoft.com>
    (cherry picked from commit bed7a8b)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    katiewasnothere authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    fabb1a3 View commit details
  16. Version control and vendor mockgen (#1802)

    Explicitly track `github.com/golang/mock/mockgen` as a go dependency.
    (There is no change in our go.mod or go.sum, since the package is
    already being used by the generated code and elsewhere).
    
    Add `//go:generate` directives to create the mocked files and ensure the
    results are always up to date.
    
    Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
    (cherry picked from commit 61e0112)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    helsaawy authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    ad5f5af View commit details
  17. Create tools package to isolate dependencies (#1840)

    Using a dedicated package for tools.go prevents callers who import hcshim
    from adding the tools to their package's dependencies, while still
    allowing us to track and vendor them.t p
    
    Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
    (cherry picked from commit 95c6047)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    helsaawy authored and kiashok committed Oct 13, 2023
    Copy the full SHA
    8dcd949 View commit details

Commits on Oct 17, 2023

  1. Support adding mount to running containers

    - Extend hcsTask.Update() to process and add
    mount for running process isolated and hyperV
    wcow containers
    
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    (cherry picked from commit aad7467)
    Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
    kiashok committed Oct 17, 2023
    Copy the full SHA
    f7a3166 View commit details
Showing with 37,758 additions and 158 deletions.
  1. +108 −57 .github/workflows/ci.yml
  2. +4 −0 .gitignore
  3. +11 −0 .golangci.yml
  4. +4 −0 Protobuild.toml
  5. +1 −1 cmd/containerd-shim-runhcs-v1/main.go
  6. +65 −0 cmd/containerd-shim-runhcs-v1/service_internal_taskshim_test.go
  7. +1 −0 cmd/containerd-shim-runhcs-v1/task.go
  8. +103 −6 cmd/containerd-shim-runhcs-v1/task_hcs.go
  9. +19 −1 cmd/containerd-shim-runhcs-v1/task_test.go
  10. +1 −1 cmd/ncproxy/ncproxy.go
  11. +314 −0 cmd/ncproxy/ncproxy_v0_service.go
  12. +1,314 −0 cmd/ncproxy/ncproxy_v0_service_test.go
  13. +32 −0 cmd/ncproxy/run.go
  14. +6 −0 cmd/ncproxy/server.go
  15. +95 −3 cmd/ncproxy/server_test.go
  16. +1 −1 cmd/runhcs/main.go
  17. +1 −1 cmd/wclayer/wclayer.go
  18. +2 −0 go.mod
  19. +4 −0 go.sum
  20. +2 −4 internal/computeagent/doc.go
  21. +69 −2 internal/guest/runtime/runc/container.go
  22. +2 −1 internal/guest/runtime/runc/runc.go
  23. +2 −0 internal/guestpath/paths.go
  24. +1 −1 internal/hcsoci/hcsdoc_wcow.go
  25. +12 −0 internal/hcsoci/resources.go
  26. +5 −5 internal/hcsoci/resources_lcow.go
  27. +7 −7 internal/hcsoci/resources_wcow.go
  28. +23 −0 internal/tools/networkagent/README.md
  29. +6 −0 internal/tools/networkagent/defs.go
  30. +19 −8 internal/tools/networkagent/main.go
  31. +72 −0 internal/tools/networkagent/v0_service_wrapper.go
  32. +22 −12 internal/uvm/share.go
  33. +8 −0 pkg/ctrdtaskapi/update.go
  34. +1 −0 pkg/ncproxy/ncproxygrpc/v0/doc.go
  35. +6,710 −0 pkg/ncproxy/ncproxygrpc/v0/networkconfigproxy.pb.go
  36. +192 −0 pkg/ncproxy/ncproxygrpc/v0/networkconfigproxy.proto
  37. +3 −0 pkg/ncproxy/nodenetsvc/v0/doc.go
  38. +200 −0 pkg/ncproxy/nodenetsvc/v0/mock/nodenetsvc_mock.pb.go
  39. +2,621 −0 pkg/ncproxy/nodenetsvc/v0/nodenetsvc.pb.go
  40. +75 −0 pkg/ncproxy/nodenetsvc/v0/nodenetsvc.proto
  41. +2 −5 pkg/ncproxy/nodenetsvc/v1/doc.go
  42. +5 −3 scripts/Test-LCOW-UVM.ps1
  43. +164 −24 test/cri-containerd/policy_test.go
  44. +6 −1 test/functional/uvm_update_test.go
  45. +1 −3 test/gcs/container_bench_test.go
  46. +7 −5 test/gcs/helper_container_test.go
  47. +2 −0 test/go.sum
  48. +1 −1 test/pkg/manifest/manifest.go
  49. +0 −5 tools.go
  50. +22 −0 tools/README.md
  51. +16 −0 tools/tools.go
  52. +5 −0 vendor/github.com/akavel/rsrc/AUTHORS
  53. +21 −0 vendor/github.com/akavel/rsrc/LICENSE.txt
  54. +13 −0 vendor/github.com/akavel/rsrc/binutil/plain.go
  55. +35 −0 vendor/github.com/akavel/rsrc/binutil/sizedfile.go
  56. +63 −0 vendor/github.com/akavel/rsrc/binutil/walk.go
  57. +33 −0 vendor/github.com/akavel/rsrc/binutil/writer.go
  58. +363 −0 vendor/github.com/akavel/rsrc/coff/coff.go
  59. +214 −0 vendor/github.com/akavel/rsrc/ico/ico.go
  60. +701 −0 vendor/github.com/golang/mock/mockgen/mockgen.go
  61. +495 −0 vendor/github.com/golang/mock/mockgen/model/model.go
  62. +644 −0 vendor/github.com/golang/mock/mockgen/parse.go
  63. +256 −0 vendor/github.com/golang/mock/mockgen/reflect.go
  64. +26 −0 vendor/github.com/golang/mock/mockgen/version.1.11.go
  65. +35 −0 vendor/github.com/golang/mock/mockgen/version.1.12.go
  66. +8 −0 vendor/github.com/josephspurrier/goversioninfo/.gitattributes
  67. +19 −0 vendor/github.com/josephspurrier/goversioninfo/.gitignore
  68. +23 −0 vendor/github.com/josephspurrier/goversioninfo/.travis.yml
  69. +21 −0 vendor/github.com/josephspurrier/goversioninfo/LICENSE
  70. +26 −0 vendor/github.com/josephspurrier/goversioninfo/Makefile
  71. +127 −0 vendor/github.com/josephspurrier/goversioninfo/README.md
  72. +271 −0 vendor/github.com/josephspurrier/goversioninfo/cmd/goversioninfo/main.go
  73. +329 −0 vendor/github.com/josephspurrier/goversioninfo/goversioninfo.go
  74. +103 −0 vendor/github.com/josephspurrier/goversioninfo/icon.go
  75. +131 −0 vendor/github.com/josephspurrier/goversioninfo/lang_cs.go
  76. +330 −0 vendor/github.com/josephspurrier/goversioninfo/structbuild.go
  77. +78 −0 vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go
  78. +174 −0 vendor/golang.org/x/mod/modfile/print.go
  79. +958 −0 vendor/golang.org/x/mod/modfile/read.go
  80. +1,559 −0 vendor/golang.org/x/mod/modfile/rule.go
  81. +234 −0 vendor/golang.org/x/mod/modfile/work.go
  82. +841 −0 vendor/golang.org/x/mod/module/module.go
  83. +250 −0 vendor/golang.org/x/mod/module/pseudo.go
  84. +636 −0 vendor/golang.org/x/tools/go/ast/astutil/enclosing.go
  85. +485 −0 vendor/golang.org/x/tools/go/ast/astutil/imports.go
  86. +488 −0 vendor/golang.org/x/tools/go/ast/astutil/rewrite.go
  87. +18 −0 vendor/golang.org/x/tools/go/ast/astutil/util.go
  88. +77 −0 vendor/golang.org/x/tools/imports/forward.go
  89. +196 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk.go
  90. +119 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_darwin.go
  91. +14 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_fileno.go
  92. +15 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go
  93. +14 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go
  94. +29 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_linux.go
  95. +38 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_portable.go
  96. +153 −0 vendor/golang.org/x/tools/internal/fastwalk/fastwalk_unix.go
  97. +254 −0 vendor/golang.org/x/tools/internal/gopathwalk/walk.go
  98. +1,738 −0 vendor/golang.org/x/tools/internal/imports/fix.go
  99. +351 −0 vendor/golang.org/x/tools/internal/imports/imports.go
  100. +716 −0 vendor/golang.org/x/tools/internal/imports/mod.go
  101. +236 −0 vendor/golang.org/x/tools/internal/imports/mod_cache.go
  102. +297 −0 vendor/golang.org/x/tools/internal/imports/sortimports.go
  103. +11,115 −0 vendor/golang.org/x/tools/internal/imports/zstdlib.go
  104. +19 −0 vendor/modules.txt
165 changes: 108 additions & 57 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -8,8 +8,9 @@ env:
GOTESTSUM_VERSION: "latest"

jobs:

lint:
runs-on: "windows-2019"
runs-on: "windows-2022"
strategy:
fail-fast: false
matrix:
@@ -25,15 +26,18 @@ jobs:
./internal/tools/...
./pkg/...
./ext4/...
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Checkout
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Clean mod cache
shell: Powershell
run: |
go clean -modcache
# sometimes go cache causes issues with lint
cache: false

- uses: golangci/golangci-lint-action@v3
with:
version: v1.52
@@ -42,21 +46,30 @@ jobs:
--max-issues-per-linter=0
--max-same-issues=0
--modules-download-mode=readonly
--timeout=10m
${{ matrix.dirs }}
working-directory: ${{ matrix.root }}
env:
GOOS: ${{ matrix.goos }}

protos:
runs-on: "windows-2019"
runs-on: "windows-2022"

env:
# translating from github.com/Microsoft/hcsshim/<path> (via `go list`) to <path> is easier if hcsshim is in GOPATH/src
GOPATH: '${{ github.workspace }}\go'

steps:
- uses: actions/setup-go@v4
- name: Checkout hcsshim
uses: actions/checkout@v3
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
path: go/src/github.com/Microsoft/hcsshim

- name: Install go
uses: actions/setup-go@v4
with:
path: "go/src/github.com/Microsoft/hcsshim"
name: Checkout hcsshim
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: go/src/github.com/Microsoft/hcsshim/go.sum

- name: Get containerd ref
shell: powershell
@@ -70,55 +83,80 @@ jobs:
"containerd_ref=$v" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
working-directory: go/src/github.com/Microsoft/hcsshim

# Install protoc-gen-gogoctrd in D:\bin
- uses: actions/checkout@v3
- name: Checkout containerd
uses: actions/checkout@v3
with:
repository: containerd/containerd
path: "containerd"
ref: "${{ env.containerd_ref }}"
name: Checkout containerd

- name: Install protoc-gen-gogoctrd
- name: Install protobuild and protoc-gen-gogoctrd
shell: powershell
run: |
# not actually GOBIN
$goBin = Join-Path (go env GOPATH) 'bin'
mkdir -f $goBin
$goBin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
go install github.com/containerd/protobuild@v0.2.0
cd containerd
go build ./cmd/protoc-gen-gogoctrd
mkdir D:\bin
mv protoc-gen-gogoctrd.exe D:\bin
go build -o $goBin ./cmd/protoc-gen-gogoctrd
# Install protoc in D:\bin
- name: Install protoc
shell: powershell
run: |
Invoke-WebRequest -OutFile protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-win32.zip
Expand-Archive -Path protoc.zip -DestinationPath .
mv include go/src/github.com/Microsoft/hcsshim/protobuf
mv bin\protoc.exe D:\bin
gh release download -R protocolbuffers/protobuf -p 'protoc-*-win32.zip' -O protoc.zip 'v23.2'
if ( $LASTEXITCODE ) {
Write-Output '::error::Could not download protoc.'
exit $LASTEXITCODE
}
tar.exe xf protoc.zip
if ( $LASTEXITCODE ) {
Write-Output '::error::Could not install protoc.'
exit $LASTEXITCODE
}
mkdir -f ${{ github.workspace }}/go/src/github.com/Microsoft/hcsshim/protobuf
mv include/* ${{ github.workspace }}/go/src/github.com/Microsoft/hcsshim/protobuf
# put protoc in GOPATH to make things easier
mv bin\protoc.exe (Join-Path (go env GOPATH) 'bin')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run Protobuild
shell: powershell
run: |
go install github.com/containerd/protobuild@v0.2.0
cd go\src\github.com\Microsoft\hcsshim
$Env:Path += ";D:\bin;" + $Env:GOPATH + "\bin"
Write-Output "::group::protobuild"
protobuild $(go list ./... | grep -v /vendor/)
Write-Output "::endgroup::"
if ( $LASTEXITCODE ) {
Write-Output '::error::Failed to run protobuild.'
exit $LASTEXITCODE
}
Write-Output "::group::git diff"
# look for any new files not previously tracked
git add --all --intent-to-add .
git diff --exit-code
env:
GOPATH: '${{ github.workspace }}\go'
GOFLAGS: ""
GOPROXY: ""
Write-Output "::endgroup::"
working-directory: "${{ github.workspace }}/go/src/github.com/Microsoft/hcsshim"

verify-vendor:
runs-on: "windows-2019"
runs-on: "windows-2022"
env:
GOPROXY: "https://proxy.golang.org,direct"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Checkout
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Validate go.mod and vendoring
shell: powershell
run: |
@@ -128,6 +166,7 @@ jobs:
Write-Error "Main modules are not up to date. Please validate your go version >= this job's and run `go mod vendor` followed by `go mod tidy` in the repo root path."
}
exit $process.ExitCode
- name: Validate test/go.mod
shell: powershell
working-directory: test
@@ -148,12 +187,16 @@ jobs:
go-gen:
name: Go Generate
runs-on: "windows-2019"
runs-on: "windows-2022"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Checkout
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Validate go generate
shell: powershell
run: |
@@ -198,6 +241,9 @@ jobs:
- name: Test rego policy interpreter
run: gotestsum --format standard-verbose --debug -- -mod=mod -gcflags=all=-d=checkptr ./internal/regopolicyinterpreter

- name: Run guest code unit tests
run: gotestsum --format standard-verbose --debug -- -mod=mod -gcflags=all=-d=checkptr ./internal/guest/...

- name: Build gcs Testing Binary
run: go test -mod=mod -gcflags=all=-d=checkptr -c -tags functional ./gcs
working-directory: test
@@ -209,8 +255,11 @@ jobs:
matrix:
os: [windows-2019, windows-2022]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Checkout
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

@@ -263,10 +312,17 @@ jobs:
os: [windows-2019, windows-2022]

steps:
- uses: actions/setup-go@v4
- name: Checkout hcsshim
uses: actions/checkout@v3
with:
path: src/github.com/Microsoft/hcsshim

- name: Install go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache-dependency-path: src/github.com/Microsoft/hcsshim/go.sum

- name: Set env
shell: bash
@@ -276,11 +332,6 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
echo "${{ github.workspace }}/src/github.com/containerd/containerd/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
with:
path: src/github.com/Microsoft/hcsshim
name: Checkout hcsshim

- name: Get containerd ref
shell: powershell
run: |
@@ -303,18 +354,15 @@ jobs:
- name: Install crictl
shell: powershell
run: |
$VerbosePreference = 'Continue'
$ErrorActionPreference = 'Stop'
$crictlVersion = 'v1.24.2'
$url = "https://github.com/kubernetes-sigs/cri-tools/releases/download/${crictlVersion}/crictl-${crictlVersion}-windows-amd64.tar.gz"
curl.exe -L --no-progress-meter -o c:\crictl.tar.gz $url
tar.exe xf c:\crictl.tar.gz -C "${{ github.workspace }}/bin"
gh release download -R kubernetes-sigs/cri-tools -p 'crictl-*-windows-amd64.tar.gz' -O c:\crictl.tar.gz 'v1.24.2'
tar.exe xf c:\crictl.tar.gz -C '${{ github.workspace }}/bin'
if ( $LASTEXITCODE ) {
Write-Output '::error::Could not install crictl.'
exit $LASTEXITCODE
}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# needs to be a separate step since terminal reload is required to bring in new env variables and PATH
- name: Upgrade Chocolaty
@@ -463,10 +511,13 @@ jobs:

build:
needs: [test-windows, test-linux]
runs-on: "windows-2019"
runs-on: "windows-2022"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- name: Checkout
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -37,6 +37,10 @@ rootfs-conv/*
deps/*
out/*

# protobuf files
# only files at root of the repo, otherwise this will cause issues with vendoring
/protobuf/*

# test results
test/results

11 changes: 11 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -135,3 +135,14 @@ issues:
linters:
- stylecheck
Text: "ST1003:"

# v0 APIs are deprecated, but still retained for backwards compatability
- path: cmd\\ncproxy\\
linters:
- staticcheck
text: "^SA1019: .*(ncproxygrpc|nodenetsvc)[/]?v0"

- path: internal\\tools\\networkagent
linters:
- staticcheck
text: "^SA1019: .*nodenetsvc[/]?v0"
4 changes: 4 additions & 0 deletions Protobuild.toml
Original file line number Diff line number Diff line change
@@ -9,6 +9,10 @@ plugins = ["grpc", "fieldpath"]
# treat the root of the project as an include, but this may not be necessary.
before = ["./protobuf"]

# defaults are "/usr/local/include" and "/usr/include", which don't exist on Windows.
# override defaults to supress errors about non-existant directories.
after = []

# Paths that should be treated as include roots in relation to the vendor
# directory. These will be calculated with the vendor directory nearest the
# target package.
2 changes: 1 addition & 1 deletion cmd/containerd-shim-runhcs-v1/main.go
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ const usage = ``
const ttrpcAddressEnv = "TTRPC_ADDRESS"

// Add a manifest to get proper Windows version detection.
//go:generate go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.4.0 -platform-specific
//go:generate go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo -platform-specific

// version will be populated by the Makefile, read from
// VERSION file of the source code.
Loading