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

[incubator-kie-issues#828] Create zip files for source code #1202

Merged
merged 6 commits into from
Jul 2, 2024

Conversation

cimbalek
Copy link
Contributor

@cimbalek cimbalek commented May 22, 2024

Add bash script that creates zip files with sources as required by Apache

This is being tested here (in queue):
https://ci-builds.apache.org/job/KIE/job/tools/job/zip-sources/

@cimbalek cimbalek requested a review from jstastny-cz May 22, 2024 15:45
@cimbalek cimbalek changed the title WIP: [incubator-kie-issues#828] Create zip files for source code [incubator-kie-issues#828] Create zip files for source code May 23, 2024
@cimbalek cimbalek requested a review from porcelli May 23, 2024 04:27

#Creating ZIP
pushd ${SOURCES_DIRECTORY_NAME}
ZIP_FILE_NAME="${REPO_NAME}-sources-${VERSION}.zip"
Copy link
Contributor

@baldimir baldimir May 23, 2024

Choose a reason for hiding this comment

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

Please create one zip file instead of a zip file for each repository. There should be one big zip file with all sources. Filename should be in the format of incubator-kie-${params.VERSION_NUMBER}.zip

Copy link
Contributor Author

@cimbalek cimbalek May 23, 2024

Choose a reason for hiding this comment

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

Snímka obrazovky 2024-05-22 163952

Please come to an agreement with Alex @porcelli

Copy link
Contributor

@baldimir baldimir May 23, 2024

Choose a reason for hiding this comment

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

That screenshot is from February. Please see the release document here https://docs.google.com/document/d/1t-08b970i9PMBy-TSM64x0RUH46pzwnIhEi-LVeL0lg/edit. (I edited the version template for the file name based on that in my previous comment). More specifically, please see "AUTOMATION D: Release candidate job on Jenkins", section with Artifacts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's from february but since I gathered the information noone notified me about changes in the requirements. There was very few information about it.
apache/incubator-kie-issues#828

Copy link
Member

Choose a reason for hiding this comment

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

it has to be one big zip file as mentioned by @baldimir

examples and quickstart are not part of the release. as also pointed out by @cimbalek please check the release document

Copy link
Contributor

Choose a reason for hiding this comment

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

It was presented multiple times on the KIE weekly call and also on the dev mailing list (the release procedure was discussed there).

Copy link
Member

Choose a reason for hiding this comment

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

btw: the list of repos is already on the jenkinsfile that I shared

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll adjust the list. I had the script long done already by the time jenkinsfile got to me.

Copy link
Contributor

@baldimir baldimir left a comment

Choose a reason for hiding this comment

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

Please see my comments.

@cimbalek cimbalek force-pushed the main branch 2 times, most recently from 6e6edf1 to ef3bd22 Compare May 23, 2024 08:12
@cimbalek
Copy link
Contributor Author

cimbalek commented May 23, 2024

@baldimir I have several questions based on the document you sent

  • In the document you linked I see 7 repositoritories. Should I remove the ones that are not mentioned there? (incubator-kie-kogito-serverless-operator, incubator-kie-optaplanner-quickstarts, incubator-kie-kogito-examples, incubator-kie-kogito-online)
    (already got answered in the meantime)
  • Automation D: There is list of container images. Should container-images-sources.zip match this list? And are container sources packed separately even needed given the kie-tools and kogito-images are already present in sources.zip? If the answer is yes, there will be a follow-up questions.

@baldimir
Copy link
Contributor

@cimbalek please see Alex's reply here #1202 (comment)

The sources zip should be 1 zip with those 7 repositories. I would say, just clone those repositories and zip them. I don't think there is any need to delete anything from those repositories.

@cimbalek
Copy link
Contributor Author

@baldimir I saw it. It got answered in the meantime. I understand it that packing container sources separately (or copying them into separate folder inside the zip) is not needed then.

@cimbalek cimbalek requested a review from baldimir May 23, 2024 11:33
@cimbalek cimbalek force-pushed the main branch 2 times, most recently from 086b284 to 88e568b Compare May 23, 2024 11:43
@cimbalek cimbalek changed the title [incubator-kie-issues#828] Create zip files for source code WIP: [incubator-kie-issues#828] Create zip files for source code May 29, 2024
@cimbalek cimbalek changed the title WIP: [incubator-kie-issues#828] Create zip files for source code [incubator-kie-issues#828] Create zip files for source code Jun 14, 2024
@cimbalek
Copy link
Contributor Author

cimbalek commented Jun 14, 2024

Should be ready now.

Summary of the whole PR now:

  • Added shell script for zipping sources
  • Added pipeline that uses the script ^^, signs resulting zip and uploads to SVN (signing and uploading is commented out as we are still waiting for credentials ATM)
  • Added job dsl to create a pipeline job that does the zipping. It'll be currently located in ...KIE/kogito/<branch>/tools/zip-and-upload-sources because of the limitations of the current framework and because of planned structural changes.

Seed jobs cascade[0][1] that generates zipping sources pipeline was successfully ran in my fork:

Actual pipeline run can be found here [2]. Resulting zip is available as archived artifacts [3]. Job failed because there was no signature to archive as the signing and uploading functionality is currently disabled.

Unless there are another change requests, I consider this PR ready from my side.

@cimbalek cimbalek requested review from rodrigonull and removed request for porcelli June 17, 2024 11:14
Copy link
Contributor

@jstastny-cz jstastny-cz left a comment

Choose a reason for hiding this comment

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

Wrong library reference and a few minor things.

.ci/jenkins/Jenkinsfile.zip.sources Outdated Show resolved Hide resolved
.ci/jenkins/Jenkinsfile.zip.sources Outdated Show resolved Hide resolved
tools/zip-sources-all.sh Outdated Show resolved Hide resolved
.ci/jenkins/Jenkinsfile.zip.sources Outdated Show resolved Hide resolved
@cimbalek
Copy link
Contributor Author

.ci/jenkins/dsl/jobs.groovy Outdated Show resolved Hide resolved
.ci/jenkins/dsl/jobs.groovy Outdated Show resolved Hide resolved
cimbalek and others added 2 commits July 2, 2024 13:04
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.

5 participants