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

Prep Patch/1.3.2 #2151

Merged
merged 14 commits into from Jun 26, 2023
Merged

Prep Patch/1.3.2 #2151

merged 14 commits into from Jun 26, 2023

Conversation

phschiele
Copy link
Collaborator

@phschiele phschiele commented Jun 22, 2023

The following PRs have been merged since the last patch:

Link Type 1.3.x 1.2.x 1.1.x Comment
#2047 Bug
#2073 Other
#2078 Doc
#2085 Doc
#2080 Bug
#2081 Other
#2084 Bug
#2057 Feat
#2088 Other
#2069 Feat
#2094 Other
#2103 Feat
#2105 Bug (?)
#2110 Feat
#2111 Other
#2113 Feat
#2108 Feat (?)
#2118 Other (?)
#2120 Other
#2116 Feat
#2091 Feat
#2123 Bug
#2117 Feat
#2130 Bug
#2131 Bug
#2086 Bug
#2134 Bug
#2127 Feat
#2126 Bug
#2119 Feat
#2141 Feat
#2139 Feat
#2146 Feat
#2147 Feat
#2097 Feat
#2125 Feat
#1821 Bug resolves (?) #1747
#2160 Bug
#2159 Bug
#2161 Bug

phschiele and others added 8 commits March 29, 2023 10:11
* Set up ruff

* Add isort

* Update action

* Use suggested action

* Push error to check action

* Remove pre-commit action

* Remove demonstration

* Update pragmas

* Update webdocs

* Update solver imports

* Update pyproject.toml
* Add condition timelimit and no solution

* Add timelimit example

* Add unit test timelimit and no solution

* attempt

* Update timelimit

* try to fix windows

* remove failing test

---------

Co-authored-by: Steven Diamond <steven@gridmatic.com>
* Adds minimal devcontainer setup

* Adds docs
Update solver_test_helpers.py to include a cone program with SDP and power cone constraints.

Correct a bug in PowCone3D.residual, which should have been declared as a property but was not.

---------

