Closed Bug 977618 Opened 10 years ago Closed 10 years ago

make test-integration builds profile every time

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED INVALID
tracking-b2g backlog

People

(Reporter: daleharvey, Assigned: daleharvey)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 file)

even when I only change the tests
Assignee: nobody → dale
Attachment #8383124 - Flags: review?(felash)
blocking-b2g: --- → backlog
Whiteboard: [systemsfe]
Dale, tell me if I'm wrong here, but ideally you'd want "APP=xxx make test-integration" to not run the profile generation steps. I think it used to be like this and this regressed with the recent build changes, but maybe we could ask Yuren to fix this instead of adding yet another env variable.

What do you think?

Obviously the real long-term goal would be to not renegerate the profile if we don't change any code.
Having make test-integration build the whole profile is on purpose, I actually regressed it recently by having it only build the apps profile and it broke the tests which have undocumented interdependencies (mostly every test at least depends on the system app)

I will post what I think is the correct solution to the mailing list, I dont think fixing APP is what we should be doing, its all fundamentally messy, and in the meantime to having a proper fix it would be nice to have this noprofile option
https://bugzilla.mozilla.org/show_bug.cgi?id=978697 is what I think is the correct solution
Comment on attachment 8383124 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/16718

Hey Yuren,

I don't feel comfortable reviewing this, maybe you'll have good ideas to share.
Attachment #8383124 - Flags: review?(felash) → review?(yurenju.mozilla)
Dale, you can use below commands to run integration test without building profile everytime:

PROFILE_FOLDER=profile-test make (only run it in first time)
make test-integration-test
Awesome, as this was a hack, happy its not needed + documented

However I want to make a note, we have not trivial problem of having too many build entry points into the same thing, bin/test-integration / make test-integration / tests/travis/script, they are often incompatible, take different arguments and different syntax, its bad API design and its confusing developers. 

running the integration tests should require developers to clone gaia and |make test-integration|, if we have different options to run the tests they should be different options to make test-integration
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: