Skip to content

Conversation

@absurdfarce
Copy link
Collaborator

No description provided.

Bret McGuire added 23 commits June 8, 2021 23:19
…e test we don't

really need export-specific packages
…fns are available

after installing adelphi Python package.

Also cleaned up some unused imports and some excessive logging configs.
…simplify the

import of functionality from adelphi packages.

Also simplify the dependency specification; test-requirements.txt really should be
testing-only stuff now.
…elphi (since this will

in turn be required for tox)
@absurdfarce absurdfarce changed the title A silly GH experiment 58 CI automation of test suite Jun 15, 2021

# Functions and constants related to the anonymization process
from adelphi.store import get_standard_columns_from_table_metadata
import re
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Randomly discovered unused import, presumably a holdover from previous changes


from github import Github

logging.basicConfig(level=logging.INFO)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This (and store.py below) should definitely not be setting up their own logging... they should be leveraging logs that are configured somewhere else.

return PlainTextAuthProvider(username=username, password=password)


@retry
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Annotated to make this a tenacity-aware function but we don't provide global configs here since those are largely context-specific. Individual callers can provide args appropriate for their specific use; see the example in test-adelphi to see what this looks like.

except SystemExit:
pass
except SystemExit as exc:
exitCodes.append(exc.code)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The exit code that would be returned by tox lives in SystemExit.code. We need to trap this to determine how many of our tox "invocations" resulted in successful tests.

click ~= 7.1
cassandra-driver ~= 3.24
docker ~= 4.4
tenacity ~= 7.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now that test-adelphi is a full-fledged part of the Python package (see setup.py change above) there isn't any need to manage it's dependencies via test requirements. This change was one of the significant arguments for making test-adelphi part of the package.

@absurdfarce absurdfarce self-assigned this Jun 16, 2021
@absurdfarce
Copy link
Collaborator Author

Look at "Checks" on this PR to see the output of running a complete test suite on the code in this PR.

push:
branches: [ 115-breadth-first-testing ]
pull_request:
branches: [ 115-breadth-first-testing ]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A temporary config (since this is branched off of the feature branch changing the integration test framework). This will need to be changed to the default branch before we actually merge it in.

@absurdfarce absurdfarce linked an issue Jun 17, 2021 that may be closed by this pull request
Base automatically changed from 115-breadth-first-testing to master June 21, 2021 19:23
@absurdfarce
Copy link
Collaborator Author

Closing in favor of #160

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.

3 participants