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

Jenkinsfile cleanup #1163

Merged
merged 2 commits into from
May 31, 2023
Merged

Jenkinsfile cleanup #1163

merged 2 commits into from
May 31, 2023

Conversation

absurdfarce
Copy link
Collaborator

Updating Jenkinsfile to reflect recent supported Python versions. Also trying to get nightlies going again against master.

@@ -629,10 +618,10 @@ pipeline {
}

triggers {
parameterizedCron((scheduleTriggerJobName() == env.JOB_NAME) ? """
parameterizedCron(branchPatternCron().matcher(env.BRANCH_NAME).matches() ? """
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Trying to make this more consistent with the other drivers. This usage also seems to make more sense logically.

DEFAULT_CASSANDRA = ['2.1', '2.2', '3.0', '3.11', '4.0']
DEFAULT_DSE = ['dse-5.0.15', 'dse-5.1.35', 'dse-6.0.18', 'dse-6.7.17', 'dse-6.8.30']
DEFAULT_RUNTIME = ['2.7.18', '3.5.9', '3.6.10', '3.7.7', '3.8.3']
DEFAULT_RUNTIME = ['3.7.7', '3.8.3']
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Didn't seem to make much sense to include Python versions we no longer explicitly support

"SERVER": ['2.1', '3.11', 'dse-6.8.30'],
"RUNTIME": ['2.7.18', '3.6.10'],
"CYTHON": DEFAULT_CYTHON
],
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 test matrix doesn't really make sense, especially after we remove these Python versions from the supported list above

# These schedules will run with and without Cython enabled for Python v2.7.18 and v3.5.9
H 4 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;EVENT_LOOP=LIBEV;CI_SCHEDULE_PYTHON_VERSION=2.7.18 3.5.9;CI_SCHEDULE_SERVER_VERSION=2.2 3.11 dse-5.1.35 dse-6.0.18 dse-6.7.17
# These schedules will run with and without Cython enabled for Python 3.7.7 and 3.8.3
H 4 * * 1-5 %CI_SCHEDULE=WEEKNIGHTS;EVENT_LOOP=LIBEV;CI_SCHEDULE_PYTHON_VERSION=3.7.7 3.8.3;CI_SCHEDULE_SERVER_VERSION=2.2 3.11 dse-5.1.35 dse-6.0.18 dse-6.7.17
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Part of my goal here is to get nightlies working again. PYTHON-1351 will need some environment customizations to make sure we can test the cryptography and non-cryptography cases. It probably makes sense to include one as part of the default build and the other in the nightlies.

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 probably won't be as bad as it looked initially. PYTHON-1351 is following the example of similar functionality in the Python driver (for a Gremlin dependency for DS Graph) and importing functionality specific to cryptography only if the lib is present. Since cryptography will be present in the Jenkins environment [1] those tests will be run.

[1] cryptography has now been moved to test-datastax-requirements.txt, the same spot where the Gremlin requirement lives. Requirements in that file are imported when the Jenkins environment is setup.

"drivers/python/oss/master/disabled"
// branch pattern for cron
def branchPatternCron() {
~"(master)"
Copy link
Contributor

@joao-r-reis joao-r-reis May 31, 2023

Choose a reason for hiding this comment

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

you could change this to jenkinsfile_cleanup to test nightlies before merging this PR if you want to

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm actually okay with it. This change is identical to what the other drivers are doing so I have a high level of confidence; if for some reason it doesn't work I'm okay trying to fix it after the fact.

@absurdfarce absurdfarce merged commit 863e690 into master May 31, 2023
@absurdfarce absurdfarce deleted the jenkinsfile_cleanup branch June 1, 2023 20:38
fruch added a commit to fruch/python-driver that referenced this pull request Jun 6, 2024
…sync_with_upstream_3.29.1

version 3.28.0

* tag '3.28.0' of https://github.com/datastax/python-driver:
  Release 3.28.0: changelog & version
  PYTHON-1352 Add vector type, codec + support for parsing CQL type (datastax#1161)
  Update docs.yaml to point to most recent 3.27.0 docs changes
  CONN-38 Notes for 3.27.0 on PYTHON-1350 (datastax#1166)
  PYTHON-1356 Create session-specific protocol handlers to contain session-specific CLE policies (datastax#1165)
  PYTHON-1350 Store IV along with encrypted text when using column-level encryption (datastax#1160)
  PYTHON-1351 Convert cryptography to an optional dependency (datastax#1164)
  Jenkinsfile cleanup (datastax#1163)
  PYTHON-1343 Use Cython for smoke builds (datastax#1162)
  Don't fail when inserting UDTs with prepared queries with some missing fields (datastax#1151)
  Revert "remove unnecessary import __future__ (datastax#1156)"
  docs: convert print statement to function in docs (datastax#1157)
  remove unnecessary import __future__ (datastax#1156)
  Update docs.yaml to include recent fixes to CLE docs
  Fix for rendering of code blocks in CLE documentation (datastax#1159)
  DOC-3278 Update comment for retry policy (datastax#1158)
  DOC-2813 (datastax#1145)
  Remove different build matrix selection for develop branches (datastax#1138)
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 9, 2024
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 9, 2024
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 9, 2024
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 9, 2024
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 9, 2024
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 9, 2024
dkropachev pushed a commit to dkropachev/python-driver that referenced this pull request Aug 15, 2024
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.

2 participants