Continous Integration Questions, Answers and Howto Thread

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Continous Integration Questions, Answers and Howto Thread

#16 Post by adrian_broher »

Scratchpad for some documentation I found and lost and found again:

https://docs.github.com/en/actions/refe ... ystem-path
https://github.com/actions/runner/issues/438
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Continous Integration Questions, Answers and Howto Thread

#17 Post by o01eg »

Looks like using Travis CI become more burdensome https://blog.travis-ci.com/2020-11-02-t ... ew-billing
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Continous Integration Questions, Answers and Howto Thread

#18 Post by Geoff the Medio »

So just as soon as you get the OSX builds working again, they announce they will disable it on the free plan...?

User avatar
Oberlus
Cosmic Dragon
Posts: 5704
Joined: Mon Apr 10, 2017 4:25 pm

Re: Continous Integration Questions, Answers and Howto Thread

#19 Post by Oberlus »

Plus this, which seems to affect FO?
Building on a public repositories only

We love our OSS teams who choose to build using TravisCI and we fully want to support that community. However, recently we have encountered significant abuse of the intention of this offering. Abusers have been tying up our build queues and causing performance reductions for everyone. In order to bring the rules back to fair playing grounds, we are implementing some changes for our public build repositories.
For those of you who have been building on public repositories (on travis-ci.com, with no paid subscription), we will upgrade you to our trial (free) plan with a 10K credit allotment (which allows around 1000 minutes in a Linux environment).
[...]
We will be offering an allotment of OSS minutes that will be reviewed and allocated on a case by case basis.

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Continous Integration Questions, Answers and Howto Thread

#20 Post by o01eg »

Geoff the Medio wrote: Mon Nov 02, 2020 2:29 pm So just as soon as you get the OSX builds working again, they announce they will disable it on the free plan...?
Yep, maybe we should try to move it to Appveyor. Also SDK will be affected.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

Ophiuchus
Programmer
Posts: 3427
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: Continous Integration Questions, Answers and Howto Thread

#21 Post by Ophiuchus »

Oberlus wrote: Mon Nov 02, 2020 3:21 pm Plus this, which seems to affect FO?
... around 1000 minutes in a Linux environment).
[...]
We will be offering an allotment of OSS minutes that will be reviewed and allocated on a case by case basis.
are we on such a >5 concurrency plan?

1000 minutes will run out fast after that we would have to pay.
probably we could stop running CI on every commit? Could there be a button?

so what are the options? applying for OSS minutes? switching to a lower concurrency plan?
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
Oberlus
Cosmic Dragon
Posts: 5704
Joined: Mon Apr 10, 2017 4:25 pm

Re: Continous Integration Questions, Answers and Howto Thread

#22 Post by Oberlus »

Ophiuchus wrote: Mon Nov 02, 2020 6:12 pm are we on such a >5 concurrency plan?
I understood that paragraph affect every public repository only builders.
probably we could stop running CI on every commit? Could there be a button?
Tangentially, I always thought it is a pitty that code is rebuilt on each FOCS content only change.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Continous Integration Questions, Answers and Howto Thread

#23 Post by Geoff the Medio »

Ophiuchus wrote: Mon Nov 02, 2020 6:12 pm1000 minutes will run out fast after that we would have to pay.
Or just keep asking for more, apparently?
We will be offering an allotment of OSS minutes that will be reviewed and allocated on a case by case basis. Should you want to apply for these credits please open a request with Travis CI support stating that you’d like to be considered for the OSS allotment. Please include:
  • Your account name and VCS provider (like travis-ci.com/github/[your account name] )
  • How many credits (build minutes) you’d like to request (should your run out of credits again you can repeat the process to request more)
So... I'd like 8 billion minutes please?

I can't actually find where to access "Travis CI support", though...

User avatar
Oberlus
Cosmic Dragon
Posts: 5704
Joined: Mon Apr 10, 2017 4:25 pm

Re: Continous Integration Questions, Answers and Howto Thread

#24 Post by Oberlus »

Geoff the Medio wrote: Mon Nov 02, 2020 6:38 pm I can't actually find where to access "Travis CI support", though...
They say you can
https://travis-ci.com/help (at the end of the page) wrote: Get help from the experts
Logging into your account and sending an example of your problem will speed up getting an answer
Maybe you already checked that out (I assume there is some kind of user pannel and somewhere within a way to open tickets or something)...

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Continous Integration Questions, Answers and Howto Thread

#25 Post by Geoff the Medio »

There's no obvious issue tracker or way to "open a request". There is a web form with which you can submit some text to "Get help from [their] support engineers"... so maybe it's that?

Ophiuchus
Programmer
Posts: 3427
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: Continous Integration Questions, Answers and Howto Thread

#26 Post by Ophiuchus »

Oberlus wrote: Mon Nov 02, 2020 6:27 pm
Ophiuchus wrote: Mon Nov 02, 2020 6:12 pm are we on such a >5 concurrency plan?
I understood that paragraph affect every public repository only builders.
I think I misread and you are right
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Continous Integration Questions, Answers and Howto Thread

#27 Post by Geoff the Medio »

I sent a request, hopefully to the right place.

For reference, FreeOrion used about 10k minutes in the last month: https://travis-ci.org/github/freeorion?tab=insights

That could be reduced a lot by removing the OSX builds and one of the Ubuntu builds (of headless and regular).

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Continous Integration Questions, Answers and Howto Thread

#28 Post by Geoff the Medio »

TravisCI support got back to me, saying they granted the @geoffthemedio account 60k credits. I'm not sure if those will be applied automatically to FreeOrion builds or if we'd need to do something extra to make that happen. FreeOrion test builds seem to be running anyway, without apparently consuming any of those credits.

I find it very difficult to find or do anything on the TravisCI account pages about whether there is a connection between the geoffthemedio account and FreeOrion... There are various references to things I can't find, or links to pages to do things where the linked-to page doesn't seem to have any functionality.

I can get several unused repositories to appear on the @freeorion organization profile page on TravisCI, but those dont include the freeorion or freeorion-sdk repositories that we actually want to run test builds on, despite several attempts to add them.

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Continous Integration Questions, Answers and Howto Thread

#29 Post by o01eg »

I think we need to request again to build FreeOrion SDK here.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Continous Integration Questions, Answers and Howto Thread

#30 Post by Geoff the Medio »

o01eg wrote: Fri Jun 03, 2022 6:28 pm I think we need to request again to build FreeOrion SDK here.
Where is "here"?

Post Reply