Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #11006: Add google as known third-party library #11018

Merged
merged 6 commits into from
Oct 24, 2020

Conversation

U8NWXD
Copy link
Member

@U8NWXD U8NWXD commented Oct 20, 2020

Overview

  1. This PR fixes or fixes CI and Pre-Push Linters Disagree #11006.
  2. This PR does the following: Add google as a known third-party library

Essential Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The linter/Karma presubmit checks have passed locally on your machine.
  • "Allow edits from maintainers" is checked. (See here for instructions on how to enable it.)
    • This lets reviewers restart your CircleCI tests for you.
  • The PR is made from a branch that's not called "develop".

PR Pointers

  • Make sure to follow the instructions for making a code change.
  • Oppiabot will notify you when you don't add a PR_CHANGELOG label. If you are unable to do so, please @-mention a code owner (who will be in the Reviewers list), or ask on Gitter.
  • For what code owners will expect, see the Code Owner's wiki page.
  • Make sure your PR follows conventions in the style guide, otherwise this will lead to review delays.
  • Never force push. If you do, your PR will be closed.

@oppiabot
Copy link

oppiabot bot commented Oct 20, 2020

Hi, @U8NWXD, this pull request does not have a "CHANGELOG: ..." label as mentioned in the PR checkbox list. Assigning @U8NWXDto add the required label. PRs without this label will not be merged. If you are unsure of which label to add, please ask the reviewers for guidance. Thanks!

@U8NWXD U8NWXD marked this pull request as ready for review October 21, 2020 16:57
@U8NWXD U8NWXD requested a review from seanlip as a code owner October 21, 2020 16:57
@U8NWXD
Copy link
Member Author

U8NWXD commented Oct 21, 2020

@seanlip @DubeySandeep @Hudda PTAL

@U8NWXD U8NWXD assigned seanlip, DubeySandeep and Hudda and unassigned U8NWXD Oct 21, 2020
U8NWXD added a commit to nithusha21/oppia that referenced this pull request Oct 22, 2020
We need to import `google.oauth2` after we import `python_utils` because
importing `python_utils` sets `sys.path` as needed for `google.oauth2`.
This commit replicates changes from oppia#11018 that fix the linter to
recognize google.oauth2 as a third-party library.
Copy link
Contributor

@Hudda Hudda left a comment

Choose a reason for hiding this comment

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

LGTM

@oppiabot oppiabot bot unassigned Hudda Oct 22, 2020
@oppiabot
Copy link

oppiabot bot commented Oct 22, 2020

Unassigning @Hudda since they have already approved the PR.

Copy link
Member

@DubeySandeep DubeySandeep left a comment

Choose a reason for hiding this comment

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

@U8NWXD, Thanks for the PR, I have left one question PTAL! [Approving this PR to unblock the merge as this will fix issue in develop branch!]

.isort.cfg Outdated Show resolved Hide resolved
@oppiabot
Copy link

oppiabot bot commented Oct 22, 2020

Unassigning @DubeySandeep since they have already approved the PR.

@U8NWXD
Copy link
Member Author

U8NWXD commented Oct 23, 2020

@seanlip PTAL. This issue is blocking new contributors

Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@seanlip seanlip removed their assignment Oct 23, 2020
@U8NWXD U8NWXD merged commit 1a0423c into oppia:develop Oct 24, 2020
@U8NWXD U8NWXD deleted the fix-lint-sort branch October 24, 2020 04:07
seanlip pushed a commit that referenced this pull request Oct 28, 2020
* add automatic restarts for flakes, and automatic logging in sheets

* use service accounts instead of API keys, and download the credentials

* some lint fixes

* add encryption, and fix conditions for checking for flakes

* add python dependencies

* add more pip dependencies

* fix lint issues

* fix more lint issues

* fix more lint issues

* reorder codeowner files

* fix import issues, and add missing lib to installation

* exclude encrypted file from linting

* Fix backend tests

* Move installation to oppia-tools

* fix all lint issues, and import issues

* fix lint issues

* Add simple crpyt to path

* add google-api-client to path

* add missing library

* add pkg_resources

* remove changes from linter

* trying to debug env on CI

* more debugging

* more debugging

* fix config

* fix indent

* Fix lint errors

* Fix imports for linter

* change installation

* fix linter

* Remove Google Import Code from Linter

becbbcf changed the way imports are handled, so we don't need the
special path-modifying code in the linter script anymore.

* Write backend tests for run_e2e_tests functions

* Fix lint errors

* fix linting issues

* Fix backend test coverage

* fix lint issue

* remove unnecessary change

* fix lint problems

* fix lint problems

* fix import issue

* Fix lint errors

* Fix Import Order

We need to import `google.oauth2` after we import `python_utils` because
importing `python_utils` sets `sys.path` as needed for `google.oauth2`.
This commit replicates changes from #11018 that fix the linter to
recognize google.oauth2 as a third-party library.

* Resolve some comments

Co-authored-by: nithusha21 <nithusha21@yahoo.co.in>
Co-authored-by: DubeySandeep <dubeysandeep.in@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI and Pre-Push Linters Disagree
4 participants