Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Jul 6, 2017

No description provided.

@boegel boegel added this to the 3.3.1 milestone Jul 6, 2017
@boegel
Copy link
Member Author

boegel commented Jul 6, 2017

Some broken tests went unnoticed because not all the tests for the GitHub integration functionality are run for pull requests, due to the lack of an available GitHub token (it's not provided for PRs to avoid it gets leaked via a rogue PR).

main_title = ', '.join(names_and_versions[:3] + ['...'])

title = "{%s}[%s] %s" % (class_label, toolchain_label, main_title)
elif commit_msg:
Copy link
Member

Choose a reason for hiding this comment

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

Are file_info['ecs'] and all(file_info['new']) and not deleted_paths and commit_msg mutually exclusive? I guess they aren't, but if they are, I'd suggest to swap the order of the ifs, since evaluating file_info['ecs'] and all(file_info['new']) and not deleted_paths is way more expensive than commit_msg. Nitpicking, I know.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, you may have a good point there, although efficiency isn't a real concern here.

If a custom commit message is specified, that should determine the PR title, rather than an auto-guessed title.

I'll flip them around, thanks for the suggestion!

@boegel
Copy link
Member Author

boegel commented Jul 6, 2017

@damianam all good now?

])
write_file(toy_ec, toy_ec_txt)

# verify whether copied easyconfig gets cleaned up
Copy link
Member

Choose a reason for hiding this comment

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

Is this comment accurate? I don't think so

Copy link
Member Author

Choose a reason for hiding this comment

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

it sort of is, but the actual check is deeper down...


self.assertEqual([len(x) for x in res.values()], [1, 1, 1])

self.assertTrue(isinstance(res['ecs'][0], EasyConfig))
Copy link
Member

Choose a reason for hiding this comment

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

This is checked for in line 1815 already. Why do the same kind of check again?

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, sure, I'll drop it

@damianam
Copy link
Member

damianam commented Jul 6, 2017

lgtm now. Going in after travis is done.

@damianam damianam merged commit afd40c6 into easybuilders:develop Jul 6, 2017
@boegel boegel deleted the new_pr_fixes branch July 6, 2017 16:19
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.

2 participants