cli icon indicating copy to clipboard operation
cli copied to clipboard

un-skip history test and fix golden mismatches

Open imjasonh opened this issue 3 years ago • 2 comments

Signed-off-by: Jason Hall [email protected]

As discovered in https://github.com/docker/cli/pull/3779#discussion_r974281026, these tests were skipped because CI doesn't run in UTC. The failures don't seem to require UTC, only updating the golden file's column spacing to match current reality.

- What I did

Un-skipped tests in history_test.go

- How I did it

Removed skip from history_test.go, added t.Run wrappers so that failed assertions didn't stop other tests from running. Updated golden files to match test expectations.

- How to verify it

make dev && make test-unit

- Description for the changelog

Image history tests are no longer skipped on CI.

- A picture of a cute animal (not mandatory but encouraged)

octoeyes

cc @thaJeztah

imjasonh avatar Sep 19 '22 14:09 imjasonh

Codecov Report

Merging #3781 (f10ecfd) into master (edd51b2) will increase coverage by 0.04%. The diff coverage is n/a.

:exclamation: Current head f10ecfd differs from pull request most recent head f5e224e. Consider uploading reports for the commit f5e224e to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3781      +/-   ##
==========================================
+ Coverage   59.28%   59.32%   +0.04%     
==========================================
  Files         288      288              
  Lines       24632    24632              
==========================================
+ Hits        14602    14613      +11     
+ Misses       9160     9148      -12     
- Partials      870      871       +1     

codecov-commenter avatar Sep 19 '22 15:09 codecov-commenter

Looks like the second commit is missing a DCO sign-off; when you're updating, could you squash the commits, and fix the sign-off to make the DCO check happy?

Thanks again! Sorry for the delay (had a lot of catching up to do on notifications 😅)

thaJeztah avatar Sep 22 '22 09:09 thaJeztah

Friendly ping. Anything else you'd like to see?

imjasonh avatar Oct 17 '22 19:10 imjasonh

I'm not sure why DCO isn't reporting. I'll try closing/reopening and/or re-pushing the change to see if that wakes it up.

imjasonh avatar Oct 24 '22 15:10 imjasonh

Another friendly ping. I'm not in any rush to get this done, I just keep noticing it's still open. Anything else blocking?

imjasonh avatar Jan 03 '23 19:01 imjasonh

Another friendly ping. I'm not in any rush to get this done, I just keep noticing it's still open. Anything else blocking?

Another one. I'm also fine just dropping this if there isn't interest in testing this. If that's the case though, I can also just delete the test.

imjasonh avatar Apr 04 '23 00:04 imjasonh

let me close/reopen to have a fresh run of CI 🙈

thaJeztah avatar Apr 04 '23 09:04 thaJeztah

Whoops; looks like I never pressed the "merge" button on this one.

I was just working on a similar test, and it looks like there's an workaround that just never occurred to me; adding a t.SetEnv("TZ", "UTC") to the test will make the test use UTC. I'll do a quick follow-up after this one's merged 👍

thaJeztah avatar Aug 28 '23 08:08 thaJeztah