Changes at TravisCI- affecting open source

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

I am still tryieng to get such a nice merge check ...

https://docs.gitlab.com/ee/user/project ... ithub.html

screen.png
screen.png (33.97 KiB) Viewed 2761 times

At the moment this only would work if we would create the branches on the github repository, but IMHO according the documentation it should be possible without create feature branches for each PR on the github repository.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by abdullah »

You are doing a great job. Thank you!

If Bernd's "pipeline" would work for PRs, then it would be a very nice and flexible integration.

Regarding the security and deployment of artifacts, we do have some free minutes on GitHub Actions. Maybe we could automatically build and deploy artifacts of master using these free minutes.

Travis is also giving us some free minutes. The end solution does not need to be to ditch Travis. Travis' free minutes could also be used (provided their platform fixes any reported vulnerability).

If we manage to certify one server as "secure", then we could also make the artifacts of PRs available to improve testing.

I see you do not have many hands. I offer mines. How could I help?
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by abdullah »

I am sure you are aware, but the master build in gitlab-ci is timing out after 3 hours:
https://gitlab.com/freecad/FreeCAD-CI/-/jobs/1636177464
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: Changes at TravisCI- affecting open source

Post by abdullah »

I found this:
https://docs.gitlab.com/ee/ci/runners/c ... r-a-runner

Example 1 - Runner timeout bigger than project timeout

You set the maximum job timeout for a runner to 24 hours
You set the CI/CD Timeout for a project to 2 hours
You start a job
The job, if running longer, times out after 2 hours

Example 2 - Runner timeout not configured

You remove the maximum job timeout configuration from a runner
You set the CI/CD Timeout for a project to 2 hours
You start a job
The job, if running longer, times out after 2 hours

Example 3 - Runner timeout smaller than project timeout

You set the maximum job timeout for a runner to 30 minutes
You set the CI/CD Timeout for a project to 2 hours
You start a job
The job, if running longer, times out after 30 minutes
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Changes at TravisCI- affecting open source

Post by chennes »

abdullah wrote: Thu Sep 30, 2021 12:08 pm I am sure you are aware, but the master build in gitlab-ci is timing out after 3 hours:
https://gitlab.com/freecad/FreeCAD-CI/-/jobs/1636177464
What is the pipeline in gitlab.com/FreeCAD supposed to be doing right now? I've been using https://gitlab.com/berndhahnebach/FreeC ... e=branches
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

chennes wrote: Thu Sep 30, 2021 12:47 pm
abdullah wrote: Thu Sep 30, 2021 12:08 pm I am sure you are aware, but the master build in gitlab-ci is timing out after 3 hours:
https://gitlab.com/freecad/FreeCAD-CI/-/jobs/1636177464
What is the pipeline in gitlab.com/FreeCAD supposed to be doing right now? I've been using https://gitlab.com/berndhahnebach/FreeC ... e=branches
ATM the FreeCAD CI runs on https://gitlab.com/berndhahnebach/FreeC ... e=branches Just use the links provided as comments in each PR.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

abdullah wrote: Thu Sep 30, 2021 12:08 pm I am sure you are aware, but the master build in gitlab-ci is timing out after 3 hours:
https://gitlab.com/freecad/FreeCAD-CI/-/jobs/1636177464
Yes I am. This will be the future version. Just use the links provided in the PRs They point to the correct repository. This repo I am working on. Right now this does not run on my local machine but uses runners from gitlab. The maximum time limit gitlab runners provide are 3h thus 3h. The runners on my local machine for the current CI has time limit of 7h but only needs 1h for a full build.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

abdullah wrote: Thu Sep 30, 2021 11:40 am You are doing a great job. Thank you!

If Bernd's "pipeline" would work for PRs, then it would be a very nice and flexible integration.
It has been working for a few days allready for PRs. Just click into the PRs and use the links provided either by me (older) or the new freecadci bot user. 8-)
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

great news even the nice status for PRs works. see https://github.com/FreeCAD/FreeCAD/pull/5074

If you log into github you will see this nice status check for CI. ATM only this PR will pass the check ...
Screenshot_20210930_153223.png
Screenshot_20210930_153223.png (16.62 KiB) Viewed 2482 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Changes at TravisCI- affecting open source

Post by bernd »

chennes wrote: Thu Sep 30, 2021 12:47 pm
abdullah wrote: Thu Sep 30, 2021 12:08 pm I am sure you are aware, but the master build in gitlab-ci is timing out after 3 hours:
https://gitlab.com/freecad/FreeCAD-CI/-/jobs/1636177464
What is the pipeline in gitlab.com/FreeCAD supposed to be doing right now?
In the future this will replace the one in my repo. But just watch for the links in the PRs. Just use the repo they point too.
Post Reply