Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KARTEを支えるCI環境

positiveflat
November 08, 2016

 KARTEを支えるCI環境

positiveflat

November 08, 2016
Tweet

More Decks by positiveflat

Other Decks in Programming

Transcript

  1. ,"35&Λࢧ͑Δ$*؀ڥ
    1-"*% *OD
    :PIFJ/PEB

    View Slide

  2. ࣗݾ঺հ
    ໊લ:PIFJ/PEB

    ॴଐגࣜձࣾϓϨΠυ

    UXJUUFS!QPTJUJWFqBU
    *#.ιϑτ΢ΣΞ։ൃݚڀॴ

    ిࢠ৘ใ։ࣔؔ࿈ͷιϑτ΢ΣΞ։ൃ

    ʙגࣜձࣾϓϨΠυ

    ϦΞϧλΠϜ8FC઀٬πʔϧͷ։ൃ

    ʢ6* #BDLFOE $*৭ʑʣ

    View Slide

  3. ͲΜͳαʔϏεΛ։ൃ͍ͯ͠Δ͔
    ։ൃελϯεͱ໰୊ҙࣝ
    1-"*%ͷ$*؀ڥͷશମ૾
    ى͖ͨ໰୊ͱऔΓ૊ΜͰ͖ͨ͜ͱ
    ·ͱΊ

    View Slide

  4. ͲΜͳαʔϏεΛ։ൃ͍ͯ͠Δ͔

    View Slide

  5. WEB઀٬ϓϥοτϑΥʔϜ
    KARTEΛ։ൃ͍ͯ͠·͢

    View Slide


  6. Πϕϯτඵ
    ඵؒτϥοΩϯά਺
    Y
    ඵղੳ
    ղੳͷ.BY࣌ؒ
    ԯ

    ݄ؒྲྀ௨ֹۚ

    View Slide

  7. WEB઀٬ϓϥοτϑΥʔϜ
    KARTEΛ։ൃ͍ͯ͠·͢

    View Slide

  8. input - output

    View Slide

  9. 2015.3ͷϦϦʔεҎ߱

    1300ࣾҎ্ʹಋೖ

    View Slide

  10. ։ൃελϯεͱ໰୊ҙࣝ

    View Slide

  11. • શһ͕ࣗ෼Ͱߟ͑Δ
    • શһ͕θϩϕʔεͰߟ͑Δ
    • શһ͕੒௕͢Δ
    ࣗ༝ͰϑϥοτͳνʔϜͰɺεϐʔυײͷ͋Δ։ൃΛ໨ࢦ͢
    ࣦഊΛڐ༰ͯ͠ɺτϥΠΞϯυΤϥʔͰਐΜͰ͍͘

    View Slide

  12. Software development process

    ʢΑ͘ݟΔv-modelʣ

    View Slide





  13. ཁ݅ఆٛ ઃܭ ৄࡉઃܭ ࣮૷ ςετ ϦϦʔε ӡ༻
    ख໭Γίετ

    View Slide

  14. ςετࣗಈԽͷ໨త
    • Regression issueΛݮΒ͢
    • ख໭ΓΛ཈͑ͯ։ൃͷεϐʔυΛҡ࣋͢Δ
    • ςετͷίετ࡟ݮ

    View Slide

  15. 1-"*%ͷ$*؀ڥ

    View Slide

  16. Development process

    View Slide

  17. Release process (git-flow)
    3FMFBTF
    3FMFBTF
    CSBODI
    %FQMPZUP

    FWBMVBUJPO

    FOW
    .BOVBM

    5FTU
    %FQMPZUP

    QSPEVDUJPO

    FOW

    View Slide

  18. View Slide

  19. GUI Automation (selenium)

    View Slide

  20. ى͖ͨ໰୊ͱऔΓ૊ΜͰ͖ͨ͜ͱ

    View Slide

  21. ى͖ͨ໰୊
    • ࢖͍ͬͯΔΠϯελϯε͕஗͍
    • GUI automation testͰɺelement͕ͳ͔ͳ͔ݟ͔ͭ
    Βͳ͍(sleep஍ࠈ)
    • ςετʹ͕͔͔࣌ؒΔͱฒྻ਺Λ্͛ͨ͘ͳΔͷͰɺ
    ෆඞཁʹ࢖༻͢Δ୆਺͕ଟ͘ͳΔ

    View Slide

  22. CircleCIͰͷฒྻԽ

    View Slide

  23. CircleCI Enterprise
    • ࣗ෼ͰΠϯελϯεΛཱͯͯͦΕΛ࢖͑Δ

    (ςετʹ߹Θͤͯࣗ༝ʹmachine specΛ
    ௐ੔Ͱ͖Δʣ
    • 30 days trial

    View Slide

  24. GUI automation
    XFCESJWFSXBJU ESJWFS

    FMFNFOUTESJWFSpOE&MFNFOUT [email protected]

    SFUVSOXFCESJWFSQSPNJTFpMUFSFMFNFOUT FMFNFOU
    FMFNJT%JTQMBZFE

    UIFO FMFNFOUT
    FMFNFOUTMFOHUI
    UJNFPVU FSSPS.TH
    • elementݟ͔ͭΒͳ͍໰୊
    • ؀ڥʹΑͬͯඳը͕஗͍
    • ୯७ͳsleepͩͱඳը࣌ؒͷมԽʹରԠͰ͖ͳ͍

    View Slide

  25. ݱࡏͷ՝୊
    • Manual testͷ෦෼͕࢒͍ͬͯΔ
    • ࣮ߦ͕࣌ؒ௕͍

    View Slide

  26. ࠓޙͷ༧ఆ
    • Dockerizeͯ͠ςετ༻ͷ؀ڥઃఆͷ࣌ؒ΋࡟
    ݮ͢Δ
    • production؀ڥ΁ͷdeployલͷςετ΋ࣗಈԽ

    ʢΠϯλʔϯͷֶੜ͕ࣗಈԽதʂ΋͏͙͢׬੒ʣ

    View Slide

  27. 5. ·ͱΊ
    • PLAIDͷCI؀ڥͷ঺հ
    • ى͖ͨ໰୊ͱऔΓ૊ΜͰ͖ͨ͜ͱ

    View Slide

  28. 1-"*% *OD
    ΤϯδχΞืूதͰ͢ʂ

    View Slide