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

Maven project mock test + setuptools test buff (fix #331 #375) #356

Merged
merged 1 commit into from
Mar 16, 2016

Conversation

LukasSlouka
Copy link

No description provided.

self.base.sack = self.base.load_dnf_sack()
self.base.load_plugins()
self.base.load_project_from_url(
r"https://github.com/citerus/dddsample-core/archive/master.zip")
Copy link
Member

Choose a reason for hiding this comment

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

we should specify the commit hash from which is the zip from. Otherwise if the project is change in the upstream, our tests would fail.

Copy link
Author

Choose a reason for hiding this comment

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

Yes but there is yet another problem so it might change again.

@LukasSlouka
Copy link
Author

I updated plugin to remove artifacts that are most likely not available in mock_recover phase, so the build would not fail because of them. It may affect overall quality of the package, but that is something we can't solve. This version of test works allright locally but travis seems to have problem with evaluating xmvn macros in general (see travis build). @jsilhan do you have any ideas how to deal with this?


MOCK_ERR_DEP = re.compile(r"Error: No Package found for (.*)")

def mock_recover(self, log, spec):
Copy link
Member

Choose a reason for hiding this comment

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

If we fix #372 and you ensure that you always add into the BuildRequires the packages that exists (are in DNF sack) we don;t have to do this hack.

@jsilhan
Copy link
Member

jsilhan commented Feb 22, 2016

We have added rpm macros support (#285). Try to do it without RPM macro - it does not have to be packaged perfectly according to Fedora packaging policy now.

@LukasSlouka LukasSlouka force-pushed the master branch 7 times, most recently from bf397c1 to 0184950 Compare March 1, 2016 05:57
@LukasSlouka LukasSlouka changed the title Maven project mock test (fix #331) Maven project mock test + setuptools test buff (fix #331 #375) Mar 1, 2016
@LukasSlouka
Copy link
Author

Tests are passing + coverage of setuptools is now 100% (was 78%)

@@ -20,7 +20,7 @@ install:
before_script:
- docker run -i --privileged -d -v $HOME/build/$TRAVIS_REPO_SLUG:$HOME/build/$TRAVIS_REPO_SLUG --name test_fedora fedora:23 bash
- tito build --test --srpm && cp /tmp/tito/*.src.rpm .
- docker exec -i test_fedora bash -c "dnf install -y python-copr mock libsolv-devel make gcc gcc-c++ python3-dnf python-devel 'dnf-command(builddep)'; dnf builddep -y $HOME/build/$TRAVIS_REPO_SLUG/rpg.spec"
- docker exec -i test_fedora bash -c "dnf install -y python-copr mock libsolv-devel make maven-local xz-java gcc gcc-c++ python3-dnf python-devel 'dnf-command(builddep)'; dnf builddep -y $HOME/build/$TRAVIS_REPO_SLUG/rpg.spec"
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't be maven-local and xz-java Requires in %package plugin-maven inside rpg.spec?

Copy link
Author

Choose a reason for hiding this comment

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

Well those are needed for test to pass, not necessarily for plugin to function correctly. Although there could be discussion about maven-local because without it no maven project can be build using the plugin. Anyway I was not sure whether it should be part of the specfile or not.

@jsilhan
Copy link
Member

jsilhan commented Mar 1, 2016

38972ce merged, thanks

@jsilhan
Copy link
Member

jsilhan commented Mar 16, 2016

Merged, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants