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

[monorepo] add CI stage document for tests #4154

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Jan 10, 2025

  • When fusionEngineBuild completes, create a firestore document for the fusionTests CI stage tasks.
  • When receiving a status update for a test check run, update the respective document.

This PR does not yet alter the MQ guard behavior. I'd like to debug the document behavior first.

Progress towards flutter/flutter#159898

@yjbanov yjbanov requested a review from jtmcdole January 10, 2025 22:26
@yjbanov yjbanov changed the title [monorepo] add CI stage for tests [monorepo] add CI stage document for tests Jan 10, 2025
Comment on lines 312 to 313
/// Check run update recorded successfully in the respective CI stage.
ok,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: maybe add:

/// It is OK to evaluate returned results for stage completeness

Comment on lines 320 to 321
/// The check run was found in the specified CI stage but the update failed.
failed,
Copy link
Contributor

Choose a reason for hiding this comment

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

Higher up:
log.info('$logCrumb: staging document not found for $transaction');
result: StagingConclusionResult.failed,

So the check run wasn't found either; but there was an internal error. Do we want that visibility here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the document wasn't found, how can we know whether the check run would be found in the doc or not?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming in a multi-staged world all documents are created and available? If so, lets note that somewhere so its clear "this is a failure because we expect the document to be there". Today that's not the case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Either that or we have another conclusion. The comment is "the check run was found" - it wasn't because we don't have the document.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, gotcha. Changed it to internalError and updated the docs.

Comment on lines 975 to 976
StagingConclusion stagingConclusion,
RepositorySlug slug,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need stagingConclusion if its "close successful"?

app_dart/lib/src/service/scheduler.dart Show resolved Hide resolved
@jtmcdole jtmcdole self-requested a review January 10, 2025 22:44
@yjbanov yjbanov added the autosubmit Merge PR when tree becomes green via auto submit App. label Jan 14, 2025
@jtmcdole
Copy link
Contributor

Still LGTM

@auto-submit auto-submit bot merged commit a810f09 into flutter:main Jan 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants