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 property setter override by default setter #14259

Conversation

pranjaldatta
Copy link
Contributor

@pranjaldatta pranjaldatta commented Aug 17, 2022

What does this PR do?

Fixes a bug within LightningWork class wherein properties with custom __setter__ defined get overridden by the default __setter__, which would lead to JSON Serialization errors.

Fixes #13934

Does your PR introduce any breaking changes? If yes, please list them.

None

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Yes

@github-actions github-actions bot added the app (removed) Generic label for Lightning App package label Aug 17, 2022
@hhsecond hhsecond added the bug Something isn't working label Aug 18, 2022
@pranjaldatta pranjaldatta marked this pull request as ready for review August 18, 2022 05:22
@pranjaldatta
Copy link
Contributor Author

@hhsecond This is the PR regarding the issue #14259. There are some cloud related tests failing which at a glance seem like something to do with invalid URL / token issues, i.e., unrelated to this PR.

@hhsecond
Copy link
Contributor

@pranjaldatta Awesome. Thank you for the PR. I just found that we have an issue (#13927) with running cloud test on PRs from forked repo. We'd need to wait for that to be fixed unfortunately :(

@pranjaldatta
Copy link
Contributor Author

@pranjaldatta Awesome. Thank you for the PR. I just found that we have an issue (#13927) with running cloud test on PRs from forked repo. We'd need to wait for that to be fixed unfortunately :(

Understood! No worries!

@pranjaldatta
Copy link
Contributor Author

Hi @hhsecond, I see that #13927 was just closed but during the cloud E2E tests, I see this error https://dev.azure.com/Lightning-AI/lightning/_build/results?buildId=92543&view=logs&j=4f63abee-993d-5237-1fd4-9fc286c82252&t=d8e19db7-f33f-5cff-ead3-b7436d0cd5e5&l=618. It seems like there is some issue with this particular test file.

@awaelchli awaelchli added this to the app:0.6.x milestone Aug 27, 2022
@hhsecond
Copy link
Contributor

The tagged issue was fixed 2 days ago but I see some of the tests are failing in the e2e pipeline. Probably flaky tests but lemme take a look

@rohitgr7 rohitgr7 added the community This PR is from the community label Aug 31, 2022
Copy link
Contributor

@awaelchli awaelchli left a comment

Choose a reason for hiding this comment

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

Looks great

src/lightning_app/core/work.py Outdated Show resolved Hide resolved
@awaelchli awaelchli changed the title fixed property setter override by default setter Fix property setter override by default setter Sep 15, 2022
@awaelchli awaelchli self-assigned this Sep 15, 2022
src/lightning_app/CHANGELOG.md Outdated Show resolved Hide resolved
@mergify mergify bot added the ready PRs ready to be merged label Sep 15, 2022
@mergify mergify bot added has conflicts and removed ready PRs ready to be merged labels Sep 16, 2022
@Borda Borda requested a review from lantiga as a code owner September 16, 2022 20:27
@mergify mergify bot added ready PRs ready to be merged and removed has conflicts ready PRs ready to be merged labels Sep 16, 2022
@mergify mergify bot added the ready PRs ready to be merged label Sep 16, 2022
Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

Looks great ! Great contribution !

@tchaton tchaton enabled auto-merge (squash) September 17, 2022 06:44
@tchaton tchaton merged commit 8f14184 into Lightning-AI:master Sep 17, 2022
Borda pushed a commit that referenced this pull request Sep 20, 2022
lexierule pushed a commit that referenced this pull request Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app (removed) Generic label for Lightning App package bug Something isn't working community This PR is from the community ready PRs ready to be merged
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Error setting custom BuildConfig to the LightningWork object
6 participants