Skip to content

test: Add macros for doing memory-usage tests of varying precision, based on platform#7243

Merged
jmarantz merged 22 commits intoenvoyproxy:masterfrom
jmarantz:exact-memtest-in-ci
Jun 18, 2019
Merged

test: Add macros for doing memory-usage tests of varying precision, based on platform#7243
jmarantz merged 22 commits intoenvoyproxy:masterfrom
jmarantz:exact-memtest-in-ci

Conversation

@jmarantz
Copy link
Copy Markdown
Contributor

@jmarantz jmarantz commented Jun 12, 2019

Description:
Around June 5, 2019, some of the existing tests that measured exact memory consumption across a series of operations started diverging based on platform. This PR adds new EXPECT-style macros to help tests deal with this. EXPECT_MEMORY_EQ only runs in 'release' builds on CI, where we expect stable, consistent behavior. EXPECT_MEMORY_LE runs on any build with tcmalloc. On other platforms those EXPECT macros print 'info' messages indicating that they are skipped.
Risk Level: low
Testing: //test/... and a few platform variants
Docs Changes:
Release Notes:
Fixes: #7216

jmarantz added 5 commits June 11, 2019 22:43
…y tests.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@mattklein123 mattklein123 self-assigned this Jun 12, 2019
@jmarantz jmarantz changed the title test: Exact memtest in ci WiP test: Exact memtest in ci Jun 12, 2019
jmarantz added 3 commits June 12, 2019 08:23
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@mattklein123 mattklein123 assigned lizan and htuch and unassigned mattklein123 Jun 12, 2019
jmarantz added 2 commits June 12, 2019 20:17
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

🔨 rebuilding ci/circleci: docker (failed build)

🐱

Caused by: a #7243 (comment) was created by @jmarantz.

see: more, trace.

@jmarantz
Copy link
Copy Markdown
Contributor Author

/retest

@repokitteh-read-only
Copy link
Copy Markdown

🔨 rebuilding ci/circleci: docker (failed build)

🐱

Caused by: a #7243 (comment) was created by @jmarantz.

see: more, trace.

htuch
htuch previously requested changes Jun 13, 2019
Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

/wait

@jmarantz
Copy link
Copy Markdown
Contributor Author

btw this doesn't work yet because we need to restore (and fix) the old but not-totally-functional code that allocated memory and verified we could detect it.

…memory-usage at all.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
jmarantz added 3 commits June 14, 2019 00:07
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz marked this pull request as ready for review June 14, 2019 13:12
jmarantz added 2 commits June 14, 2019 20:24
…rflow behavior.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@lizan
Copy link
Copy Markdown
Member

lizan commented Jun 15, 2019

Q: How do we run in Bazel CI? Do they use our scripts and will thus do exact testing?

No, the setting for bazel CI just invoke bazel without going through this script. So they are OK.
https://github.com/envoyproxy/envoy/blob/master/.bazelci/presubmit.yml

Signed-off-by: Joshua Marantz <jmarantz@google.com>
mattklein123
mattklein123 previously approved these changes Jun 17, 2019
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Generally LGTM, will defer to @lizan as build expert!

jmarantz added 2 commits June 17, 2019 18:32
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp

@azure-pipelines
Copy link
Copy Markdown

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or a specific pipeline for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify a pipeline to run.
    • Example: "run" or "run pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp list

@azure-pipelines
Copy link
Copy Markdown

CI/CD Pipelines for this repository:

@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp run envoy-macos

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp run envoy-macos

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp run envoy-macos

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz
Copy link
Copy Markdown
Contributor Author

/azp run envoy-linux

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jmarantz jmarantz dismissed htuch’s stale review June 18, 2019 15:55

comments addressed, 2 other senior approvers approved, htuch OOO

@jmarantz jmarantz merged commit 4fa3e9f into envoyproxy:master Jun 18, 2019
@jmarantz jmarantz deleted the exact-memtest-in-ci branch June 18, 2019 15:56
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.

memory: test against exact value in CI, approximate at other times.

4 participants