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

Remove deprecated unused option in seed job script #22223

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

Abacn
Copy link
Contributor

@Abacn Abacn commented Jul 11, 2022

Fixes #22184

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@Abacn
Copy link
Contributor Author

Abacn commented Jul 11, 2022

R: @ahmedabu98

@github-actions github-actions bot added the infra label Jul 11, 2022
@Abacn
Copy link
Contributor Author

Abacn commented Jul 11, 2022

R: @damccorm

Needs Committer to run seed job. Thanks!

Copy link
Contributor

@ahmedabu98 ahmedabu98 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for taking this Yi

@@ -63,7 +63,6 @@ def get_committers_github_usernames(ldap_uris, cert_path):
connection = None
try:
ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, cert_path)
ldap.set_option(ldap.OPT_X_TLS, ldap.OPT_X_TLS_DEMAND)
Copy link
Contributor

Choose a reason for hiding this comment

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

What was this trying to do before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to this python-ldap/python-ldap#67 "OPT_X_TLS is deprecated and no longer documented in OpenLDAP: https://www.openldap.org/lists/openldap-software/200409/msg00617.html" (which says "This ldap_set_option(LDAP_OPT_X_TLS) feature is used to explicitly establish an ldaps session. The use of ldaps comes from LDAP version 2 and is deprecated;")

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see - so now it should be inferred and we don't need the explicit option (and it throws). Thanks for the context, just wanted to make sure we weren't losing something we'd need to replace

@Abacn
Copy link
Contributor Author

Abacn commented Jul 11, 2022

Run Spotless PreCommit

@Abacn
Copy link
Contributor Author

Abacn commented Jul 11, 2022

(Borrowed this PR to see the change of #22203 after seedjob successfully run. As expected the checkStyle Tab appears: https://ci-beam.apache.org/job/beam_PreCommit_Spotless_Phrase/140/checkstyle/ )

Copy link
Contributor

@damccorm damccorm left a comment

Choose a reason for hiding this comment

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

LGTM since the job Pablo kicked off worked - https://ci-beam.apache.org/job/beam_SeedJob/9966/

@damccorm damccorm merged commit ca7b3b5 into apache:master Jul 11, 2022
@Abacn Abacn deleted the fixseed branch July 11, 2022 19:02
lostluck pushed a commit to lostluck/beam that referenced this pull request Aug 26, 2022
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.

[Bug]: Seed Job failing with AttributeError for 'ldap' module
3 participants