Skip to content

AZP/RELEASE: Add ARM release - Part #3 - #8896

Merged
yosefe merged 1 commit into
openucx:masterfrom
Alexey-Rivkin:topic/arm_release-part3
May 8, 2023
Merged

yosefe merged 1 commit into
openucx:masterfrom
Alexey-Rivkin:topic/arm_release-part3

Conversation

@Alexey-Rivkin

Copy link
Copy Markdown
Contributor

What
Build and release ARM-based artifacts.
Part 3: Build JUCX on ARM

Why ?
#8762

@Alexey-Rivkin Alexey-Rivkin added the WIP-DNM Work in progress / Do not review label Mar 23, 2023
@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch from 9fad3d1 to 8ea471e Compare April 9, 2023 16:00
@Alexey-Rivkin Alexey-Rivkin removed the WIP-DNM Work in progress / Do not review label Apr 10, 2023
artemry-nv
artemry-nv previously approved these changes Apr 11, 2023
@Alexey-Rivkin
Alexey-Rivkin requested a review from yosefe April 17, 2023 10:30
Comment thread buildlib/azure-pipelines-release.yml Outdated

- template: jucx/jucx-build.yml
parameters:
name: amd64 # x86_64

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove comment?

Comment thread buildlib/azure-pipelines-release.yml Outdated

- template: jucx/jucx-build.yml
parameters:
name: aarch64 # ARM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove comment?

Comment thread buildlib/azure-pipelines-release.yml Resolved
Comment thread buildlib/jucx/jucx-build.yml Outdated
@@ -0,0 +1,41 @@
parameters:
name:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe this parameter should be called "arch" ?

Comment thread buildlib/jucx/jucx-build.yml Outdated
inputs:
pathToPublish: '$(Build.Repository.LocalPath)/bindings/java/resources'
artifactName: libjucx_${{ parameters.name }}.so
displayName: Midterm artifact push

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

name seems weird / vague

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Does the "interim artifact" sounds better?
As opposed to the final artifact.

Comment thread buildlib/jucx/jucx-publish.yml Resolved
Comment thread buildlib/jucx/jucx-test.yml Resolved
Comment thread buildlib/azure-pipelines-release.yml Resolved
@yosefe

yosefe commented Apr 17, 2023

Copy link
Copy Markdown
Member

seems release pipeline is not triggered for some reason..

artemry-nv
artemry-nv previously approved these changes Apr 21, 2023
@yosefe

yosefe commented Apr 24, 2023

Copy link
Copy Markdown
Member

Review build output:

  1. https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=62020&view=logs&j=844d4495-7f74-50a6-a5ff-b6399198f45e&t=d388073e-d379-5e0f-00ab-691c2cfbd20b
    cp /__w/3/we/need/to/go/deeper/bindings/java/resources/libjucx_.so/libjucx_.so /__w/3/we/need/to/go/deeper/bindings/java/src/main/native/.libs/

  2. https://dev.azure.com/ucfconsort/ucx/_build/results?buildId=62020&view=logs&j=844d4495-7f74-50a6-a5ff-b6399198f45e&t=d8976f50-b093-56c7-408d-7ca9eba13594
    /__w/_temp/5eee90e0-4c30-411c-b7ba-3f4d15385fbe.sh: line 11: publicKey.secureFilePath: command not found cp: missing destination file operand after '/__w/3/we/need/to/go/deeper/bindings/java/src/main/native/build-java/gpg/pubring.gpg'

  3. In the end of build step, print the contents on the created JAR file jar tf jar-file

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch from b30aac4 to 41f3eb0 Compare April 24, 2023 17:24
@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

Comment thread buildlib/jucx/jucx-publish.yml Outdated
Comment on lines +90 to +91
set -x
jar tf jucx*.jar

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we do it also after the build steps?

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch 7 times, most recently from 0ba6258 to 1cd22b3 Compare April 25, 2023 14:53
@Alexey-Rivkin
Alexey-Rivkin marked this pull request as draft April 25, 2023 14:53
@Alexey-Rivkin Alexey-Rivkin added the WIP-DNM Work in progress / Do not review label Apr 25, 2023
@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch 3 times, most recently from b0ded33 to 5815c41 Compare April 27, 2023 11:49
@yosefe

yosefe commented Apr 27, 2023

Copy link
Copy Markdown
Member

@Al3xR01 seems libjucx.so is not present in the JAR file?

@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

@Al3xR01 seems libjucx.so is not present in the JAR file?

That's the reason for the 'DNM' label. Looking into it.

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch 5 times, most recently from 46962fb to b7c6388 Compare May 3, 2023 09:44
@Alexey-Rivkin

Copy link
Copy Markdown
Contributor Author

Tested the publish stage manually, as it's skipped on PR:
make -C bindings/java/src/main/native/ publish-release JUCX_VERSION=1.15.0

Output:

jar tf ./build-java/jucx-1.15.0.jar
...
libjucx_amd64.so
libjucx_aarch64.so

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch 2 times, most recently from b02e8c9 to 0da6d8a Compare May 3, 2023 15:31
@Alexey-Rivkin Alexey-Rivkin removed the WIP-DNM Work in progress / Do not review label May 3, 2023
$(JUCX_GENERATED_H_FILES): $(STAMP_FILE)

# Return CPU architecure in Java format
arch = @host_cpu@

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't it be target cpu?


# Return CPU architecure in Java format
arch = @host_cpu@
arch = $(if $(filter x86_64,$(host_cpu)),amd64,$(host_cpu))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe unite line 52 and 53?


# Compile Java source code and pack to jar
rename_libjucx:
cp .libs/libjucx.so .libs/libjucx_$(arch).so

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we use some template var instead of ".libs"?

cp .libs/libjucx.so .libs/libjucx_$(arch).so

$(jarfile): libjucx.la
$(MAKE) rename_libjucx

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

seems weird to invoke make command like this,
it should be like this:

arch = ...
libjucx = $(objdir)/libjucx_$(arch).so

...

$(libjucx): libjucx.la
    cp $(objdir)/libjucx.so $(libjucx)

$(jarfile): $(libjucx)
    $(MVNCMD) package -DskipTests

Comment thread buildlib/azure-pipelines-release.yml Outdated
Comment on lines +126 to +128
target: publish-release
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
target: package

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why needed - we also check Build.Reason as a condition for "Publish JUCX jar to maven central" task


# Add multi-platform support (CI only)
repack-jar: $(jarfile)
rm -rf $(java_build_dir)/repack_dir

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

$(RM) -r

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch 7 times, most recently from f4c0e4d to 591f71c Compare May 4, 2023 20:55
Comment thread buildlib/jucx/jucx-publish.yml Resolved
@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch from 4683b4a to 3d4f2e8 Compare May 5, 2023 12:40

@yosefe yosefe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pls squash

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch from 3d4f2e8 to c2f108f Compare May 7, 2023 08:07
@yosefe

yosefe commented May 7, 2023

Copy link
Copy Markdown
Member

@Alexey-Rivkin pls fix the commit title

@Alexey-Rivkin
Alexey-Rivkin force-pushed the topic/arm_release-part3 branch from c2f108f to 226fc81 Compare May 7, 2023 09:04
@yosefe
yosefe merged commit 27123ca into openucx:master May 8, 2023
@yosefe

yosefe commented May 8, 2023

Copy link
Copy Markdown
Member

@Alexey-Rivkin can you pls port to v1.15.x branch?

@Alexey-Rivkin
Alexey-Rivkin deleted the topic/arm_release-part3 branch August 28, 2023 12:20
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