Advertisement
Guest User

Untitled

a guest
May 15th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. [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?
  2. [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?
  3. [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. [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
  5. [4/17/2017 2:40:24 PM] Timothy | TadahTech: However, that'd be dope
  6. [4/17/2017 2:42:06 PM] Nick HavocMC: Whatever allows us to test easily and deploy easily works for me
  7. [4/17/2017 2:42:13 PM] Nick HavocMC: I do want to make sure we're spending time efficiently though
  8. [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
  9. [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
  10. [4/17/2017 2:45:09 PM] Nick HavocMC: What is the deployment system you made capable of
  11. [4/17/2017 2:45:15 PM] Nick HavocMC: Do we like specify a branch for the github
  12. [4/17/2017 2:45:23 PM] Nick HavocMC: and it pulls and deploys from there
  13. [4/17/2017 2:45:25 PM] Nick HavocMC: or what?
  14. [4/17/2017 2:45:35 PM] Timothy | TadahTech: Yep that's exactly what it does
  15. [4/17/2017 2:45:59 PM] Timothy | TadahTech: And I didn't make it. It's Jenkins
  16. [4/17/2017 2:48:05 PM] Nick HavocMC: A specific branch?
  17. [4/17/2017 2:48:35 PM] Timothy | TadahTech: Yeah
  18. [4/18/2017 9:16:20 AM] Timothy | TadahTech: Looked into it more. I can easily create the other system.
  19.  
  20. It will pull from test branch
  21. Run the tests in the classpath defined in the "test.yml" file.
  22. If all succeed, it will push that code to master.
  23. If it fails, an email will be sent out (or we interstate with slack and make it easier) what failed.
  24. 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
  25. [4/18/2017 9:16:30 AM] Timothy | TadahTech: From there, the auto updater I made will so it's thing
  26. [4/18/2017 9:17:39 AM] Nick HavocMC: I was more looking to have it tested
  27. [4/18/2017 9:17:47 AM] Nick HavocMC: Then we deploy it ourselves
  28. [4/18/2017 9:17:54 AM] Timothy | TadahTech: I mean if you want less automation that's fine too
  29. [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
  30. [4/18/2017 9:19:30 AM] Timothy | TadahTech: Eh not really
  31. [4/18/2017 9:20:04 AM] Nick HavocMC: There'd be hundreds of tests for TMD
  32. [4/18/2017 9:20:14 AM] Nick HavocMC: I don't see a point in writing that
  33. [4/18/2017 9:20:20 AM] Timothy | TadahTech: And so a human doing it would be faster than a computer?
  34. [4/18/2017 9:20:49 AM] Nick HavocMC: What would take forever is writing all the tests
  35. [4/18/2017 9:21:20 AM] Timothy | TadahTech: Also debatable
  36. [4/18/2017 9:22:21 AM] Nick HavocMC: There would be hundreds of tests to write and even then
  37. [4/18/2017 9:22:42 AM] Nick HavocMC: There's really specific stuff I don't see how you could test
  38. [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?
  39. [4/18/2017 9:23:09 AM] Nick HavocMC: No - only test what changes
  40. [4/18/2017 9:23:31 AM] Timothy | TadahTech: And you couldn't write the tests that way?
  41. [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
  42. [4/18/2017 9:24:56 AM] Nick HavocMC: We have over 1,000 classes at least, many with multiple functions
  43. [4/18/2017 9:25:35 AM] Nick HavocMC: That would be tons to write when we can just test it ourselves
  44. [4/18/2017 9:25:39 AM] Timothy | TadahTech: You're misunderstanding
  45. [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
  46. [4/18/2017 9:26:25 AM] Nick HavocMC: What would an example test be?
  47. [4/18/2017 9:26:37 AM] Nick HavocMC: Or more what would it do
  48. [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
  49. [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
  50. [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.
  51. [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
  52. [4/18/2017 9:39:54 AM] Timothy | TadahTech: You're assuming you have to write tests for everything and anything. You don't.
  53. [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
  54. [4/18/2017 10:03:27 AM] Nick HavocMC: Artifacotry Admin user details:
  55. User: admin
  56. Pass: password (feel free to change it)
  57. User: havocmc
  58. password: havomc
  59. ^that's the one for you guys to useWhat port are those on
  60. [4/18/2017 10:03:32 AM] Nick HavocMC: Or how do I get to them
  61. [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