Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [4/17/2017 2:29:32 PM] Nick HavocMC: A big thing we need is easy deployment and testing, so wondering how that's gonna work. I remember you saying something about having two branches: a test branch and a live branch. How will that work?
- [4/17/2017 2:29:59 PM] Nick HavocMC: I was thinking of something where the test server grabs from the test branch, then when it's working we merge that into deployment branch?
- [4/17/2017 2:40:04 PM] Timothy | TadahTech: We could set something like that up but it'd require some custom stuff on my end.
- [4/17/2017 2:40:19 PM] Timothy | TadahTech: We couldn't use Jenkins for that. It'd be simple to program but would take some time
- [4/17/2017 2:40:24 PM] Timothy | TadahTech: However, that'd be dope
- [4/17/2017 2:42:06 PM] Nick HavocMC: Whatever allows us to test easily and deploy easily works for me
- [4/17/2017 2:42:13 PM] Nick HavocMC: I do want to make sure we're spending time efficiently though
- [4/17/2017 2:42:43 PM] Nick HavocMC: I don't think it's worth it to spend a lot of time on a system like that if it would take a while - with only a few developers I want to make sure we're getting the maximum amount of new content out to the server
- [4/17/2017 2:43:40 PM] Timothy | TadahTech: I feel ya. It'd take me 20-25 hours to do. It require some stuff on the plugin side
- [4/17/2017 2:45:09 PM] Nick HavocMC: What is the deployment system you made capable of
- [4/17/2017 2:45:15 PM] Nick HavocMC: Do we like specify a branch for the github
- [4/17/2017 2:45:23 PM] Nick HavocMC: and it pulls and deploys from there
- [4/17/2017 2:45:25 PM] Nick HavocMC: or what?
- [4/17/2017 2:45:35 PM] Timothy | TadahTech: Yep that's exactly what it does
- [4/17/2017 2:45:59 PM] Timothy | TadahTech: And I didn't make it. It's Jenkins
- [4/17/2017 2:48:05 PM] Nick HavocMC: A specific branch?
- [4/17/2017 2:48:35 PM] Timothy | TadahTech: Yeah
- [4/18/2017 9:16:20 AM] Timothy | TadahTech: Looked into it more. I can easily create the other system.
- It will pull from test branch
- Run the tests in the classpath defined in the "test.yml" file.
- If all succeed, it will push that code to master.
- If it fails, an email will be sent out (or we interstate with slack and make it easier) what failed.
- Then on production server, it detects a change in the master branch and pulls the branch, runs "mvn clean install" on it and then sends out the built jar to the update folder
- [4/18/2017 9:16:30 AM] Timothy | TadahTech: From there, the auto updater I made will so it's thing
- [4/18/2017 9:17:39 AM] Nick HavocMC: I was more looking to have it tested
- [4/18/2017 9:17:47 AM] Nick HavocMC: Then we deploy it ourselves
- [4/18/2017 9:17:54 AM] Timothy | TadahTech: I mean if you want less automation that's fine too
- [4/18/2017 9:18:43 AM] Nick HavocMC: I think it's easier to just test ourselves than needing to make tons of tests
- [4/18/2017 9:19:30 AM] Timothy | TadahTech: Eh not really
- [4/18/2017 9:20:04 AM] Nick HavocMC: There'd be hundreds of tests for TMD
- [4/18/2017 9:20:14 AM] Nick HavocMC: I don't see a point in writing that
- [4/18/2017 9:20:20 AM] Timothy | TadahTech: And so a human doing it would be faster than a computer?
- [4/18/2017 9:20:49 AM] Nick HavocMC: What would take forever is writing all the tests
- [4/18/2017 9:21:20 AM] Timothy | TadahTech: Also debatable
- [4/18/2017 9:22:21 AM] Nick HavocMC: There would be hundreds of tests to write and even then
- [4/18/2017 9:22:42 AM] Nick HavocMC: There's really specific stuff I don't see how you could test
- [4/18/2017 9:22:57 AM] Timothy | TadahTech: So having someone go through and do every command and interaction would take somehow less time?
- [4/18/2017 9:23:09 AM] Nick HavocMC: No - only test what changes
- [4/18/2017 9:23:31 AM] Timothy | TadahTech: And you couldn't write the tests that way?
- [4/18/2017 9:24:30 AM] Nick HavocMC: I just don't see a point - we're already behind on new content with converting everything. It'd be cool but I think it's more advanced when we needed
- [4/18/2017 9:24:56 AM] Nick HavocMC: We have over 1,000 classes at least, many with multiple functions
- [4/18/2017 9:25:35 AM] Nick HavocMC: That would be tons to write when we can just test it ourselves
- [4/18/2017 9:25:39 AM] Timothy | TadahTech: You're misunderstanding
- [4/18/2017 9:26:00 AM] Timothy | TadahTech: But whatever you da boss. Tell me how you want it to work and I'll get it done
- [4/18/2017 9:26:25 AM] Nick HavocMC: What would an example test be?
- [4/18/2017 9:26:37 AM] Nick HavocMC: Or more what would it do
- [4/18/2017 9:28:56 AM] Timothy | TadahTech: You'd write a class. You'd give it some example objects. You call methods with example parameters and then verify the result is what you wanted it to be
- [4/18/2017 9:30:04 AM] Nick HavocMC: How would you write a test in hell night to check if a player when parachuting is being flagged by the Anti Cheat
- [4/18/2017 9:31:45 AM] Timothy | TadahTech: Off the top of my head I can't write that logic. Especially not on my phone.
- [4/18/2017 9:39:38 AM] Timothy | TadahTech: But that's not something you need to test every single build. Once it works it works
- [4/18/2017 9:39:54 AM] Timothy | TadahTech: You're assuming you have to write tests for everything and anything. You don't.
- [4/18/2017 9:49:08 AM] Timothy | TadahTech: So tell me how you want auto deployment to work and I'll make it so
- [4/18/2017 10:03:27 AM] Nick HavocMC: Artifacotry Admin user details:
- User: admin
- Pass: password (feel free to change it)
- User: havocmc
- password: havomc
- ^that's the one for you guys to useWhat port are those on
- [4/18/2017 10:03:32 AM] Nick HavocMC: Or how do I get to them
- [4/18/2017 10:04:40 AM] Timothy | TadahTech: I'll teach you when I get home. It requires some configuring on your end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement