Skip to content

Fix CI#6026

Merged
c-bata merged 1 commit intooptuna:masterfrom
nabenabe0928:hotfix-ci
Mar 31, 2025
Merged

Fix CI#6026
c-bata merged 1 commit intooptuna:masterfrom
nabenabe0928:hotfix-ci

Conversation

@nabenabe0928
Copy link
Copy Markdown
Contributor

Motivation

This PR fixes the CI by removing unused global referencing.

@nabenabe0928
Copy link
Copy Markdown
Contributor Author

@y0z @c-bata
Could you review this PR?

return MockBlob(blob_name)

def delete_blob(self, blob_name: str) -> None:
global _MOCK_BUCKET_CONTENT
Copy link
Copy Markdown
Contributor Author

@nabenabe0928 nabenabe0928 Mar 31, 2025

Choose a reason for hiding this comment

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

Although the dict itself is not a global variable, the contents are globally editable.

D = {}

def add():
    D["a"] = 1

def delete():
    del D["a"]


>>> add()
>>> D
{"a": 1}
>>> delete()
>>> D
{}

Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

I confirmed that this PR fixes the following error.
https://github.com/optuna/optuna/actions/runs/14160851530/job/39666074487

LGTM!

@c-bata c-bata added the CI Continuous integration. label Mar 31, 2025
@c-bata c-bata removed their assignment Mar 31, 2025
@nabenabe0928 nabenabe0928 added this to the v4.3.0 milestone Mar 31, 2025
@c-bata c-bata unassigned y0z Mar 31, 2025
@c-bata c-bata merged commit 5231e87 into optuna:master Mar 31, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants