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

added the use of handlers #299

Merged
merged 4 commits into from
Mar 29, 2018
Merged

added the use of handlers #299

merged 4 commits into from
Mar 29, 2018

Conversation

aoyawale
Copy link
Contributor

the remaining question is which task should call the handlers.

@aoyawale aoyawale changed the title Jlozadad handlers added the use of handlers Mar 11, 2018
when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == "7") or
(ansible_distribution == "RedHat" and ansible_distribution_major_version == "7") or
(ansible_distribution == "Debian" and ansible_distribution_major_version == "8") or
ansible_os_family == "Ubuntu" and ansible_lsb.major_release|int >= 15.04
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use the ansible_service_mgr == 'systemd' to check which init system is used, because an administrator can install another init even on a recent system (sysvinit on Debian Jessie LXC container is common)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dang. I miss that. Alright let me update it

@aoyawale aoyawale merged commit 7b75bec into ANXS:master Mar 29, 2018
@jrgoldfinemiddleton
Copy link

Not sure if this the correct place to ask this, but it appears that before this was merged into ANXS:master, this pull request's final CI build passed. Is there a way to trigger another build after approval but just before merging to make sure the build is still passing? When this pull request was finally merged the CI builds failed. Just seems like it would be good to verify that the pull request still works with the current tip of ANXS:master.

Maybe there's something I'm missing. Kind of new to this whole CI process with pull requests.

@aoyawale
Copy link
Contributor Author

what i noticed is that mostly the builds fail because the changes are rhel based and from what i noticed the ci auto builds are debian based. we can open a new issue and discuss it more.

@jrgoldfinemiddleton
Copy link

When you say the CI auto builds are Debian-based, do you just mean that the machines running the Docker containers are Debian-based? The Docker containers themselves appear to be a mix of Debian- and RHEL-based. The particular distro build that's failing is Ubuntu 14.04.

I'm still trying to understand whether pull request branches are building against the same Docker images as the master branch. Something changed between the build in your pull request and the build after your pull request was merged, which I would attribute to recent merges into the master branch. If there was a way to rebase the PR onto the live tip of master and run a build, I think that build would have failed as well. Would have been good to know before merging.

@aoyawale
Copy link
Contributor Author

aoyawale commented Apr 1, 2018

i apologize for that. i'll do eeper investigation next time but, when i merged i did not see it failed and had completedly successfully.

@jrgoldfinemiddleton
Copy link

No worries. I didn't mean to criticize. Just simply trying to understand what happened. When I checked this pull request, I saw that its last build succeeded.

@aoyawale
Copy link
Contributor Author

aoyawale commented Apr 1, 2018

no problem. i opened an issue to investigate the failures.

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