Skip to content

Conversation

@brianpopow
Copy link
Collaborator

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

We are seeing lately alot of OOM issues with the CI. This is an attempt to reduce the memory pressure by running high memory tests serial. This can be achieved by putting them in the same test collection with the attribute:

[Collection("RunSerial")]

Since i have no better measure, what tests are using the most memory, i guessed the Encoder/Decoder tests are possible candidates, so i have put them in one Collection.

@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #1688 (91ff891) into master (e8d39b8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1688   +/-   ##
=======================================
  Coverage   84.33%   84.33%           
=======================================
  Files         816      816           
  Lines       35908    35908           
  Branches     4173     4173           
=======================================
  Hits        30282    30282           
  Misses       4804     4804           
  Partials      822      822           
Flag Coverage Δ
unittests 84.33% <ø> (ø)

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

Impacted Files Coverage Δ
...omponents/Encoder/YCbCrForwardConverter{TPixel}.cs 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8d39b8...91ff891. Read the comment docs.

@brianpopow brianpopow changed the title WIP: Run some high memory tests serial Run some high memory tests serial Jul 5, 2021
Copy link
Member

@JimBobSquarePants JimBobSquarePants left a comment

Choose a reason for hiding this comment

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

Seems to be much more stable. Well done!

@brianpopow brianpopow merged commit 3f96b1e into master Jul 5, 2021
@brianpopow brianpopow deleted the bp/serialtests branch July 5, 2021 10:30
Comment on lines -16 to +17
DebugGuard.MustBeBetweenOrEqualTo(start.X, 1, totalSize.Width - 1, nameof(start.X));
DebugGuard.MustBeBetweenOrEqualTo(start.Y, 1, totalSize.Height - 1, nameof(start.Y));
DebugGuard.MustBeBetweenOrEqualTo(start.X, 0, totalSize.Width - 1, nameof(start.X));
DebugGuard.MustBeBetweenOrEqualTo(start.Y, 0, totalSize.Height - 1, nameof(start.Y));
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice fix! Have no idea why I put 1 as lower border.

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.

4 participants