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

Improve release_files_check script #10856

Merged
merged 4 commits into from
Nov 21, 2024
Merged

Conversation

see-quick
Copy link
Member

@see-quick see-quick commented Nov 20, 2024

Type of change

  • Enhancement / new feature
  • Refactoring

Description

This PR update our release_files_check.sh script, which is used to check if someone changes examples, installs or helm charts directories. As we improve the procedure in the KAO repository I also wanted to update here in the operator's repo. For context, here is KAO PR with such changes [1].

[1] - strimzi/kafka-access-operator#66

Checklist

  • Make sure all tests pass

Signed-off-by: see-quick <maros.orsak159@gmail.com>
@see-quick see-quick added this to the 0.45.0 milestone Nov 20, 2024
@see-quick see-quick requested a review from a team November 20, 2024 16:25
@see-quick see-quick self-assigned this Nov 20, 2024
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

I guess you should again test it to make sure it works.

echo "ERROR: Checksums of $DIRECTORY do not match."
echo " Expected: ${EXPECTED_CHECKSUM}"
echo " Actual: ${CHECKSUM}"
echo "If your changes to $DIRECTORY are related to a new release, please update the checksums. Otherwise, please change only the files in the $PACKAGING_DIR directory. "
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "If your changes to $DIRECTORY are related to a new release, please update the checksums. Otherwise, please change only the files in the $PACKAGING_DIR directory. "
echo "If your changes to $DIRECTORY are related to a new release, please update the checksums. Otherwise, please change only the files in the $PACKAGING_DIR directory."

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems to work

./.azure/scripts/release_files_check.sh
ERROR: Checksums of ./install do not match.
    Expected: 4e3bc4774c0d1803e895d42e22d792364b2f14c5  -
    Actual: 61a5673f862fb693f43dbda4303879929e6b2b04  -
If your changes to ./install are related to a new release, please update the checksums. Otherwise, please change only the files in the ./packaging/install directory. 
ERROR: Checksums of ./examples do not match.
    Expected: 2bbd52b17af9b7ef63731b4a0a81165b182d77e6  -
    Actual: 9ec480c825d9d58a92293a9995aff1986066071b  -
If your changes to ./examples are related to a new release, please update the checksums. Otherwise, please change only the files in the ./packaging/examples directory. 
ERROR: Checksums of ./helm-charts do not match.
    Expected: 50e2ee0738ebfd558fa2e35c189b3abb5e3a5663  -
    Actual: efcada371739e2823cacd18f545216f11673b589  -
If your changes to ./helm-charts are related to a new release, please update the checksums. Otherwise, please change only the files in the ./packaging/helm-charts directory. 
make: *** [Makefile:138: release_files_check] Error 3

##[error]Bash exited with code '2'.
Finishing: Check released files

Copy link
Member

Choose a reason for hiding this comment

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

Great, thanks.

see-quick and others added 3 commits November 21, 2024 09:41
Signed-off-by: see-quick <maros.orsak159@gmail.com>
Co-authored-by: Jakub Scholz <www@scholzj.com>
Signed-off-by: Maros Orsak <maros.orsak159@gmail.com>
Signed-off-by: see-quick <maros.orsak159@gmail.com>
@scholzj scholzj merged commit 0070b4c into strimzi:main Nov 21, 2024
13 checks passed
OwenCorrigan76 pushed a commit to OwenCorrigan76/strimzi-kafka-operator that referenced this pull request Dec 6, 2024
Signed-off-by: see-quick <maros.orsak159@gmail.com>
Signed-off-by: Maros Orsak <maros.orsak159@gmail.com>
Co-authored-by: Jakub Scholz <www@scholzj.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants