Skip to content
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

Fix: Handle dialog promise rejection #32

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

deribaucourt
Copy link
Member

In integration tests in CI, the dialog promise is rejected at random time events. try/catch does not catch the error, it must actually be handled in the promise rejection handler.

In integration tests in CI, the dialog promise is rejected at random
time events. try/catch does not catch the error, it must actually
be handled in the promise rejection handler.
The tricky dirname util doesn't give the parent directory when the
argument is the current directory ('.'). This resulted in infinite
loops if the current directory happened to be scanned.
Could happen with partially incorrect configurations.
The default timeout of 2s might not be enough to delete the build
directories with bitabke parsing caches.

I used a longer one for the commandWrapper tests because it updates
the configurations which has to wait for three promises.
@moh60 moh60 requested a review from idillon-sfl December 11, 2023 12:38
@deribaucourt deribaucourt merged commit 29f5e2d into yoctoproject:staging Dec 12, 2023
1 check passed
@deribaucourt deribaucourt deleted the fix-sanity-error branch December 12, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants