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 repository path lookup when custom Hatchet directory set #181

Merged
merged 2 commits into from
Jan 29, 2021

Conversation

edmorley
Copy link
Member

Previously if a custom Hatchet directory was defined in hatchet.json, passing a fixture name of the full repository name would not work.

Fixes #161.

Previously if a custom Hatchet `directory` was defined in `hatchet.json`,
passing a fixture name of the full repository name would not work.

Fixes #161.
@edmorley edmorley self-assigned this Jan 27, 2021
@@ -6,6 +6,10 @@
expect(@config.path_for_name("rails3_mri_193")).to(eq("repo_fixtures/repos/rails3/rails3_mri_193"))
end

it("config path for name with full repo name") do
Copy link
Contributor

Choose a reason for hiding this comment

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

Style nit. The rspec methods don't use parens it describe etc. It reads fine, not enough to block merging. But it did stand out.

We could consider adding a style linter like standard-rb/prettier/rubocop. Setting them up is always a pain though. The smaller the team that modifies the source, the less value linters provide IMHO.

Copy link
Member Author

@edmorley edmorley Jan 29, 2021

Choose a reason for hiding this comment

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

Ah I missed there were parens. I'd copied/pasted the block above, which also has parens.

I have rubocop + the rspec rubocop plugin enabled for the Python repo. I found the onboarding experience excellent with Rubocop compared to other linters -- I used the auto-generated "todos" file + autocorrect to get most the way there, then permanently disabled any cops that were still failing and didn't seem to add value.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh. Originally the tests were written in minitest. But the ecosystem around plugins (i.e. parallel testing) isn't as robust as rspec. I used a tool to auto-convert one test syntax to the other. I think it added the parens.

@schneems schneems merged commit c7170b2 into main Jan 29, 2021
@schneems schneems deleted the edmorley/repo-path branch January 29, 2021 15:17
@schneems
Copy link
Contributor

thanks!

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.

path_for_name doesn't take into account hatchet.json directory config
2 participants