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

Ci v2 #7282

Merged
merged 3 commits into from
Jul 30, 2022
Merged

Ci v2 #7282

merged 3 commits into from
Jul 30, 2022

Conversation

Floriansimmer
Copy link
Contributor

Build and Test:

  • build
  • Unittest
  • install
  • Unittest of install
  • report
  • ccache

misc:

  • use .clang-tidy file to configure Clang-tidy checks
  • use use .pylintrc to configure Pylint checks
  • Update changed-files Action
  • better regex for file extension filter
  • show enabled clang-tidy checks in Step Report
  • show enabled Pylint Checks
  • cpplint filter documentation
  • modified cpplint filters recomended by https://github.com/sider/runners/blob/HEAD/images/cpplint/sider_recommended_CPPLINT.cfg
  • fixed Branch filter for Clazy QT6 checks --> has only worked on pull requests
  • fail the CI only on Build errors, Unittest errors and misspellings (or errors on the scripts itself 😒 )

@github-actions github-actions bot added the :octocat: label Jul 30, 2022
@berndhahnebach
Copy link
Contributor

pipeline status for feature branch PR_7282. Pipeline 600909129 was triggered at da8f30b. All CI branches and pipelines.

@donovaly
Copy link
Member

Is this a draft or ready to be merged?

@Floriansimmer
Copy link
Contributor Author

Please wait until the check has finished (should be finished in about an hour).

@Floriansimmer
Copy link
Contributor Author

Floriansimmer commented Jul 30, 2022

@donovaly
looks good --> ready for merge
The first runs on the master also take about 3 hours for the cache to work. After that, one run takes about 20min.

Build and Test:
- ccache
- build
- Unittest
- install
- Unittest of install
- report

misc:
- use .clang-tidy file to configure Clang-tidy checks
- use use .pylintrc to configure Pylint checks
- Update changed-files Action
- better regex for file extension filter
- show enabled clang-tidy checks in Step Report
- show enabled Pylint Checks
- cpplint filter documentation
- modified cpplint filters recomended by https://github.com/sider/runners/blob/HEAD/images/cpplint/sider_recommended_CPPLINT.cfg
- fixed Branch filter for Clazy QT6 checks --> has only worked on pull requests
- fail the CI only on Build  errors, Unittest errors and misspellings
as it is now integrated into the check workflow
@berndhahnebach
Copy link
Contributor

pipeline status for feature branch PR_7282. Pipeline 600944600 was triggered at db67183. All CI branches and pipelines.

@donovaly
Copy link
Member

OK, let's try it out

@donovaly donovaly merged commit 4662503 into FreeCAD:master Jul 30, 2022
run: |
set +e

LD_LIBRARY_PATH=/usr/lib/freecad/lib FreeCADCmd -t 0 &> ${{ env.logdir }}TestInstall.log
Copy link
Member

Choose a reason for hiding this comment

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

consider running the GUI tests instead, see @0penBrain's PR #6421 for how to do this, also why are we running the checks twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to run the GUI checks, but with the Ubuntu 22.04 runner Xvfb gives me problems 😞 . On Ubuntu 20.04, Xvfb works fine. It's on my to-do list, but I wanted to get this out quickly after my last botched PR. (And as of next week, I'm on vacation)
Maybe the first testing can be omitted, I left it in because cmake install + testing on the install was giving me problems and I can easily turn it on and off that way. And the 5min extra runtime is negligible after we don't have to pay for GitHub actions anyway.

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if we want to run on Ubuntu 22.04 it has a broken version of pivy and I doubt they'll be updating that. About the double testing, IMO it would clutter output so it's not convenient to us to begin with and besides just because a service is free doesn't mean you have to abuse it, let's be a little considerate with GitHub and not waste CPU time for nothing.

donovaly pushed a commit that referenced this pull request Aug 1, 2022
* Github: Build and Test

Build and Test:
- ccache
- build
- Unittest
- install
- Unittest of install
- report

misc:
- use .clang-tidy file to configure Clang-tidy checks
- use use .pylintrc to configure Pylint checks
- Update changed-files Action
- better regex for file extension filter
- show enabled clang-tidy checks in Step Report
- show enabled Pylint Checks
- cpplint filter documentation
- modified cpplint filters recomended by https://github.com/sider/runners/blob/HEAD/images/cpplint/sider_recommended_CPPLINT.cfg
- fixed Branch filter for Clazy QT6 checks --> has only worked on pull requests
- fail the CI only on Build  errors, Unittest errors and misspellings

* Github: remove Codespell action as it is now integrated into the check workflow
Matteo-Grellier pushed a commit to Matteo-Grellier/FreeCAD that referenced this pull request Aug 22, 2022
* Github: Build and Test

Build and Test:
- ccache
- build
- Unittest
- install
- Unittest of install
- report

misc:
- use .clang-tidy file to configure Clang-tidy checks
- use use .pylintrc to configure Pylint checks
- Update changed-files Action
- better regex for file extension filter
- show enabled clang-tidy checks in Step Report
- show enabled Pylint Checks
- cpplint filter documentation
- modified cpplint filters recomended by https://github.com/sider/runners/blob/HEAD/images/cpplint/sider_recommended_CPPLINT.cfg
- fixed Branch filter for Clazy QT6 checks --> has only worked on pull requests
- fail the CI only on Build  errors, Unittest errors and misspellings

* Github: remove Codespell action as it is now integrated into the check workflow
@donovaly
Copy link
Member

donovaly commented Oct 24, 2022

Hello Florian, (do you have by the way also a forum account and what is your name there?)

I see a bug I cannot resolve:

  • we use the prefix "[skip CI]" in commits to avoid that the CI is triggered. This works fine for the Gitlab CI but your CI ignores it. Here is an example commit showing this: a346884

Could you have a look please?

For reverence this is the log of our Gitlab CI where the skipping was accepted:
https://gitlab.com/freecad/FreeCAD-CI/-/pipelines

thanks and regards
Uwe

@chennes
Copy link
Member

chennes commented Oct 24, 2022

Strange, I thought that was supposed to work out-of-the-box:
https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/

Here are the docs:
https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs

I wonder if it's case-sensitive?

@donovaly
Copy link
Member

Thanks. This was my mistake. one must use non-uppercase letters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants