Skip to content

Commit d718ce4

Browse files
Merge remote-tracking branch 'origin/main' into feature/26588-exec-no-session
2 parents d2318ca + ef584d4 commit d718ce4

File tree

716 files changed

+53806
-10766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

716 files changed

+53806
-10766
lines changed

.cirrus.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ validate-source_task:
122122
setup_script: &setup '$GOSRC/$SCRIPT_BASE/setup_environment.sh'
123123
golangci-lint_cache:
124124
folder: /root/.cache/golangci-lint
125-
reupload_on_changes: true
126-
fingerprint_script:
125+
fingerprint_script: &golangci_cache_fingerprint
127126
- go version
128127
- grep GOLANGCI_LINT_VERSION Makefile | head -1
128+
- date +%U
129129
# Standard main execution stage call, used by nearly every task in CI.
130130
main_script: &main '/usr/bin/time --verbose --output="$STATS_LOGFILE" $GOSRC/$SCRIPT_BASE/runner.sh'
131131

@@ -331,7 +331,7 @@ freebsd_alt_build_task:
331331
TEST_FLAVOR: "altbuild"
332332
ALT_NAME: 'FreeBSD Cross'
333333
freebsd_instance:
334-
image_family: freebsd-13-4
334+
image_family: freebsd-14-3
335335
# golangci-lint is a very, very hungry beast.
336336
cpu: 4
337337
memory: 8Gb
@@ -340,10 +340,7 @@ freebsd_alt_build_task:
340340
- go version # Downloads a new go version based on go.mod's go directive.
341341
golint_cache:
342342
folder: ~/.cache/golangci-lint
343-
reupload_on_changes: true
344-
fingerprint_script:
345-
- go version
346-
- grep GOLANGCI_LINT_VERSION Makefile | head -1
343+
fingerprint_script: *golangci_cache_fingerprint
347344
lint_script:
348345
- gmake golangci-lint
349346
build_amd64_script:

.github/workflows/first_contrib_cert_generator.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Generate Contributor Certificate Preview
33
# This action triggers automatically when a pull request is closed,
44
# or can be run manually from the Actions tab.
55
on:
6-
pull_request:
6+
pull_request_target:
77
types: [closed]
88
branches:
99
- main
@@ -34,7 +34,7 @@ jobs:
3434
- name: Check for first merged PR
3535
id: check_first_pr
3636
if: ${{ github.event_name == 'pull_request' }}
37-
uses: actions/github-script@v7
37+
uses: actions/github-script@v8
3838
with:
3939
script: |
4040
const author = context.payload.pull_request.user.login;
@@ -77,7 +77,7 @@ jobs:
7777
# Step 4: Setup Node.js environment
7878
- name: Setup Node.js
7979
if: ${{ github.event_name == 'workflow_dispatch' || steps.check_first_pr.outputs.is_first_pr == 'true' }}
80-
uses: actions/setup-node@v4
80+
uses: actions/setup-node@v5
8181
with:
8282
node-version: latest
8383

@@ -118,7 +118,7 @@ jobs:
118118
# Step 7: Upload certificate image to separate repository
119119
- name: Upload certificate to separate repository
120120
if: ${{ github.event_name == 'workflow_dispatch' || steps.check_first_pr.outputs.is_first_pr == 'true' }}
121-
uses: actions/github-script@v7
121+
uses: actions/github-script@v8
122122
with:
123123
github-token: ${{ secrets.CERTIFICATES_REPO_TOKEN }}
124124
script: |
@@ -217,7 +217,7 @@ jobs:
217217
# Step 8: Comment on Pull Request with embedded image
218218
- name: Comment with embedded certificate image
219219
if: ${{ github.event_name == 'workflow_dispatch' || steps.check_first_pr.outputs.is_first_pr == 'true' }}
220-
uses: actions/github-script@v7
220+
uses: actions/github-script@v8
221221
with:
222222
script: |
223223
try {

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ linters:
6464
revive:
6565
rules:
6666
- name: unused-parameter
67-
disabled: true
6867
exclusions:
6968
generated: strict
7069
presets:

Makefile

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ BUILDTAGS += ${EXTRA_BUILDTAGS}
7070
# N/B: This value is managed by Renovate, manual changes are
7171
# possible, as long as they don't disturb the formatting
7272
# (i.e. DO NOT ADD A 'v' prefix!)
73-
GOLANGCI_LINT_VERSION := 2.4.0
73+
GOLANGCI_LINT_VERSION := 2.5.0
7474
PYTHON ?= $(shell command -v python3 python|head -n1)
7575
PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
7676
# ~/.local/bin is not in PATH on all systems
@@ -150,12 +150,17 @@ GINKGO ?= ./bin/ginkgo
150150
GINKGO_FLAKE_ATTEMPTS ?= 0
151151
GINKGO_NO_COLOR ?= y
152152

153+
# The type of transport to use for testing remote service.
154+
# Must be one of unix, tcp, tls, mtls
155+
export REMOTESYSTEM_TRANSPORT ?= unix
156+
export REMOTEINTEGRATION_TRANSPORT ?= unix
157+
153158
# Conditional required to produce empty-output if binary not built yet.
154159
RELEASE_VERSION = $(shell if test -x test/version/version; then test/version/version; fi)
155160
RELEASE_NUMBER = $(shell echo "$(call err_if_empty,RELEASE_VERSION)" | sed -e 's/^v\(.*\)/\1/')
156161

157-
# If non-empty, logs all output from server during remote system testing
158-
PODMAN_SERVER_LOG ?=
162+
# Logs all output from server during remote system testing to this file
163+
PODMAN_SERVER_LOG ?= /dev/null
159164

160165
# Ensure GOBIN is not set so the default (`go env GOPATH`/bin) is used.
161166
override undefine GOBIN
@@ -680,6 +685,7 @@ ginkgo-run: .install.ginkgo
680685
ginkgo:
681686
$(MAKE) ginkgo-run TAGS="$(BUILDTAGS)"
682687

688+
683689
.PHONY: ginkgo-remote
684690
ginkgo-remote:
685691
$(MAKE) ginkgo-run TAGS="$(REMOTETAGS) remote_testing"
@@ -709,44 +715,15 @@ localsystem:
709715
PODMAN=$(CURDIR)/bin/podman QUADLET=$(CURDIR)/bin/quadlet bats -T --filter-tags '!ci:parallel' test/system/
710716
PODMAN=$(CURDIR)/bin/podman QUADLET=$(CURDIR)/bin/quadlet bats -T --filter-tags ci:parallel -j $$(nproc) test/system/
711717

718+
712719
.PHONY: remotesystem
713720
remotesystem:
714721
# Wipe existing config, database, and cache: start with clean slate.
715722
$(RM) -rf ${HOME}/.local/share/containers ${HOME}/.config/containers
716-
# . Make sure there's no active podman server - if there is,
717-
# it's not us, and we have no way to know what it is.
718-
# . Start server. Wait to make sure it comes up.
719-
# . Run tests, pretty much the same as localsystem.
720-
# . Stop server.
721-
rc=0;\
722-
if timeout -v 1 true; then \
723-
if ./bin/podman-remote info; then \
724-
echo "Error: podman system service (not ours) is already running" >&2;\
725-
exit 1;\
726-
fi;\
727-
./bin/podman system service --timeout=0 > $(if $(PODMAN_SERVER_LOG),$(PODMAN_SERVER_LOG),/dev/null) 2>&1 & \
728-
retry=5;\
729-
while [ $$retry -ge 0 ]; do\
730-
echo Waiting for server...;\
731-
sleep 1;\
732-
./bin/podman-remote info >/dev/null 2>&1 && break;\
733-
retry=$$(expr $$retry - 1);\
734-
done;\
735-
if [ $$retry -lt 0 ]; then\
736-
echo "Error: ./bin/podman system service did not come up" >&2;\
737-
exit 1;\
738-
fi;\
739-
env PODMAN="$(CURDIR)/bin/podman-remote" bats -T --filter-tags '!ci:parallel' test/system/ ;\
740-
rc=$$?; \
741-
if [ $$rc -eq 0 ]; then \
742-
env PODMAN="$(CURDIR)/bin/podman-remote" bats -T --filter-tags ci:parallel -j $$(nproc) test/system/ ;\
743-
rc=$$?;\
744-
fi; \
745-
kill %1;\
746-
else \
747-
echo "Skipping $@: 'timeout -v' unavailable'";\
748-
fi;\
749-
exit $$rc
723+
PODMAN=$(CURDIR)/bin/podman-remote QUADLET=$(CURDIR)/bin/quadlet \
724+
bats -T --filter-tags '!ci:parallel' test/system/
725+
PODMAN=$(CURDIR)/bin/podman-remote QUADLET=$(CURDIR)/bin/quadlet \
726+
bats -T --filter-tags ci:parallel -j $$(nproc) test/system/
750727

751728
.PHONY: localapiv2-bash
752729
localapiv2-bash:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Podman: A tool for managing OCI containers and pods
44
![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)
55
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/containers/podman)
6-
[![Go Report Card](https://goreportcard.com/badge/github.com/containers/libpod)](https://goreportcard.com/report/github.com/containers/libpod)
6+
[![Go Report Card](https://goreportcard.com/badge/github.com/containers/podman/v5)](https://goreportcard.com/report/github.com/containers/podman/v5)
77
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10499/badge)](https://www.bestpractices.dev/projects/10499)
88

99
[![LFX Health Score](https://insights.linuxfoundation.org/api/badge/health-score?project=containers-podman)](https://insights.linuxfoundation.org/project/containers-podman)

cmd/podman-mac-helper/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func init() {
8383
rootCmd.AddCommand(installCmd)
8484
}
8585

86-
func install(cmd *cobra.Command, args []string) error {
86+
func install(_ *cobra.Command, _ []string) error {
8787
userName, uid, homeDir, err := getUser()
8888
if err != nil {
8989
return err

cmd/podman-mac-helper/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func addPrefixFlag(cmd *cobra.Command) {
142142
cmd.Flags().StringVar(&installPrefix, "prefix", defaultPrefix, "Sets the install location prefix")
143143
}
144144

145-
func silentUsage(cmd *cobra.Command, args []string) {
145+
func silentUsage(cmd *cobra.Command, _ []string) {
146146
cmd.SilenceUsage = true
147147
cmd.SilenceErrors = true
148148
}

cmd/podman-mac-helper/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func init() {
3131
rootCmd.AddCommand(serviceCmd)
3232
}
3333

34-
func serviceRun(cmd *cobra.Command, args []string) {
34+
func serviceRun(_ *cobra.Command, _ []string) {
3535
info, err := os.Stdin.Stat()
3636
if err != nil || info.Mode()&fs.ModeSocket == 0 {
3737
fmt.Fprintln(os.Stderr, "This is an internal command that is not intended for standard terminal usage")

cmd/podman-mac-helper/uninstall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func init() {
2727
rootCmd.AddCommand(uninstallCmd)
2828
}
2929

30-
func uninstall(cmd *cobra.Command, args []string) error {
30+
func uninstall(_ *cobra.Command, _ []string) error {
3131
userName, _, homeDir, err := getUser()
3232
if err != nil {
3333
return err

cmd/podman-testing/create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func init() {
8888
flags.StringVarP(&createContainerOpts.Layer, "layer", "l", "", "ID of containers's read-write layer (default none)")
8989
}
9090

91-
func createStorageLayer(cmd *cobra.Command, args []string) error {
91+
func createStorageLayer(_ *cobra.Command, _ []string) error {
9292
results, err := testingEngine.CreateStorageLayer(mainContext, createStorageLayerOpts)
9393
if err != nil {
9494
return err
@@ -98,7 +98,7 @@ func createStorageLayer(cmd *cobra.Command, args []string) error {
9898
return nil
9999
}
100100

101-
func createLayer(cmd *cobra.Command, args []string) error {
101+
func createLayer(_ *cobra.Command, _ []string) error {
102102
results, err := testingEngine.CreateLayer(mainContext, createLayerOpts)
103103
if err != nil {
104104
return err
@@ -108,7 +108,7 @@ func createLayer(cmd *cobra.Command, args []string) error {
108108
return nil
109109
}
110110

111-
func createImage(cmd *cobra.Command, args []string) error {
111+
func createImage(_ *cobra.Command, _ []string) error {
112112
results, err := testingEngine.CreateImage(mainContext, createImageOpts)
113113
if err != nil {
114114
return err
@@ -118,7 +118,7 @@ func createImage(cmd *cobra.Command, args []string) error {
118118
return nil
119119
}
120120

121-
func createContainer(cmd *cobra.Command, args []string) error {
121+
func createContainer(_ *cobra.Command, _ []string) error {
122122
results, err := testingEngine.CreateContainer(mainContext, createContainerOpts)
123123
if err != nil {
124124
return err

0 commit comments

Comments
 (0)