• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / spock-github-extension / 15
97%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2021 04:13PM UTC
Jobs 1
Files 11
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
15

push

jenkins

Improved the sturdyness of repository deletion (#3)

Refactoring of the extension, changing from a inheritance based structure, to a composition based one. This helps a lot with testing, and makes the code easier to understand, and it didn't changed any public interfaces, so it is entirely retro compatible.

The main points of the refactor are:

    Repository creation behavior isolated in the RepositoryFactory class
    The GithubRepository/SharedGithubRepository/GithubRepositoryFeature interceptors now inherits directly from AbstractMethodInterceptor.
    The underlying operations on Field-based interceptors are now in the RepositoryFieldOperations which is a slightly-changed, and has similar methods to the old GithubRepositoryFieldInterceptor.
    The slightly more complex object creation process is isolated in static factory methods in the interceptors.

Besides there were several some in the deletion code to make it more sturdy, the main ones being:

    deletions now are retried in case of non FileNotFoundException exceptions, and also checks if the repository still exists before trying deletion
    Catch blocks that ignored Exception exceptions in the deletion process, now are only ignoring FileNotFoundException (404) exceptions, to make more clear which errors are happening.
    Added tests for the specific situation of creating new repositories with the same name of existing ones.

The refactoring is isolated in the refactor/interceptors branch, for ease of comparison, and if so wished, a new PR with only the refactored code can be open as well.
Co-authored-by: Joaquim Neto <joaquim.neto@wooga.net>

99 of 99 new or added lines in 7 files covered. (100.0%)

240 of 247 relevant lines covered (97.17%)

0.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15.1 13 Jul 2021 04:13PM UTC 0
97.17
Source Files on build 15
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #15
  • f6575793 on github
  • Prev Build on master (#8)
  • Next Build on master (#17)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc