Skip to content

ci able to override how example runs#7865

Closed
shuoli84 wants to merge 2 commits intobevyengine:mainfrom
shuoli84:add_feature_to_ci_run_examples
Closed

ci able to override how example runs#7865
shuoli84 wants to merge 2 commits intobevyengine:mainfrom
shuoli84:add_feature_to_ci_run_examples

Conversation

@shuoli84
Copy link
Contributor

@shuoli84 shuoli84 commented Mar 2, 2023

Objective

  • provide extra features to example

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 2, 2023

This pr is a follow up for #7825 , will merge after #7825 merged.

@alice-i-cecile alice-i-cecile requested a review from mockersf March 2, 2023 12:41
@shuoli84 shuoli84 force-pushed the add_feature_to_ci_run_examples branch from b1e4b05 to 41cda88 Compare March 2, 2023 13:13
@alice-i-cecile alice-i-cecile added A-Build-System Related to build systems or continuous integration C-Testing A change that impacts how we test Bevy or how users test their apps labels Mar 2, 2023
@shuoli84 shuoli84 marked this pull request as ready for review March 2, 2023 13:14
@alice-i-cecile
Copy link
Member

#7825 is now merged :) This looks to test the failing debug_asset_server example in CI?

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 2, 2023

#7825 is now merged :) This looks to test the failing debug_asset_server example in CI?

Yap, this runs the example "load_gltf" with "debug_asset_server" feature enabled in existing "run-examples" flow. Now it checks whether there is a example_name.sh file, if yes, then just launch that script, otherwise fallback to standard cargo run

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 2, 2023

Hmm, it seems there are multiple places with run-examples, and the running argument is kinda different...

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 2, 2023

@alice-i-cecile any idea? Is this the right way to go? I can fix the above issue by passing extra features through environment variables. hmm. Or is "adding extra feature for run-examples" a good thing?

@alice-i-cecile
Copy link
Member

I'm not personally confident on the right design here: that's why I requested review from our CI ninja @mockersf ;)

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 3, 2023

ping

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 7, 2023

ping?

Copy link
Member

@mockersf mockersf left a comment

Choose a reason for hiding this comment

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

This code is getting complex enough that we should move it to a rust script rather than keep it as a CI script.

It could be quite a bit more complex, @shuoli84 do you think you can do it?

@shuoli84
Copy link
Contributor Author

shuoli84 commented Mar 8, 2023

This code is getting complex enough that we should move it to a rust script rather than keep it as a CI script.

It could be quite a bit more complex, @shuoli84 do you think you can do it?

Not quite sure what do you mean by "rust script". Is there an example?

@alice-i-cecile
Copy link
Member

The CI script in the tools folder is a good example of this :)

@alice-i-cecile
Copy link
Member

@shuoli84 are you comfortable tackling this? If not, I'm happy to add Adopt-Me to this PR and others can help pick up this work.

@shuoli84
Copy link
Contributor Author

@shuoli84 are you comfortable tackling this? If not, I'm happy to add Adopt-Me to this PR and others can help pick up this work.

Hi alice, I'm happy to either transfer this to other or just close it. Sorry for the late reply..

@alice-i-cecile
Copy link
Member

No worries, thanks for the reply. Closing this out for now but we can redo it as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Build-System Related to build systems or continuous integration C-Testing A change that impacts how we test Bevy or how users test their apps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants