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

test: fix failing Go TestResourceCreationFailed test #8918

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

NicholasBlaskey
Copy link
Contributor

Description

Fix failing test on main

https://app.circleci.com/pipelines/github/determined-ai/determined/51712/workflows/bdcbdfb7-e33a-4526-98d1-a261538687bd/jobs/2304253

Caused by

#8899

Test Plan

Intg passes

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@NicholasBlaskey NicholasBlaskey requested a review from a team as a code owner February 28, 2024 19:26
@cla-bot cla-bot bot added the cla-signed label Feb 28, 2024
Copy link

netlify bot commented Feb 28, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 14024d2
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65df88dbdb0b20000861607c

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.17%. Comparing base (ad7d260) to head (14024d2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8918      +/-   ##
==========================================
- Coverage   48.42%   47.17%   -1.25%     
==========================================
  Files         743     1154     +411     
  Lines      136157   175073   +38916     
  Branches     2237     2237              
==========================================
+ Hits        65929    82585   +16656     
- Misses      70070    92330   +22260     
  Partials      158      158              
Flag Coverage Δ
backend 42.28% <ø> (+8.07%) ⬆️
harness 63.69% <ø> (ø)
web 42.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 411 files with indirect coverage changes


message = sub.Get()
require.IsType(t, &sproto.ContainerLog{}, message)
require.Contains(t, *message.(*sproto.ContainerLog).AuxMessage, "already exists")
Copy link
Contributor

Choose a reason for hiding this comment

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

part of k8s improvements should definitely be improving these tests. this is really fragile.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

like I don't even know what this test is really testing anyway at this point, the error comes from our mock...

I don't know

They have just been like touched just enough so they pass on every change so I think they are basically meaningless at this point

@NicholasBlaskey NicholasBlaskey merged commit ef49195 into main Feb 28, 2024
74 of 86 checks passed
@NicholasBlaskey NicholasBlaskey deleted the fix_failing_test_intg branch February 28, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants