Skip to content

Commit

Permalink
Updated go to 1.23 (#60)
Browse files Browse the repository at this point in the history
* Updated go to 1.23
* Changed docker-compose to docker compose
* Updated hms-msgbus version

CASMHMS-6317
  • Loading branch information
shunr-hpe authored Dec 9, 2024
1 parent ce7319a commit 97f2b86
Show file tree
Hide file tree
Showing 1,019 changed files with 262,577 additions and 154,014 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.0
1.22.0
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

These are changes to charts in support of:

## [1.22.0] - 2023-12-03

### Changed

- Updated go to 1.23

## [1.21.0] - 2023-09-21

### Added
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# (C) Copyright [2019-2022] Hewlett Packard Enterprise Development LP
# (C) Copyright [2019-2022,2024] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -24,7 +24,7 @@

### build-base stage ###
# Build base just has the packages installed we need.
FROM artifactory.algol60.net/docker.io/library/golang:1.16-alpine AS build-base
FROM artifactory.algol60.net/docker.io/library/golang:1.23-alpine AS build-base

RUN set -ex \
&& apk -U upgrade \
Expand All @@ -45,7 +45,7 @@ COPY vendor $GOPATH/src/github.com/Cray-HPE/hms-hmnfd/vendor
### Build Stage ###
FROM base AS builder

RUN set -ex && go build -v -tags musl -i -o /usr/local/bin/hmnfd github.com/Cray-HPE/hms-hmnfd/cmd/hmi-nfd
RUN set -ex && go build -v -tags musl -o /usr/local/bin/hmnfd github.com/Cray-HPE/hms-hmnfd/cmd/hmi-nfd


### Final Stage ###
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.testing.unit.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# (C) Copyright [2021-2022] Hewlett Packard Enterprise Development LP
# (C) Copyright [2021-2022,2024] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -24,7 +24,7 @@

### build-base stage ###
# Build base just has the packages installed we need.
FROM artifactory.algol60.net/docker.io/library/golang:1.16-alpine AS build-base
FROM artifactory.algol60.net/docker.io/library/golang:1.23-alpine AS build-base

RUN set -ex \
&& apk -U upgrade \
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.test.ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ services:
#
# When adding additional HSM resources here, verify that their presence will still work with test/ct/wait-for.sh
emulator-loader:
image: artifactory.algol60.net/docker.io/library/golang:1.16-alpine
image: artifactory.algol60.net/docker.io/library/golang:1.23-alpine
command: >
sh -c "apk add curl && sleep 10 &&
echo \"== post redfish endpoints\" &&
Expand Down
35 changes: 29 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
module github.com/Cray-HPE/hms-hmnfd

go 1.16
go 1.23

require (
github.com/Cray-HPE/hms-base/v2 v2.0.1
github.com/Cray-HPE/hms-hmetcd v1.10.3
github.com/Cray-HPE/hms-msgbus v1.11.0
github.com/Cray-HPE/hms-xname v1.3.0
github.com/Cray-HPE/hms-base/v2 v2.1.0
github.com/Cray-HPE/hms-hmetcd v1.11.0
github.com/Cray-HPE/hms-msgbus v1.12.0
github.com/Cray-HPE/hms-xname v1.4.0
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.4.1 // indirect
)

require (
github.com/confluentinc/confluent-kafka-go v1.7.0 // indirect
github.com/coreos/go-semver v0.3.1 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-retryablehttp v0.5.4 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
go.etcd.io/etcd/api/v3 v3.5.16 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.16 // indirect
go.etcd.io/etcd/client/v3 v3.5.16 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.20.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
google.golang.org/grpc v1.68.0 // indirect
google.golang.org/protobuf v1.35.1 // indirect
)
215 changes: 71 additions & 144 deletions go.sum

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions runCT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ echo "COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME}"
echo "COMPOSE_FILE: $COMPOSE_FILE"

function cleanup() {
docker-compose down
docker compose down
if [[ $? -ne 0 ]]; then
echo "Failed to decompose environment!"
exit 1
Expand All @@ -42,12 +42,12 @@ function cleanup() {

# Get the base containers running
echo "Starting containers..."
docker-compose build --no-cache
docker-compose up --exit-code-from wait-for-smd wait-for-smd
docker-compose up -d cray-hmnfd
docker compose build --no-cache
docker compose up --exit-code-from wait-for-smd wait-for-smd
docker compose up -d cray-hmnfd

# Run the CT smoke tests
docker-compose up --exit-code-from smoke-tests smoke-tests
docker compose up --exit-code-from smoke-tests smoke-tests
test_result=$?
echo "Cleaning up containers..."
if [[ $test_result -ne 0 ]]; then
Expand All @@ -56,7 +56,7 @@ if [[ $test_result -ne 0 ]]; then
fi

# Run the CT Tavern tests
docker-compose up --exit-code-from tavern-tests tavern-tests
docker compose up --exit-code-from tavern-tests tavern-tests
test_result=$?
if [[ $test_result -ne 0 ]]; then
echo "CT tavern tests FAILED!"
Expand Down
8 changes: 4 additions & 4 deletions runIntegration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ echo "COMPOSE_FILE: $COMPOSE_FILE"


function cleanup() {
docker-compose down
docker compose down
if [[ $? -ne 0 ]]; then
echo "Failed to decompose environment!"
exit 1
Expand All @@ -44,9 +44,9 @@ function cleanup() {

# Get the base containers running
echo "Starting containers..."
docker-compose build
docker-compose up -d cray-hmnfd
docker-compose up --exit-code-from integration-tests integration-tests
docker compose build
docker compose up -d cray-hmnfd
docker compose up --exit-code-from integration-tests integration-tests

test_result=$?

Expand Down
6 changes: 3 additions & 3 deletions runUnitTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "COMPOSE_FILE: $COMPOSE_FILE"


function cleanup() {
docker-compose down
docker compose down
if ! [[ $? -eq 0 ]]; then
echo "Failed to decompose environment!"
exit 1
Expand All @@ -45,8 +45,8 @@ function cleanup() {


echo "Starting containers..."
docker-compose build --no-cache
docker-compose up --exit-code-from unit-tests unit-tests
docker compose build --no-cache
docker compose up --exit-code-from unit-tests unit-tests

test_result=$?

Expand Down
6 changes: 3 additions & 3 deletions test/fake-subscriber/Dockerfile.fake-subscriber
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# (C) Copyright [2019-2022] Hewlett Packard Enterprise Development LP
# (C) Copyright [2019-2022,2024] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand All @@ -24,13 +24,13 @@
# Author: mpkelly
# Date: 12-February 2019

FROM artifactory.algol60.net/docker.io/library/golang:1.16-alpine AS builder
FROM artifactory.algol60.net/docker.io/library/golang:1.23-alpine AS builder

RUN go env -w GO111MODULE=auto

COPY fake-subscriber.go ${GOPATH}/src/fake-subscriber/

RUN set -ex && go build -v -tags musl -i -o /usr/local/bin/fake-subscriber fake-subscriber
RUN set -ex && go build -v -tags musl -o /usr/local/bin/fake-subscriber fake-subscriber

### Final Stage ###

Expand Down
8 changes: 8 additions & 0 deletions vendor/github.com/Cray-HPE/hms-base/v2/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/Cray-HPE/hms-base/v2/.version

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vendor/github.com/Cray-HPE/hms-base/v2/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions vendor/github.com/Cray-HPE/hms-base/v2/go.mod

This file was deleted.

9 changes: 0 additions & 9 deletions vendor/github.com/Cray-HPE/hms-base/v2/go.sum

This file was deleted.

9 changes: 9 additions & 0 deletions vendor/github.com/Cray-HPE/hms-hmetcd/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/Cray-HPE/hms-hmetcd/.version

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/github.com/Cray-HPE/hms-hmetcd/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 0 additions & 45 deletions vendor/github.com/Cray-HPE/hms-hmetcd/Dockerfile

This file was deleted.

39 changes: 0 additions & 39 deletions vendor/github.com/Cray-HPE/hms-hmetcd/Dockerfile.build-base

This file was deleted.

Loading

0 comments on commit 97f2b86

Please sign in to comment.