Make pull and build steps dirty if target arch changes. #450

Merged
merged 2 commits into from May 24, 2016

Conversation

Projects
None yet
3 participants
Member

kyrofa commented Apr 14, 2016

This PR fixes LP: #1564192 by tracking the target architecture and making the pull and build steps dirty if they change between runs. This was done in an extensible way so utilizing more project options in the state tracking would be easy.

Member

elopio commented Apr 14, 2016

lgtm.

snapcraft/pluginhandler.py
+ # step cares about, and we're comparing it to those same options in
+ # the current project. If they've changed, then this step is dirty
+ # and needs to run again.
+ if state.project_options != state.project_options_of_interest(
@sergiusens

sergiusens Apr 14, 2016

Collaborator

how about return state.project_options != state.project_options_of_interest(self._project_options) ?

@kyrofa

kyrofa Apr 14, 2016

Member

I previously had that on line 199 and I had to change it in order to add this section. I figured I'd just make them consistent and easy to expand.

@kyrofa

kyrofa Apr 14, 2016

Member

(Since returning right there will also return false if it's not true)

Collaborator

sergiusens commented Apr 14, 2016

lgtm, just a minor comment

Collaborator

sergiusens commented Apr 14, 2016

retest this please

Make pull and build steps dirty if target arch changes.
LP: #1564192

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
Collaborator

sergiusens commented May 23, 2016

@kyrofa update branch?

Member

kyrofa commented May 23, 2016

update branch?

@sergiusens done.

Member

elopio commented May 23, 2016

retest this please

@sergiusens sergiusens merged commit ab27f55 into snapcore:master May 24, 2016

4 checks passed

Examples tests Success
Details
autopkgtest Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.03%) to 96.268%
Details

@kyrofa kyrofa deleted the kyrofa:bugfix/1564192/track_target_arch branch Oct 14, 2016

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

Make pull and build steps dirty if target arch changes. (#450)
LP: #1564192

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment