Skip to content

[SYSTEMML-1198] Ensure jar included in Python release artifact#362

Closed
gweidner wants to merge 2 commits intoapache:masterfrom
gweidner:python-1198
Closed

[SYSTEMML-1198] Ensure jar included in Python release artifact#362
gweidner wants to merge 2 commits intoapache:masterfrom
gweidner:python-1198

Conversation

@gweidner
Copy link
Member

Added condition in pre_setup.py to match different jar name for release build vs snapshot build.

@gweidner
Copy link
Member Author

A distribution build was tested two ways:

  1. Normal development/test build where jar name has -SNAPSHOT. Verified python artifact contained -SNAPSHOT jar.
  2. Simulated release build, i.e., removed SNAPSHOT in pom version name. Verified python artifact contained release jar (i.e., jar file without snapshot in name.

@gweidner
Copy link
Member Author

@gweidner
Copy link
Member Author

Here's link to RC1 artifact which had the issue found during validation testing:
https://dist.apache.org/repos/dist/dev/incubator/systemml/0.12.0-incubating-rc1/systemml-0.12.0-incubating-python.tgz

@gweidner
Copy link
Member Author

It looks like classloader.py might also need similar change:
Line 58: if fnmatch.fnmatch(file, 'systemml-*-incubating-SNAPSHOT.jar'):

Copy link
Contributor

@dusenberrymw dusenberrymw left a comment

Choose a reason for hiding this comment

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

Good find, @gweidner. Can you run a quick matrix example from the Python page in our docs just as a sanity check for the classloader? You'll need to build and then pip install the tar distribution. Nothing extensive, just a simple test.

@niketanpansare
Copy link
Contributor

Thanks @gweidner 👍

@gweidner
Copy link
Member Author

gweidner commented Jan 26, 2017

Thank you @dusenberrymw and @niketanpansare for reviewing! I'm attaching screen captures of examples run from Python Notebook where I've uninstalled/re-installed the previous/updated artifact and restarted kernel.

notebook_matrix

notebook_logistic

@gweidner
Copy link
Member Author

For reference in case I've mis-interpreted anything, here are examples of error messages observed before making both changes:

notebook_directory_error

notebook_loader_error

@bertholdreinwald
Copy link
Contributor

Hah. I noticed that too by analyzing the different artifacts on apache site and maven site. Sent out an email to dev list prior to reading that thread.

@asfgit asfgit closed this in 852ba1e Jan 26, 2017
gweidner added a commit to gweidner/systemml that referenced this pull request Jan 26, 2017
…se artifact

Added check for jar without 'snapshot' in file name to handle python artifact
from release build.

Closes apache#362.
j143-zz pushed a commit to j143-zz/systemml that referenced this pull request Nov 4, 2017
…se artifact

Added check for jar without 'snapshot' in file name to handle python artifact
from release build.

Closes apache#362.
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