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 CI tests for macoOS and ubuntu OS. #538

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Stockless
Copy link
Collaborator

Fixed the CI test for macOS replacing the OS version from macOS-latest to macOS-13, and the test for Ubuntu adding a macro to avoid the generation of a sandbox in the creation of the gui window, that is causing an issue due to a bug in the latest version of Ubuntu (Ubuntu 24.04.1)

@Stockless Stockless requested a review from cncastillo as a code owner January 27, 2025 14:38
@@ -19,7 +19,7 @@ jobs:
version:
- '1.10' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
os: [ubuntu-latest, windows-latest, macos-latest]
Copy link
Member

Choose a reason for hiding this comment

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

Why Is macos-latest not working? Is it because of Kaileido_jll? Check the PR I created about that.

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 tested removing the package in e208255 , but that wasn't the reason. I still don't know why it doesn't work in the latest version. I'll keep it in macOS-13 until it's solved.

test/runtests.jl Outdated
# Opens UI
w = KomaUI(return_window=true)

@unsafe_blink
Copy link
Member

Choose a reason for hiding this comment

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

Yo actually fix the bug (opposed to only fix the tests) the call to the macro needs to be inside the KomaUI function.

@cncastillo
Copy link
Member

cncastillo commented Jan 29, 2025

@Stockless can you reply to the comments 🙏 ?

@cncastillo
Copy link
Member

please don't include changes from other PRs without merging them properly, so the ownership of the changes is not changed.

@cncastillo
Copy link
Member

Hi @Stockless, What is the state of this?

@cncastillo
Copy link
Member

This branch is already outdated. Please don't add new dependencies unless strictly necessary.

@@ -20,7 +20,7 @@ KomaPlotsPlutoPlotlyExt = "PlutoPlotly"

[compat]
Interpolations = "0.13, 0.14, 0.15"
Kaleido_jll = "0.1"
Copy link
Member

Choose a reason for hiding this comment

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

Why are you putting this here? The solution should be to remove the compat. This is already done in #530

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 did remove Kaleido_jll to test if that was the reason why the CI test in macOS-latest wasn't running, but when you told me that this change shouldn't be included because it is from another PR, I did an stepback in this commit c0ce80e

Copy link
Member

@cncastillo cncastillo Feb 18, 2025

Choose a reason for hiding this comment

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

Yes, but now it says Kaleido_jll = "0.2.1" which is not the same as before Kaleido_jll = "0.1"

@@ -14,6 +14,7 @@ KomaMRIPlots = "76db0263-63f3-4d26-bb9a-5dba378db904"
MAT = "23992714-dd62-5051-b70f-ba57cb901cac"
MRIReco = "bdf86e05-2d2b-5731-a332-f3fe1f9e047f"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
Copy link
Member

Choose a reason for hiding this comment

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

Why are you adding this?

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 adding Sockets because it is part of the implementation of a macro to disable the sandbox in the window generation, creating a workaround for the connection bug as it is described in this closed issue

Copy link
Member

@cncastillo cncastillo Feb 18, 2025

Choose a reason for hiding this comment

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

Sockets should already be included in Blink. Use why Sockets to check. For example, you could do using Blink.HTTP.Sockets. Sockets shouldn't be an explicit dependency in KomaMRI.

Comment on lines +11 to +13
using Blink, Interact, AssetRegistry, Blink.AtomShell
using Sockets: @ip_str
using Blink.AtomShell: port, inspector, try_connect, electron, initcbs, mainjs
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
using Blink, Interact, AssetRegistry, Blink.AtomShell
using Sockets: @ip_str
using Blink.AtomShell: port, inspector, try_connect, electron, initcbs, mainjs
using Blink, Interact, AssetRegistry

@@ -0,0 +1,34 @@
module MacroUnsafeBlink
Copy link
Member

Choose a reason for hiding this comment

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

Why is this a module?

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 currently working in the implementation of the macro that fixed CI test in commit c5117f0 inside the KomaUI function, and it's easier for me to run the different test from a module and import it. In a later version it should be incorporated directly in the function instead of the module import.

Copy link
Member

Choose a reason for hiding this comment

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

OK, please read carefully this https://jkrumbiegel.com/pages/2021-06-07-macros-for-beginners/ to understand better how macros work.

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