-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create symlink for all sub examples which has mbed-os.lib #14587
Conversation
@saheerb, thank you for your changes. |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tools/test/examples/examples_lib.py
Outdated
@@ -493,7 +493,17 @@ def symlink_mbedos(config, path, exp_filter): | |||
for example in config['examples']: | |||
if example['name'] not in exp_filter: | |||
continue | |||
for name in get_sub_examples_list(example): | |||
|
|||
# it's not important that all sub examples are defined in exmaples.json to build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# it's not important that all sub examples are defined in exmaples.json to build | |
# it's not important that all sub examples are defined in examples.json to build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont understand the comment, what is not important and how this is related what is below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the comment to make the comment in source code simple. The actual reason for change is mentioned in PR description.
Pull request has been modified.
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ❌ FAILEDBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ✔️ SUCCESSBuild Number: 4 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
This is a CI only change. Should have no impact to mbed-os users.
Current CI workflow is:
The symlink creation works only if the sub applications are specified in examples.json. If for whatever reason (experimental, no CI ready etc) a sub examples is not present in example.json, mbed deploy will fetch entire "mbed-os" directory which is obviously a waste of resource.
This PR resolves that by walking through the examples repo and creates symlink if mbed-os.lib is present.
Impact of changes
This is a CI only change. Should have no impact to mbed-os users.
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers
@jamesbeyond