Skip to content

Refactor integration tests#2337

Merged
ElePT merged 14 commits into
mainfrom
refactor/integration-tests
Jul 20, 2026
Merged

Refactor integration tests#2337
ElePT merged 14 commits into
mainfrom
refactor/integration-tests

Conversation

@korgan00

@korgan00 korgan00 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Split integration tests into two folders depending on the resources that the test access.
One folder for function executions and another folder with access to databases and storages.

Details and comments

@korgan00
korgan00 marked this pull request as ready for review July 14, 2026 16:24
@korgan00
korgan00 requested a review from a team as a code owner July 14, 2026 16:24
@ElePT
ElePT self-requested a review July 16, 2026 14:49

@ElePT ElePT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @korgan00, the PR overall makes sense to me, it's good to start separating the tests between those that need COS credentials and not, I just left a couple of suggestions/comments.

Comment thread tests/source_files/gold_path_function.py Outdated
filename_not_valid_path = os.path.join(resources_path, filename_not_valid)


class TestFilesExecution:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

both of these tests read and write COS files, so I'm pretty sure that they need storage access and belong in storage. Let me know if I'm mistaken.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are right but the test is about the execution, the COS is de indirect way to see if the execution gone right. I prioritized execution because is more specific.

@ElePT ElePT Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I thought the idea was to separate tests by what credentials they need to run, right? so if they need COS credentials it's different than if they don't, right @korgan00?

korgan00 and others added 3 commits July 17, 2026 12:45
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
# Conflicts:
#	tests/integration/execution/test_jobs_execution.py

@ElePT ElePT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

After an offline discussion with @korgan00, we agreed that the current test distribution is a good first approach to the refactor. It could be improved by separating tests that require no credentials at all, but so far we are separating those that require running on actual fleets vs. not (can run only in simulation)

@ElePT
ElePT added this pull request to the merge queue Jul 20, 2026
@ElePT
ElePT removed this pull request from the merge queue due to a manual request Jul 20, 2026
@ElePT
ElePT enabled auto-merge July 20, 2026 09:10
@ElePT
ElePT added this pull request to the merge queue Jul 20, 2026
Merged via the queue into main with commit 114e3a8 Jul 20, 2026
12 checks passed
@ElePT
ElePT deleted the refactor/integration-tests branch July 20, 2026 09:41
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