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

ci: Push artifacts versions to Network Operator repo #37

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

e0ne
Copy link
Collaborator

@e0ne e0ne commented Dec 2, 2024

No description provided.

@e0ne e0ne requested a review from maze88 December 2, 2024 20:30
Copy link

github-actions bot commented Dec 2, 2024

Thanks for your PR,
To run vendors CIs, Maintainers can use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs, Maintainers can use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@coveralls
Copy link

coveralls commented Dec 2, 2024

Pull Request Test Coverage Report for Build 12545107010

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 47.231%

Files with Coverage Reduction New Missed Lines %
controllers/generic_network_controller.go 5 74.38%
Totals Coverage Status
Change from base Build 12440249226: -0.03%
Covered Lines: 7199
Relevant Lines: 15242

💛 - Coveralls

.github/workflows/fork-ci.yaml Outdated Show resolved Hide resolved
if [ -z "${IS_BETA}" ]; then
echo "BRANCH_NAME=master" >> $GITHUB_ENV
else
echo "BRANCH_NAME="$DOCKER_TAG" >> $GITHUB_ENV
Copy link
Member

Choose a reason for hiding this comment

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

BRANCH_NAME here will be in format 'v25.01.x'? It looks it take the tag as is

Copy link
Collaborator

Choose a reason for hiding this comment

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

In SR-IOV we use the format like "network-operator-24.1.0-beta.3".

Copy link
Member

Choose a reason for hiding this comment

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

The PR is going to be opened on Network-Operator repo.
The branch there should be master for beta, and eg. v24.10.x for rc and GA

.github/workflows/fork-ci.yaml Show resolved Hide resolved
git config user.email [email protected]

git checkout -b feature/update-sriov-tags-to-$DOCKER_TAG
sed -Ei "s/(version: )network-operator-.+/\\1$DOCKER_TAG/g" hack/release.yaml
Copy link
Member

Choose a reason for hiding this comment

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

There are more changes here needed according to existing "draft-image-builder"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed now


git checkout -b feature/update-sriov-tags-to-$DOCKER_TAG
yq -i e '.SriovNetworkOperator.repository |= "${{ env.DOCKER_REGISTRY }}"' hack/release.yaml
yq -i e '.SriovNetworkOperator.version |= "${{ env.DOCKER_TAG }}"' hack/release.yaml
Copy link
Member

@rollandf rollandf Dec 25, 2024

Choose a reason for hiding this comment

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

Some steps are different from current draft-image-builder.jenkinsfile

  • Need to sync the helm chart
  • When is the Network Operator image built and release.yaml updated with it?
  • When is the Chart.yaml updated?
  • All GA handling (different repositories)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some steps are different from current draft-image-builder.jenkinsfile

  • Need to sync the helm chart
    done
  • When is the Network Operator image built and release.yaml updated with it?
    it will be done in network operator action
  • When is the Chart.yaml updated?
    @rollandf could you please add more details regarding this comment?
  • All GA handling (different repositories)
    done

Copy link
Member

Choose a reason for hiding this comment

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

Regarding chart.yaml, this is waht we have in draft-image-builder.jenkinsfile

                def chart_file = './deployment/network-operator/Chart.yaml'
                def ChartData = readYaml file: "${chart_file}"

                ChartData.version = "${(version.substring(1))}"
                ChartData.appVersion = "${version}"

                writeYaml file: "${chart_file}", data: ChartData, overwrite: true

Copy link
Member

Choose a reason for hiding this comment

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

@e0ne I am OK to merge this and iterate on follow ups

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Regarding chart.yaml, this is waht we have in draft-image-builder.jenkinsfile

it should be fixed in package-and-push-helm-chart job or some other which merges code into the repo

@e0ne e0ne merged commit 5985e27 into Mellanox:master Jan 2, 2025
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants