GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Some test refactoring by aaronliu0130 · Pull Request #357 · cpplint/cpplint

Conversation

@aaronliu0130

@aaronliu0130 aaronliu0130 commented Apr 5, 2025

Copy link
Copy Markdown
Member
  • increase default pytest timeout to 481s for debugging room
  • remove duplicate boost sample for testing inspect headers
  • use pytest parametrized instead of parameterized & google todo credit
  • add script to update CLI test definitions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cclauss reacted with rocket emoji
All reactions
  • 🚀 1 reaction
aaronliu0130 added 4 commits April 5, 2025 16:16
@aaronliu0130
increase default pytest timeout to 481s
11ad182
Sometimes, one hath th'need to debugst the tests. And 60s turned the good ol' debugger into Indiana Jones escapingst a rolling boulder. No more.
@aaronliu0130
remove duplicate boost sample for testing inspect headers
1e39bff
Before this, the exclude test did not test excluding at all and just duplicated all the errors contained in the other two .def's
@aaronliu0130
use pytest parametrized instead of parameterized & google todo credit
c0eb131
This unfortunately means we must use test names like test_samples[silly-includeorder_cfirst] now.
todo(unknown)s were replaced with the appropriate todo(google)s credit (we do not have the knowledge to be more specific than that)
@aaronliu0130
add script to update CLI test definitions
e91570a
Obviously, we should still check all the changes to the test definitions. This script just makes finding these changes easier.
cclauss
cclauss reviewed Apr 7, 2025
View reviewed changes
Comment thread pyproject.toml
required_plugins = [ "pytest-cov", "pytest-timeout" ]
testpaths = [ "." ]
timeout = 60
timeout = 481

@cclauss cclauss Apr 7, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This seems like a massive change. Is there a particular versions of Python and/or operating system that is so slow?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aaronliu0130 aaronliu0130 Apr 7, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It's not that it's slow, it's that I oftentimes find myself having to debug the tests, for which 1 minute is not enough for. My average debugging time is about 5 minutes, and 418 is my favorite number.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cclauss cclauss Apr 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

481 != 418 ;-)
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/418

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aaronliu0130 reacted with laugh emoji
All reactions
  • 😄 1 reaction
cclauss
cclauss approved these changes Apr 7, 2025
View reviewed changes
@cclauss
Merge branch 'develop' into testbuxer
b75ec85
@cclauss
cclauss merged commit bbba111 into cpplint:develop Apr 7, 2025
@aaronliu0130
aaronliu0130 deleted the testbuxer branch July 26, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cclauss cclauss cclauss approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@aaronliu0130 @cclauss
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.