Co-authored-by: Steven Diamond <steven@gridmatic.com>
… starting vectors in eigsh (#2086)

* explicitly generate the starting vector in our calls to eigsh; generate the vector based on a fixed random stream.

* Add special casing for diagonal matrices 

---------

Co-authored-by: Riley Murray <rileyjmurray@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Jun 22, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
7 out of 8 committers have signed the CLA.

✅ rileyjmurray
✅ phschiele
✅ dcajasn
✅ SteveDiamond
✅ allenlawrence94
✅ wujianjack
✅ bkurtz
❌ Paulnkk
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

github-actions bot commented Jun 22, 2023

Benchmarks that have stayed the same:

   before           after         ratio
 [4a0d2612]       [6bc6fb1c]
      26.8±0s          27.4±0s     1.02  cvar_benchmark.CVaRBenchmark.time_compile_problem
      4.02±0s          4.05±0s     1.01  simple_LP_benchmarks.SimpleFullyParametrizedLPBenchmark.time_compile_problem
      8.57±0s          8.62±0s     1.01  huber_regression.HuberRegression.time_compile_problem
      40.9±0s          41.1±0s     1.00  sdp_segfault_1132_benchmark.SDPSegfault1132Benchmark.time_compile_problem
      8.23±0s          8.25±0s     1.00  semidefinite_programming.SemidefiniteProgramming.time_compile_problem
      8.74±0s          8.76±0s     1.00  optimal_advertising.OptimalAdvertising.time_compile_problem
      9.94±0s          9.93±0s     1.00  svm_l1_regularization.SVMWithL1Regularization.time_compile_problem
      1.67±0s          1.66±0s     0.99  simple_LP_benchmarks.SimpleScalarParametrizedLPBenchmark.time_compile_problem
      21.4±0s          21.2±0s     0.99  simple_LP_benchmarks.SimpleLPBenchmark.time_compile_problem

@rileyjmurray
Copy link
Collaborator

That's a nice collection! I love making a table like this, @phschiele.

@PTNobel
Copy link
Collaborator

PTNobel commented Jun 22, 2023

I think #2047 should be included; it was tagged for backporting but did not get included in the 1.3.1 release at the request of 364a, since 1.3.1 came out during the final exam and that function's previous behaviour was described in a question on the final.

SteveDiamond and others added 2 commits June 24, 2023 12:17
* make conv more like np.convolve

* more tests

* make backwards compatible

* add convolve, deprecate conv

* added convolve, deprecated conv

* update docs
@phschiele
Copy link
Collaborator Author

phschiele commented Jun 24, 2023

I have included #2047 as suggested by @PTNobel, and all tests are passing now.

There are 3 PRs where we could discuss whether or not it makes sense to backport them:

Feel free to hover over the PRs in the table if you spot anything else that should be considered for backporting.

@rileyjmurray
Copy link
Collaborator

rileyjmurray commented Jun 24, 2023 via email

@SteveDiamond
Copy link
Collaborator

I have included #2047 as suggested by @PTNobel, and all tests are passing now.

There are 3 PRs where we could discuss whether or not it makes sense to backport them:

Feel free to hover over the PRs in the table if you spot anything else that should be considered for backporting.

I'm in favor of backporting #2108 to 1.3 and leaving the others for 1.4. But I don't feel strongly about it.

@rileyjmurray
Copy link
Collaborator

Here are my two cents on each of the three PRs you mentioned, @phschiele.

#2105

Removes reductions from the top level. This was labeled as a bug, but we might consider keeping the imports as if for backports, not to break code on the same minor version.

Let's not risk breaking code unless we have to. While it's fine to call this a bug, it's not a "correctness bug" that a casual user might encounter. So I would prefer to not backport this PR.

#2108

This is a new feature, but we might consider including it in the 1.3 patch to enable faster adoption of Clarabel before including it in future versions as a dependency

I would not be in favor of adding this to a patch. My preference would be something like "update Clarabel's interface in 1.4, make Clarabel a dependency in 1.5, and make Clarabel high on our solver priority list in 1.6." With our current release cadence, that would take a long time, but there is no reason why we can't make releases more often. If I recall correctly, @SteveDiamond was in favor of releasing as often as once every three months back when we adopted semantic versioning.

#2118

This removes a deprecated install method and is labeled to be backported. This could break some installations.

My thoughts here are the same as for #2105; let's not risk breaking code unless there's a compelling reason to do so.

)

* update CBC our interface (which passes through cylp) so that the user can configure the underlying CLP solver.

* write tests to verify that changing CLP tolerance settings will change CLP's behavior predictably.

* write tests to verify that changing logLevel affects the amount of material logged to console. (This was hard!)

* remove deprecated old test code

* replace TestCBC's use of unittest.skipUnless with appropriately modified pytest.mark.skipif.

---------

Co-authored-by: Riley Murray <rileyjmurray@users.noreply.github.com>
@SteveDiamond
Copy link
Collaborator

Please include #2160.

SteveDiamond and others added 2 commits June 26, 2023 18:32
* update spwrapper

* Update cvxpy/interface/scipy_wrapper.py

Co-authored-by: Isaac Virshup <ivirshup@gmail.com>

---------

Co-authored-by: Philipp Schiele <44360364+phschiele@users.noreply.github.com>
Co-authored-by: Isaac Virshup <ivirshup@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Jun 26, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

86.6% 86.6% Coverage
4.4% 4.4% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@phschiele
Copy link
Collaborator Author

Merging here as discussed @SteveDiamond @rileyjmurray @PTNobel.
Sonar failures are related to some duplication between (deprecated) conv and convolve.

@phschiele phschiele merged commit 5ec9d88 into release/1.3.x Jun 26, 2023
50 of 51 checks passed
@Paulnkk Paulnkk mentioned this pull request Jul 15, 2023
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.

None yet

10 participants