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

travis - create manageiq/log manually #4502

Merged
merged 1 commit into from Aug 21, 2018
Merged

travis - create manageiq/log manually #4502

merged 1 commit into from Aug 21, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Aug 21, 2018

Since ManageIQ/manageiq#17663, there is no manageiq/log directory by default.

That breaks travis with

Errno::ENOENT: No such file or directory @ rb_sysopen - /home/travis/build/ManageIQ/manageiq-ui-classic/spec/manageiq/log/audit.log
/home/travis/build/ManageIQ/manageiq-ui-classic/vendor/bundle/bundler/gems/manageiq-gems-pending-f74f387d9e36/lib/gems/pending/util/vmdb-logger.rb:11:in `initialize'

Creating the log file.

Closes #4501

@kbrock I took the liberty of replicating your PR with the log creation happening before setup_js_env.sh which seems to need it :)

log is no longer present
per https://github.com/ManageIQ/manageiq/pull/17663/files

Manually create it

This needs to happen before the last step of `bin/setup` because that part resets tests
@miq-bot
Copy link
Member

miq-bot commented Aug 21, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/2840e7ccd483a23b5a2987c278a2962b4b28631c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@himdel
Copy link
Contributor Author

himdel commented Aug 21, 2018

Moved to bin/setup so that this happens before manageiq_plugin_update.

@kbrock Do you think maybe this should live in manageiq/lib/manageiq/environment.rb after all?
(Assuming all plugins call manageiq_plugin_update.)

@mzazrivec mzazrivec self-assigned this Aug 21, 2018
@mzazrivec mzazrivec added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 21, 2018
@mzazrivec mzazrivec merged commit 224c6ec into ManageIQ:master Aug 21, 2018
@himdel himdel deleted the fix-travis-log branch August 21, 2018 09:01
@kbrock
Copy link
Member

kbrock commented Aug 21, 2018

Per @himdel suggestion - I made changes Thanks so much for your feedback @cben

I'm hoping this fix in one place will fix the problem

ManageIQ/manageiq#17886

@himdel
Copy link
Contributor Author

himdel commented Aug 21, 2018

I'll undo this change here once that one is merged, thanks! :)

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

Successfully merging this pull request may close these issues.

None yet

4 participants