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 breaking tests #46058

Closed
wants to merge 3 commits into from
Closed

Fix breaking tests #46058

wants to merge 3 commits into from

Conversation

Rratic
Copy link
Contributor

@Rratic Rratic commented Jul 16, 2022

These failed tests are breaking every pr check.
Hope this fixes...

@giordano
Copy link
Contributor

#46055 was merged before you opened this PR.

@Rratic
Copy link
Contributor Author

Rratic commented Jul 16, 2022

I see, then I'll try to extract the misc fix...

@@ -969,7 +969,7 @@ include("testenv.jl")


let flags = Cmd(filter(a->!occursin("depwarn", a), collect(test_exeflags)))
local cmd = `$test_exename $flags --depwarn=yes deprecation_exec.jl`
local cmd = `$test_exename $flags --depwarn=yes $(joinpath(@__DIR__, "deprecation_exec.jl"))`
Copy link
Contributor

Choose a reason for hiding this comment

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

What problem does this solve? I'm not sure I've seen any error related to this.

Copy link
Contributor Author

@Rratic Rratic Jul 16, 2022

Choose a reason for hiding this comment

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

Error in testset misc:

  | Error During Test at /Users/administrator/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-aarch64-1.0/build/default-macmini-aarch64-1-0/julialang/julia-master/julia-6a83702afc/share/julia/test/testdefs.jl:21
  | Got exception outside of a `@test`
  | LoadError: Deprecation test failed

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have a link to a failed job? That snippet doesn't say much. Also, I find it strange that that line has been last modified 2 years ago: https://github.com/Rratic/julia/blame/d957f310028b564d223097368f7cfd2e609bd638/test/misc.jl#L972. How come this is a problem only now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@giordano giordano Jul 16, 2022

Choose a reason for hiding this comment

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

Yeah, not clear. The change is probably ok in any case, but I'm not convinced it solves anything, since we don't know what the problem is (and again, this line hasn't been a problem for the past two years).

Copy link
Member

Choose a reason for hiding this comment

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

I don't think this change is necessary. The deprecation_exec tests are passing just fine on master. So I don't think there is a problem with the test itself.

I do think it will be helpful to print some more output when the test fails, which is what #46059 dos.

@giordano
Copy link
Contributor

Given #46039 (comment), I believe the title of this PR is at very least misleading as it doesn't fix anything.

I think the change itself is OK, but also unnecessary, not sure it's worth it.

@@ -969,7 +969,7 @@ include("testenv.jl")


let flags = Cmd(filter(a->!occursin("depwarn", a), collect(test_exeflags)))
local cmd = `$test_exename $flags --depwarn=yes deprecation_exec.jl`
local cmd = `$test_exename $flags --depwarn=yes $(joinpath(@__DIR__, "deprecation_exec.jl"))`
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this change is necessary. The deprecation_exec tests are passing just fine on master. So I don't think there is a problem with the test itself.

I do think it will be helpful to print some more output when the test fails, which is what #46059 dos.

@Rratic Rratic closed this Jul 16, 2022
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.

3 participants