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

Fix to do require for required files straightforward, per files #808

Merged

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Feb 17, 2016

  • Currently, all required files are loaded by lib/fluent/load.rb even for tests
    • This file creates the implicit order of files to be loaded
    • There's no explicit dependency definition, and there are many circular dependencies
    • This situation is totally broken
  • Without this change, we can't run tests by bundle exec rake test TEST=test/file.rb
    • Running whole tests consumes long time, and it's not acceptable

This change is to make straightforward dependency from all files to others.
We can load any file in fluentd source code, make clean dependencies, and
also can run each files itself to test it.

For v0.12 branch,

  • I don't merge Windows specific patches
  • I don't merge v0.14 specific patches

* Currently, all required files are loaded by `lib/fluent/load.rb` even for tests
  * This file creates the implicit order of files to be loaded
  * There's no explicit dependency definition, and there are many circular dependencies
  * This situation is totally broken
* Without this change, we can't run tests by `bundle exec rake test TEST=test/file.rb`
  * Running whole tests consumes long time, and it's not acceptable

This change is to make straightforward dependency from all files to others.
We can load any file in fluentd source code, make clean dependencies, and
also can run each files itself to test it.
@okkez
Copy link
Contributor Author

okkez commented Feb 17, 2016

Test on TravisCI is failed but this failure does not seem to be related to this PR.

@repeatedly
Copy link
Member

@tagomoris Can we merge this PR?

repeatedly added a commit that referenced this pull request Mar 2, 2016
Fix to do `require` for required files straightforward, per files
@repeatedly repeatedly merged commit 8484c77 into fluent:v0.12 Mar 2, 2016
@repeatedly
Copy link
Member

Thanks!

@okkez okkez deleted the fix-dependencies-between-files-v0.12 branch April 16, 2016 08:30
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.

3 participants