Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#339] 0pdd Jira support #357

Merged
merged 17 commits into from
Jun 10, 2022
Merged

[#339] 0pdd Jira support #357

merged 17 commits into from
Jun 10, 2022

Conversation

Doldrums
Copy link

@Doldrums Doldrums commented Jun 2, 2022

Pull Request resolves issue [#339] - 0pdd support for Jira, and dedicated to Jira integration to 0pdd source code

In general, here is an extension of the logic of version control systems, by adding
✅ Jira client class implementation
✅ Jira repository class implementation
✅ Jira-ruby gem dependencies
✅ Jira tickets body template implementation

Environment

JIRA API Gem jira-ruby. This gem provides access to the Atlassian JIRA REST API.
https://github.com/sumoheavy/jira-ruby

Test coverage

next PR.

@0crat 0crat added the 0crat/new label Jun 2, 2022
@Doldrums Doldrums mentioned this pull request Jun 2, 2022
@yegor256
Copy link
Owner

yegor256 commented Jun 7, 2022

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jun 7, 2022

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Jun 7, 2022

@rultor merge

@Doldrums @yegor256 Oops, I failed. You can see the full log here (spent 5min)

Reading public/images/git-logo.svg...
Reading public/images/logo.svg...
Reading model/model.rb...
Reading model/README.md...
Reading model/nn.rb...
Reading test/test_log.rb...
Reading test/test_github_invitations.rb...
Reading test/test_job.rb...
Reading test/fake_repo.rb...
Reading test/test_gitlab.rb...
Reading test/test_job_commiterrors.rb...
Reading test/fake_log.rb...
Reading test/test_job_emailed.rb...
Reading test/test_logged_storage.rb...
Reading test/test_logged_tickets.rb...
Reading test/test_truncated.rb...
Reading test/test_milestone_tickets.rb...
Reading test/test_puzzles.rb...
Reading test/fake_github.rb...
Reading test/test_maybe_text.rb...
Reading test/test_versioned_storage.rb...
Reading test/test_sentry_tickets.rb...
Reading test/test_commit_tickets.rb...
Reading test/fake_gitlab.rb...
Reading test/test_github.rb...
Reading test/fake_storage.rb...
Reading test/test_safe_storage.rb...
Reading test/test_diff.rb...
Reading test/test_0pdd.rb...
Reading test/fake_tickets.rb...
Reading test/test_github_tickets.rb...
Reading test/test_upgraded_storage.rb...
Reading test/test_git_repo.rb...
Reading test/test_job_detached.rb...
Reading test/test__helper.rb...
Reading test/test_exec.rb...
Reading test/test_cached_storage.rb...
Reading test/test_credentials.rb...
Reading test/test_once_storage.rb...
Reading .pdd...
Reading dynamodb-local/tables/0pdd-events.json...
Reading dynamodb-local/config/dynamo.yml...
Reading dynamodb-local/pom.xml...
Reading .rultor.yml...
Reading objects/truncated.rb...
Reading objects/jobs/job_commiterrors.rb...
Reading objects/jobs/job.rb...
Reading objects/jobs/job_emailed.rb...
Reading objects/jobs/job_detached.rb...
Reading objects/jobs/job_recorded.rb...
Reading objects/jobs/job_starred.rb...
Reading objects/vcs/github.rb...
Puzzle 312-e81466ef 30/DEV at objects/vcs/github.rb
Reading objects/vcs/gitlab.rb...
Reading objects/vcs/jira.rb...
\u001b[31mERROR\u001b[0m: objects/vcs/jira.rb; puzzle at line #35; TODO found, but puzzle can't be parsed, most probably because TODO is not followed by a puzzle marker, as this page explains: https://github.com/yegor256/pdd#how-to-format
If you can't understand the cause of this issue or you don't know how to fix it, please submit a GitHub issue, we will try to help you: https://github.com/yegor256/pdd/issues. This tool is still in its beta version and we will appreciate your feedback. Here is where you can find more documentation: https://github.com/yegor256/pdd/blob/master/README.md.
Exit code is 1
container cd1e69b1e8ab85b4b54fdbb1d5fc41111f3ae5e48f1e7ff162ce063c9beb81a0 is dead
Tue Jun  7 11:08:09 CEST 2022

@Doldrums
Copy link
Author

Doldrums commented Jun 7, 2022

@yegor256 try again pls

@yegor256
Copy link
Owner

yegor256 commented Jun 7, 2022

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jun 7, 2022

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Jun 7, 2022

@rultor merge

@Doldrums @yegor256 Oops, I failed. You can see the full log here (spent 4min)

faraday                      1.10.0   2.3.0
faraday-excon                1.1.0    2.1.0
faraday-httpclient           1.0.1    2.0.1
faraday-multipart            1.0.3    1.0.4
faraday-net_http             1.0.1    2.0.3
faraday-net_http_persistent  1.2.0    2.0.1
faraday-patron               1.0.0    2.0.1
faraday-rack                 1.0.0    2.0.0
gitlab                       4.17.0   4.18.0   = 4.17.0   default
haml                         5.2.1    5.2.2    = 5.2.1    default
jwt                          2.3.0    2.4.0
mocha                        1.11.2   1.14.0   = 1.11.2   default
multipart-post               2.1.1    2.2.0
octokit                      4.20.0   4.24.0   = 4.20.0   default
pdd                          0.20.6   0.20.8   = 0.20.6   default
rake                         13.0.3   13.0.6   = 13.0.3   default
rubocop                      0.69.0   1.30.1   = 0.69.0   default
rubocop-rspec                1.33.0   2.11.1   = 1.33.0   default
sawyer                       0.8.2    0.9.2
sentry-raven                 3.1.1    3.1.2    = 3.1.1    default
sprockets                    4.0.2    4.0.3    = 4.0.2    default
terminal-table               1.8.0    3.0.2
test-unit                    3.4.0    3.5.3    = 3.4.0    default
unicode-display_width        1.6.1    2.1.0
xcop                         0.6.2    0.6.3    = 0.6.2    default
Some dependencies are outdated
Test config is absent
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Test config is absent
Test config is absent
Test config is absent
DynamoDB Local table: ACTIVE
DynamoDB Local is running in PID 20044
Coverage report generated for Unit Tests to /home/r/repo/coverage. 328 / 1077 LOC (30.45%) covered.
Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
\u001b[1mTraceback\u001b[m (most recent call last):
	9: from /home/r/.ruby/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:5:in `<main>'
	8: from /home/r/.ruby/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:5:in `select'
	7: from /home/r/.ruby/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:17:in `block in <main>'
	6: from /home/r/.ruby/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:17:in `require'
	5: from /home/r/repo/test/test_0pdd.rb:25:in `<top (required)>'
	4: from /home/r/repo/test/test_0pdd.rb:25:in `require_relative'
	3: from /home/r/repo/0pdd.rb:69:in `<top (required)>'
	2: from /home/r/.ruby/gems/sinatra-2.2.0/lib/sinatra/base.rb:1958:in `block (2 levels) in delegate'
	1: from /home/r/.ruby/gems/sinatra-2.2.0/lib/sinatra/base.rb:1475:in `configure'
/home/r/repo/0pdd.rb:126:in `block in <top (required)>': \u001b[1muninitialized constant JiraClient (\u001b[1;4mNameError\u001b[m\u001b[1m)\u001b[m
rake aborted!
Command failed with status (1)
/home/r/.ruby/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/home/r/.ruby/bin/ruby_executable_hooks:24:in `eval'
/home/r/.ruby/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
DynamoDB Local killed in PID 20044
container 83cc459edddd3dd6c5ce12e2527207344e4c94ae0c99a3e5eb1bef44f62c7394 is dead
Tue Jun  7 16:16:46 CEST 2022

@Doldrums
Copy link
Author

Doldrums commented Jun 9, 2022

@yegor256

@yegor256
Copy link
Owner

yegor256 commented Jun 9, 2022

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jun 9, 2022

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor
Copy link
Collaborator

rultor commented Jun 9, 2022

@rultor merge

@Doldrums @yegor256 Oops, I failed. You can see the full log here (spent 26s)

+ docker --version
Docker version 17.12.0-ce, build c97c6d6
+ mkdir -p /home/rultor/.ssh
+ echo -e 'Host github.com\n\tStrictHostKeyChecking no\n'
+ chmod 600 /home/rultor/.ssh/config
+ git clone [email protected]:yegor256/0pdd.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email [email protected]
+ git config user.name rultor
+ '[' -z 'export '\''[email protected]:yegor256/0pdd.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''[email protected]:yegor256/0pdd.git'\''' ';' 'export '\''pull_id=357'\''' ';' 'export '\''[email protected]:Doldrums/0pdd.git'\''' ';' 'export '\''fork_branch=339-jira-support'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''pull_title=[#339] 0pdd Jira support'\''' ';' 'export '\''author=yegor256'\''' ';' 'sudo gem install pdd -v 0.20.5' ';' 'git config --global user.email "[email protected]"' ';' 'git config --global user.name "0pdd.com"' ';' 'export GEM_HOME=~/.ruby' ';' 'export GEM_PATH=$GEM_HOME:$GEM_PATH' ';' 'ruby -v' ';' 'bundle install --no-color' ';' 'pdd -f /dev/null' ';' 'bundle exec rake' ';'
+ sensitive=('config.yml')
+ rm -rf .gpg
+ cd repo
+ git remote add fork [email protected]:Doldrums/0pdd.git
+ git remote update
Fetching origin
Fetching fork
From github.com:Doldrums/0pdd
 * [new branch]      30/feature/show_total_repositories_count -> fork/30/feature/show_total_repositories_count
 * [new branch]      339-jira-support -> fork/339-jira-support
 * [new branch]      339-jira-tests -> fork/339-jira-tests
 * [new branch]      GitLab_hook_#175 -> fork/GitLab_hook_#175
 * [new branch]      dependabot/bundler/addressable-2.8.0 -> fork/dependabot/bundler/addressable-2.8.0
 * [new branch]      master     -> fork/master
+ args=
+ '[' default == default ']'
+ args=' --ff'
+ '[' default == no ']'
+ '[' default == only ']'
+ export BRANCH=__rultor
+ BRANCH=__rultor
++ git show-branch __rultor
++ wc -l
+ '[' 0 -gt 0 ']'
+ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
+ git checkout -B __rultor fork/339-jira-support
Switched to a new branch '__rultor'
Branch __rultor set up to track remote branch 339-jira-support from fork.
+ git checkout -B master origin/master
Switched to and reset branch 'master'
Branch master set up to track remote branch master from origin.
Your branch is up-to-date with 'origin/master'.
+ '[' false == true ']'
+ '[' false == true ']'
+ git merge --ff __rultor
Auto-merging Gemfile.lock
CONFLICT (content): Merge conflict in Gemfile.lock
Automatic merge failed; fix conflicts and then commit the result.
'cid' file is absent, container wasn't started correctly

Arina Cheverda added 2 commits June 10, 2022 14:29
…ra-support

� Conflicts:
�	Gemfile
�	Gemfile.lock
@Doldrums
Copy link
Author

@yegor256 fixed merge conflicts

@yegor256
Copy link
Owner

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Jun 10, 2022

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 4870af7 into yegor256:master Jun 10, 2022
@rultor
Copy link
Collaborator

rultor commented Jun 10, 2022

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 4min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants