Skip to content

test: address intermittent test failures - #394

Merged
ykim-akamai merged 5 commits into
linode:devfrom
ykim-akamai:test/fix_intermittent_failures
Apr 16, 2024
Merged

test: address intermittent test failures#394
ykim-akamai merged 5 commits into
linode:devfrom
ykim-akamai:test/fix_intermittent_failures

Conversation

@ykim-akamai

Copy link
Copy Markdown
Contributor

📝 Description

Addressing some failures on TOD due to timeouts and behavior changes

Failures in TOD: http://198.19.5.79:1212/builds/6614a12400a8200001706548?team=DX&buildName=linode_api4&bld_id=6614a12400a8200001706548&testcaseStatus=failure

✔️ How to Test

make testint - should be all passing locally

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

@ykim-akamai ykim-akamai added the testing for updates to the testing suite in the changelog. label Apr 11, 2024
@ykim-akamai
ykim-akamai requested a review from a team as a code owner April 11, 2024 21:23
@ykim-akamai
ykim-akamai requested review from lgarber-akamai and yec-akamai and removed request for a team April 11, 2024 21:23

@yec-akamai yec-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm getting some different errors on my local, maybe just related to my account limitation:

=========================== short test summary info ============================
FAILED test/integration/models/test_linode.py::test_linode_create_disk - linode_api4.errors.ApiError: 400: [size] You do not have enough unallocated...
FAILED test/integration/models/test_linode.py::TestNetworkInterface::test_delete_interface_containing_vpc - TimeoutError: Timeout Error: resource is not available in 60 seconds
============ 2 failed, 117 passed, 21 skipped in 2462.97s (0:41:02) ============

Comment thread test/integration/models/test_database.py
Comment thread test/integration/models/test_linode.py Outdated
return linode.status == status


def get_type(linode: Instance, type: str):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just to make things a bit clearer, could this be renamed to something like instance_type_condition?

Comment thread test/integration/models/test_linode.py Outdated
@lgarber-akamai

Copy link
Copy Markdown
Contributor

I'm getting some different errors on my local, maybe just related to my account limitation:

=========================== short test summary info ============================
FAILED test/integration/models/test_linode.py::test_linode_create_disk - linode_api4.errors.ApiError: 400: [size] You do not have enough unallocated...
FAILED test/integration/models/test_linode.py::TestNetworkInterface::test_delete_interface_containing_vpc - TimeoutError: Timeout Error: resource is not available in 60 seconds
============ 2 failed, 117 passed, 21 skipped in 2462.97s (0:41:02) ============

I'm seeing the 400: [size] ... error on my end too, I'm thinking the initial disk from the fixture isn't being deleted now that the fixture isn't session-scoped

@ykim-akamai

Copy link
Copy Markdown
Contributor Author

@lgarber-akamai lgarber-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All tests are passing on my end, excellent work!

@yec-akamai yec-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work! All tests are passing now 🎉

@ykim-akamai
ykim-akamai merged commit b1c56a6 into linode:dev Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing for updates to the testing suite in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants