Skip to content

Conversation

sarahmarshy
Copy link
Contributor

@sarahmarshy sarahmarshy commented Nov 4, 2016

Description

Allow command line filtering of targets and examples for both compile and export tests.

Status

READY

Todos

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

I think there's one little issue, let me know if you think the same.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure this needs to be a set intersection instead of an OR since both are valid filters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about it, but basically:

example['targets'] can be the empty set, so there would be no intersection :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Same thang here, set intersection please!

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

Caught one last thing

Copy link
Contributor

Choose a reason for hiding this comment

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

You've added example here but you're not using it at all. Can you add the continue step in the loop here as well? The do_versionning function will need to be updated in examples.py as well.

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

One last thing (for real this time)!

Copy link
Contributor

Choose a reason for hiding this comment

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

Lil typo here: examples['name'] should be example['name']

@sarahmarshy sarahmarshy force-pushed the examples-test-filters branch from 1d85a2b to dc8a9bb Compare November 4, 2016 23:06
Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

Hooray! Looks good to me!

@sg-
Copy link
Contributor

sg- commented Nov 7, 2016

@sarahmarshy can you resolve the conflicts

Any testing needed?

@sarahmarshy sarahmarshy force-pushed the examples-test-filters branch from dc8a9bb to 4bfd73a Compare November 7, 2016 17:11
@bridadan
Copy link
Contributor

bridadan commented Nov 7, 2016

@sg- We'll run it through PR testing to make sure the changes don't affect example building.

/morph test

@mbed-bot
Copy link

mbed-bot commented Nov 7, 2016

Result: ABORTED

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1019

Build failed!

@bridadan
Copy link
Contributor

bridadan commented Nov 7, 2016

I found an issue with some of the filters in this PR, I went ahead and canceled testing on this PR to allow some other ones through and to get this restarted.

/morph test

@bridadan
Copy link
Contributor

bridadan commented Nov 7, 2016

There seems to be some other deeper issues with the filtering that I'm able to reproduce. I need to investigate this tomorrow even if the CI says it's ok before this is merged.

@mbed-bot
Copy link

mbed-bot commented Nov 8, 2016

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1022

All builds and test passed!

@bridadan bridadan force-pushed the examples-test-filters branch from 2173069 to 2fe1373 Compare November 8, 2016 18:38
@bridadan
Copy link
Contributor

bridadan commented Nov 8, 2016

/morph test

@mbed-bot
Copy link

mbed-bot commented Nov 8, 2016

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1027

All builds and test passed!

@sg- sg- merged commit fa88776 into ARMmbed:master Nov 8, 2016
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.

5 participants