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

Validate hackage-security/pull/306 #9656

Closed

Conversation

philderbeast
Copy link
Collaborator

Warning

Do not merge

This is a test using our CI of haskell/hackage-security#306

@philderbeast philderbeast force-pushed the validate/bump-hackage-security branch 2 times, most recently from 8ee02c4 to 41d6840 Compare January 24, 2024 12:32
@Mikolaj
Copy link
Member

Mikolaj commented Jan 24, 2024

A bit hard to see where the CI error is. Is it here?

D:\a\cabal\cabal\cabal-testsuite\PackageTests\NewBuild\CmdClean\Orphan\cabal.dist\work.\dist\src\hackage-s_-974be1f1dd0de4b1.git\objects\pack\pack-525ad7df162bf06777b170436f2399ef7dcd789d.rev: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\?\D:\a\cabal\cabal\cabal-testsuite\PackageTests\NewBuild\CmdClean\Orphan\cabal.dist\work\dist\src\hackage-s_-974be1f1dd0de4b1\.git\objects\pack\pack-525ad7df162bf06777b170436f2399ef7dcd789d.rev": permission denied (Access is denied.)

There's a chance this is a transient Windows hiccup, so perhaps rerun once?

@andreasabel
Copy link
Member

CI also runs on draft PRs, does it?
So this could be converted to draft...

@philderbeast philderbeast force-pushed the validate/bump-hackage-security branch from 41d6840 to a57f655 Compare January 26, 2024 13:49
@philderbeast philderbeast marked this pull request as draft January 26, 2024 13:49
@philderbeast philderbeast force-pushed the validate/bump-hackage-security branch from a57f655 to 3d718a2 Compare February 14, 2024 19:45
@philderbeast philderbeast force-pushed the validate/bump-hackage-security branch 3 times, most recently from 0601a39 to 399b547 Compare March 5, 2024 23:31
@philderbeast
Copy link
Collaborator Author

@Mikolaj @andreasabel don't know what is going on here with the older GHC version tests. They seem to be failing with haskell-actions/setup@v2.

@Mikolaj
Copy link
Member

Mikolaj commented Mar 7, 2024

Really strange. There is also this failure

https://github.com/haskell/cabal/actions/runs/8164469354/job/22319778944?pr=9656#step:7:137

which seems like cabal update tries to run git. ???

@andreasabel
Copy link
Member

andreasabel commented Mar 9, 2024

which seems like cabal update tries to run git. ???

Well, this cabal.project uses a source-repository-package: https://github.com/cabalism/cabal/blob/399b5473549688e50c8f214315c760cc91f3cfb0/hackage-security.config#L1-L5

I seem to remember that cabal update also updates these.
The docs could be more explicit about this: https://cabal.readthedocs.io/en/3.10/cabal-commands.html#cabal-update

However, I do not know why cabal fails to invoke git in a haskell-actions/setup.

don't know what is going on here with the older GHC version tests. They seem to be failing with haskell-actions/setup@v2.

Same problem: git invocation fails: https://github.com/haskell/cabal/actions/runs/8164469354/job/22395280635?pr=9656#step:5:87

But here, git fails when cloning submodules...

@andreasabel
Copy link
Member

andreasabel commented Mar 9, 2024

However, I do not know why cabal fails to invoke git in a haskell-actions/setup.

Well, this workflow uses a docker that may not have git: https://github.com/haskell/cabal/actions/runs/8164469354/job/22319778944?pr=9656#step:4:30

The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH

This could be a simple explanation.

At this point, there is no evidence that haskell-actions/setup is doing something wrong, so I am moving on...

invincible

@philderbeast
Copy link
Collaborator Author

Well, this cabal.project uses a source-repository-package: https://github.com/cabalism/cabal/blob/399b5473549688e50c8f214315c760cc91f3cfb0/hackage-security.config#L1-L5

I seem to remember that cabal update also updates these. The docs could be more explicit about this: https://cabal.readthedocs.io/en/3.10/cabal-commands.html#cabal-update

I wouldn't expect that, especially when pinning to a commit hash. I'll have to check this. That "remote package repository" and "source repository package" are different things that sound similar doesn't help (especially when source repositories are usually remote too).

@philderbeast philderbeast force-pushed the validate/bump-hackage-security branch from a529f65 to 8c98949 Compare March 17, 2024 16:07
@philderbeast
Copy link
Collaborator Author

Thanks for checking the failures @andreasabel. I don't intend to pursue the failures further. Tests without git or setup failures are all passing and I think that is good enough of a check for the hackage-security changes.

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