Skip to content

2022 05 13 fuzzy path#245

Merged
tomrittervg merged 6 commits intomasterfrom
2022-05-13-fuzzy-path
May 24, 2022
Merged

2022 05 13 fuzzy path#245
tomrittervg merged 6 commits intomasterfrom
2022-05-13-fuzzy-path

Conversation

@tomrittervg
Copy link
Collaborator

No description provided.

While developing a new test, it did not fail even
though no job was created. I realized thast the check_job
function was not asserting that it checked anything, only
that if it found something to check, that it was correct.

This adds a check that it did find one, and only one, thing
to check.  Fortunately all tests were working and adding this
check did not cause any failures.
@tomrittervg tomrittervg requested a review from bayounetta May 24, 2022 11:33
@updatebot-ci

This comment was marked as resolved.

@tomrittervg tomrittervg force-pushed the 2022-05-13-fuzzy-path branch from 3062f85 to 53b7d91 Compare May 24, 2022 14:35
@updatebot-ci

This comment was marked as outdated.

1 similar comment
@updatebot-ci

This comment was marked as outdated.

@updatebot-ci

This comment was marked as outdated.

@updatebot-ci

This comment was marked as outdated.

We relied on undefined behavior by not being prefix-free when
defining command lookups.  That is to say you could have two
commands './mach vendor foo' and './mach vendor' and the only
thing that routed './mach vendor foo banana' to the first one
was that it was found first when iterating through the dict
keys.

But that ordering is undefined behavior and it finally caught
up with us and started causing intermittent failures.  So
switch it to an OrderedDict, so it is defined behavior.
@tomrittervg
Copy link
Collaborator Author

Okay, debugged the intermittent failure and attached another commit for it.

@tomrittervg tomrittervg merged commit 5ea77bf into master May 24, 2022
@tomrittervg tomrittervg deleted the 2022-05-13-fuzzy-path branch May 24, 2022 16:26
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