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

Handle non-EL5 code #441

Open
stdweird opened this issue Mar 8, 2015 · 17 comments
Open

Handle non-EL5 code #441

stdweird opened this issue Mar 8, 2015 · 17 comments
Assignees

Comments

@stdweird
Copy link
Member

stdweird commented Mar 8, 2015

There are a number of components that won't work on EL5 due to perl 5.10-isms

  • ncm-ceph
  • ncm-icinga
  • ncm-opennebula
  • ncm-systemd

It makes no sense for these to ever run on EL5, but the tests will fail.
We need a way to be able to exclude them during EL5 tests (but then the release process can't be performed on EL5)

@stdweird stdweird added this to the 15.4 milestone Mar 8, 2015
@jrha
Copy link
Member

jrha commented Mar 25, 2015

The release process is currently run on EL7, it will probably always be run on the latest OS we support, so I don't see this as an issue.

@jrha
Copy link
Member

jrha commented Mar 25, 2015

@stdweird - As the tests run on EL5 now, are we in a position where this is "done"?

@stdweird
Copy link
Member Author

@jrha the tests don't run on EL5.
i was sort of hoping that the release process ran the build_all_repos on at least the EL5/6/7 to verify this.

@jrha
Copy link
Member

jrha commented Mar 25, 2015

Ok, my mistake

@jouvin
Copy link
Contributor

jouvin commented May 9, 2015

Does something need to be done for this issue... Conversation is a bit cryptic!

@stdweird
Copy link
Member Author

stdweird commented May 9, 2015

@jouvin mvn test runs tests for all components, we need a way to exclude certain tests because they will fail due to the perl version shipped by the OS (and there's no point in making them run on said OS).

maybe there's a way to exclude certain components from the module list (or have a minimal modules list that runs everywhere and test more modules on e.g. EL6 and EL7)?

i modified the build_all_repos script to do filter them out, but that's not really clean
https://github.com/quattor/release/pull/88/files#diff-a6c7fe45e58347ad6110fa660ecdcb8dR58
with this modification, i can test the 15.4 rcs on EL5, so this can be moved to later release if there's no easy/quick way to achieve this

@jouvin
Copy link
Contributor

jouvin commented May 9, 2015

Thanks. This was my understanding of the problem from the initial description but from the conversation it was not clear whether there was still an action to do... I'll try to think about how this could be done at the Maven level but this may be quite complex. Do you want only to exclude the test phase when Maven is run or do you want to make the configuration module list depending on the OS version (which may be trickier)?

@stdweird
Copy link
Member Author

stdweird commented May 9, 2015

exclude the test phase is fine, but i'm not sure what this means. (eg mvn package should also be possible, and ideally not make rpms for the non-tested modules)
but i'll be happy with anything that means not editing the pom.xml 😄

@jouvin
Copy link
Contributor

jouvin commented May 9, 2015

As for the tests in build tools repo, we can probably make the tests for some components conditional, based on a variable reflecting the os version... I have to think more about it...

@jrha
Copy link
Member

jrha commented May 13, 2015

@stdweird has done a lot to solve this issue, how much is left to be done?

@stdweird
Copy link
Member Author

to be clear, i worked around the issue, not solving anything (but we can run the tests on EL5)

@jrha
Copy link
Member

jrha commented May 13, 2015

Bump it, or close it?

@stdweird stdweird modified the milestones: 15.6, 15.4 May 13, 2015
@jrha jrha modified the milestones: 15.10, 15.8 Aug 12, 2015
@jrha
Copy link
Member

jrha commented Dec 3, 2015

@stdweird Bump it, or close it?

@stdweird stdweird modified the milestones: 16.4, 15.12 Dec 3, 2015
@jrha jrha removed this from the 16.4 milestone Dec 12, 2015
@ned21
Copy link
Contributor

ned21 commented Oct 7, 2016

I think we need to make the tests run on EL5 so can use them to make sure that components that are required on EL5 have not been broken by a regression. Tests for code known not to support older platforms will need to call that out via some Test::* trickery.

@ned21 ned21 added this to the 17.4 milestone Oct 7, 2016
@stdweird
Copy link
Member Author

See example commit to exclude a non-el5 component quattor/release@037a42b

@jouvin
Copy link
Contributor

jouvin commented Mar 21, 2017

Check if we could use a Maven activation property based on a file existence to disable building/testing of some components based on an OS version.

@jrha
Copy link
Member

jrha commented Mar 21, 2017

Discussed at March 2017 workshop, agreed to selectively switch the compile and test of affected components in Maven.

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

No branches or pull requests

4 participants