Skip to content

Merge workflows - #8045

Merged
jneira merged 47 commits into
haskell:masterfrom
jneira:merge-workflows
Mar 18, 2022
Merged

jneira merged 47 commits into
haskell:masterfrom
jneira:merge-workflows

Conversation

@jneira

@jneira jneira commented Mar 14, 2022 •

Copy link
Copy Markdown
Member

Comment thread .gitignore Resolved
Comment thread .github/workflows/validate.yml Resolved
@jneira
jneira marked this pull request as ready for review March 14, 2022 14:49
@jneira jneira closed this Mar 14, 2022
@jneira jneira reopened this Mar 14, 2022
@jneira

jneira commented Mar 14, 2022

Copy link
Copy Markdown
Member Author

CI id not picking the new workflow 🤔

@jneira

jneira commented Mar 14, 2022

Copy link
Copy Markdown
Member Author

nothing like a rebase to fix all problems, maybe it was confused due to my fork pr

@jneira

jneira commented Mar 15, 2022

Copy link
Copy Markdown
Member Author

You cant restart workflows for os, so a flaky one will make restart the entire workflow

just I ve seen GitHub has added a rerun jobs from failed, yay!

@jneira

jneira commented Mar 15, 2022 •

Copy link
Copy Markdown
Member Author

macOS dogfooding job is failing cause the uploaded tar with the artifact has a folder named GNUSparseFile.0 with the executable inside:

https://github.com/haskell/cabal/suites/5663836477/artifacts/185963938

That did not happen in previous runs nor in my fork, using the same version of the virtual environment:

https://github.com/jneira/cabal/suites/5665936583/artifacts/185923656

weird

EDIT: using --sparse(-S) option did not help: ac6be71

@jneira
jneira force-pushed the merge-workflows branch 2 times, most recently from 11700f3 to dc1683b Compare March 16, 2022 17:55

@robx robx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Generally looks good to me, left a couple minor comments.

No opinion on the general issues (total running time, caching).

Comment thread .github/workflows/validate.yml Resolved
Comment thread .github/workflows/validate.yml Resolved
@jneira

jneira commented Mar 17, 2022

Copy link
Copy Markdown
Member Author

the macos cabal executable continue failing randomly with cannot execute binary file, dose not seem related with tar though

maybe related:

@jneira

jneira commented Mar 18, 2022

Copy link
Copy Markdown
Member Author

ok tar definitely is related, I executed file ./path/to/cabal before tar and it reported cabal: Mach-O 64-bit executable x86_64
After untar the same file it reported cabal: data

@robx

robx commented Mar 18, 2022

Copy link
Copy Markdown
Collaborator

ok tar definitely is related, I executed file ./path/to/cabal before tar and it reported cabal: Mach-O 64-bit executable x86_64 After untar the same file it reported cabal: data

Just to note that I can confirm this locally: Downloaded the artifact from the bottom here https://github.com/haskell/cabal/actions/runs/2000402197, and it shows the same when I unzip and untar it. Let me know if you'd like me to test something on macOS.

@jneira

jneira commented Mar 18, 2022

Copy link
Copy Markdown
Member Author

Let me know if you'd like me to test something on macOS.

many thanks for reproduce and report it 🙂

@jneira

jneira commented Mar 18, 2022

Copy link
Copy Markdown
Member Author

Related: actions/runner-images#2619
Or i hope so, as use gnutar seems to workaround the issue

@Mikolaj

Mikolaj commented Mar 18, 2022

Copy link
Copy Markdown
Member

Isn't there an option to tar for compatibility with gnutar?

@jneira

jneira commented Mar 18, 2022 •

Copy link
Copy Markdown
Member Author

Isn't there an option to tar for compatibility with gnutar?

i've decided to try the other workaround suggested in the issue: call sudo /usr/sbin/purge to clean cache before do the tarball, as it does need any additional installation

@jneira

jneira commented Mar 18, 2022

Copy link
Copy Markdown
Member Author

PackageTests\InternalLibraries\Haddock\haddock.test.hs is flaky on windows:


<command line>: does not exist: C:\Users\RUNNER~1\AppData\Local\Temp\ghcB217.c


stderr:
*** Exception: Command "D:/a/cabal/cabal/dist-newstyle-validate-ghc-8.6.5/build/x86_64-windows/ghc-8.6.5/cabal-testsuite-3\build\setup\setup" "configure" "-vverbose +markoutput +nowrap" "--distdir" "haddock.dist\work\dist" "--global" "--with-ghc" "C:\ProgramData\chocolatey\lib\ghc.8.6.5\tools\ghc-8.6.5\bin\ghc.exe" "--with-haddock" "C:\ProgramData\chocolatey\lib\ghc.8.6.5\tools\ghc-8.6.5\bin\haddock.exe" "--enable-deterministic" "--prefix=D:\a\cabal\cabal\cabal-testsuite\PackageTests\InternalLibraries\Haddock\haddock.dist\usr" "--package-db=clear" "--package-db=global" "--package-db=C:\sr\ghc-8.6.5\package.db" "--package-db=D:\a\cabal\cabal\dist-newstyle-validate-ghc-8.6.5\packagedb\ghc-8.6.5" "--package-db=D:\a\cabal\cabal\cabal-testsuite\PackageTests\InternalLibraries\Haddock\haddock.dist\packagedb" failed.

We should consider ignore it

@jneira

jneira commented Mar 18, 2022

Copy link
Copy Markdown
Member Author

Isn't there an option to tar for compatibility with gnutar?

i've decided to try the other workaround suggested in the issue: call sudo /usr/sbin/purge to clean cache before do the tarball, as it does need any additional installation

it did the trick!

@Mikolaj @phadej i will wait to merge some hours just in case you have the opportunity of take a final look
After that we will have to manually merge it and change again required checks and rebase other prs. But it will be the last time, as we will use the final post job as the unique require check for the workflow and it likely will not be changed

@Mikolaj Mikolaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great job.

We should rebrand cabal as CI consultancy and we'd start bringing in profit for HF.

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.

Extend new dogfooding ci job to linux and macos Speed up the new CI jobs introduced in #7653

4 participants