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

EVG-16988 Update FindTestResults to handle new execution task logic #472

Merged
merged 6 commits into from
Sep 28, 2022

Conversation

bynn
Copy link
Contributor

@bynn bynn commented Sep 15, 2022

find test results will now do an aggregation for execution tasks and return previous executions as well

example
display_task {
et1: execution 0
et2: execution 0, 1
}

findTestResults(execution = 1) -> returns et1 exec0, et2 exec 1
findTestResults(execution = empty) -> returns et1 exec0, et2 exec 1 (latest for all exec tasks)
findTestResults(execution = 0) -> returns et1 exec0, et2 exec 0

This changes the return value for execution tasks so I'm not sure if this will break things on evergreen?

Copy link
Contributor

@julianedwards julianedwards left a comment

Choose a reason for hiding this comment

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

Looks good modulo the nit and some broken tests

@@ -712,8 +720,24 @@ func FindTestResults(ctx context.Context, env cedar.Environment, opts FindTestRe
return nil, errors.Wrap(err, "invalid find options")
}

var cur *mongo.Cursor
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit:

var (
        cur *mongo.Cursor
        err error
)

@bynn bynn merged commit 5c11f5d into evergreen-ci:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants