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

Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens #514

Merged
merged 12 commits into from
Oct 19, 2023

Conversation

DilumAluthge
Copy link
Member

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

@@ -251,3 +251,23 @@ function test(path=pwd(); registry_deps::Vector{<:AbstractString}=String[])
end
return nothing
end

# Change all occurences of "digit-digit" to "digit - digit"
function _spacify_hyphens(str::AbstractString)
Copy link
Member

Choose a reason for hiding this comment

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

Could we instead just strip all white space from both sides? I think that would be less fragile in case there’s other white space changes later

Copy link
Contributor

Choose a reason for hiding this comment

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

Or just remove all white space before comparison?

@@ -251,3 +251,23 @@ function test(path=pwd(); registry_deps::Vector{<:AbstractString}=String[])
end
return nothing
end

# Change all occurences of "digit-digit" to "digit - digit"
function _spacify_hyphens(str::AbstractString)
Copy link
Contributor

Choose a reason for hiding this comment

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

Or just remove all white space before comparison?

src/registry_testing.jl Show resolved Hide resolved
@giordano
Copy link
Member

Bump? Looking at CI marks in list of PRs in General is completely useless at the moment

@DilumAluthge
Copy link
Member Author

Ah, I haven't had a chance to work on this. I might not get to it until next week.

@giordano If you want, you can take this PR over and work through the review comments.

@giordano
Copy link
Member

Might be easier to just disable nightly on general st this point...

@DilumAluthge
Copy link
Member Author

Might be easier to just disable nightly on general st this point...

Seems fine. We can re-enable after this PR is merged.

Can you make a PR?

@DilumAluthge
Copy link
Member Author

I completely forgot about this PR, and now I need to get it in to fix CI so we can get #516 merged and deployed.

I'll make a follow-up PR to address the review comments.

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

  • Unit/Julia nightly/ubuntu-latest/x64

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 16, 2023

Build failed:

  • Unit/Julia nightly/ubuntu-latest/x64

@DilumAluthge
Copy link
Member Author

I'm going to need some way (such as JuliaLang/Pkg.jl#3661) of disabling Pkg's precompilation workload in order to get the RegistryCI.jl unit tests to pass on Julia nightly.

@DilumAluthge
Copy link
Member Author

bors merge

bors bot added a commit that referenced this pull request Oct 19, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 19, 2023

Build failed:

@DilumAluthge
Copy link
Member Author

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 19, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit d68567d into master Oct 19, 2023
11 checks passed
@bors bors bot deleted the dpa/compressed-whitespace branch October 19, 2023 16:56
bors bot added a commit that referenced this pull request Oct 19, 2023
520: `pairs()` is not necessary when iterating over a `Base.Dict` r=DilumAluthge a=DilumAluthge

Addresses #514 (comment)

Co-authored-by: Dilum Aluthge <[email protected]>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants