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

Result of pdepend plugin is not accessible #107

Closed
SimonHeimberg opened this issue Jul 31, 2017 · 16 comments
Closed

Result of pdepend plugin is not accessible #107

SimonHeimberg opened this issue Jul 31, 2017 · 16 comments

Comments

@SimonHeimberg
Copy link
Contributor

SimonHeimberg commented Jul 31, 2017

The charts generated by pdepend plugin are not accessible by any url because they are not in public directory nor any controller handles this.
The pdepend plugin prints a link. But when visiting it, a 404 error is shown of course.

@corpsee corpsee self-assigned this Aug 1, 2017
@corpsee corpsee added the bug label Aug 1, 2017
@corpsee
Copy link
Member

corpsee commented Aug 1, 2017

I Will try to fix it. Thanks!

@corpsee corpsee added this to the 1.x milestone Sep 27, 2017
@corpsee
Copy link
Member

corpsee commented Jan 4, 2018

dancryer/PHPCI#93

@awkward-minion
Copy link

Hello @corpsee ,
Is there any workaround for this ?

@corpsee
Copy link
Member

corpsee commented Jan 5, 2018

@lakshmajim Now I guess you may make /runtime/builds directory public in nginx/apache configuration. But it isn't good idea.

@SimonHeimberg
Copy link
Contributor Author

SimonHeimberg commented Jan 17, 2018

I understand that dancryer/PHPCI#93 mentions the same problem.
What they did is to display the images on the build page (in dancryer/PHPCI@39e9d94), but the printed url is still invalid.

@corpsee
Copy link
Member

corpsee commented Jan 17, 2018

@SimonHeimberg Thank you for the link ( dancryer/PHPCI@39e9d94)!

I think we can solve the problem by special rout (controller/action) which will return files for pdepend (like BuildStatusController::image returns status image).

@corpsee corpsee added the plugin label Jan 18, 2018
@vinpel
Copy link
Member

vinpel commented Jan 19, 2018

Additionaly the documentation miss a yaml example of the plugin.

@corpsee
Copy link
Member

corpsee commented Jan 19, 2018

This is an important note, thank you @vinpel! #143

corpsee added a commit that referenced this issue Jan 20, 2018
@corpsee
Copy link
Member

corpsee commented Jan 20, 2018

@SimonHeimberg @lakshmajim Fixed in branch improve-pdepend. Can you check it please?

@corpsee
Copy link
Member

corpsee commented Jan 24, 2018

Merged into master. Feel free to reopen and comment.

@corpsee corpsee closed this as completed Jan 24, 2018
@SimonHeimberg
Copy link
Contributor Author

SimonHeimberg commented Jan 30, 2018

Confirm that the url shown in the log works.

What we do not have is a link pointing always to the newest generated version. (This would have been the functionality of the original shown link. But it did not work.) In case somebody would like to include the link in the readme, as the log text tells. (I would prefer a link to the newest version of a branch anyway. Maybe create a symlink?)

Should we mention ...

  • that files in the artifacts directory will not be deleted when the build (or project) is deleted from php-censor?
  • that the output files are readable without login? (OK, this is expected here, else a link to an image would not work.)

@corpsee corpsee removed the bug label Jan 30, 2018
@corpsee
Copy link
Member

corpsee commented Jan 30, 2018

@SimonHeimberg You say reasonable things and questions. Now I know what to do next, thank you. 👍

  1. Link to the latest build in each branch is needed.
  2. Project artifacts directory deleting when deleted project is needed.
  3. I think that it is OK because it is a static content, but may be we should make direct links more random (Some hash instead of project/build ids).

@corpsee corpsee reopened this Jan 30, 2018
@corpsee corpsee changed the title result of pdepend plugin is not accessible Result of pdepend plugin is not accessible Jan 30, 2018
@corpsee corpsee modified the milestones: 1.x, 1.0 Feb 3, 2018
@SimonHeimberg
Copy link
Contributor Author

SimonHeimberg commented Feb 5, 2018

Note to 3. (output files readable without login):

  • This is expected for phpmd. Else it is not possible to include the generated images in an online README.md.
  • This is maybe unexpected for code coverage of phpunit. The coverage results show the entire source code. This is no problem for FOSS projects, but for others. A warning sounds apropriate.

@corpsee
Copy link
Member

corpsee commented Feb 25, 2018

Done.

  1. Added links for the last build of branch (for PHPUnit and PDepend artifacts).
  2. Application remove artifacts when removed build or project.
  3. Now names of the directories is more random.

@SimonHeimberg Can you check changes in the branch artifacts? Thanks!

corpsee added a commit that referenced this issue Mar 7, 2018
'php-censor.build.allow_public_artifacts' for allow/deny to generate
public artifacts (PHPUnit code coverage html report, Pdepend html
reports). Issue #107.
@corpsee
Copy link
Member

corpsee commented Mar 7, 2018

Added global application config (config.yml) option php-censor.build.allow_public_artifacts for allow/deny to generate public artifacts.

@corpsee
Copy link
Member

corpsee commented Mar 7, 2018

Now in master branch.

@corpsee corpsee closed this as completed Mar 7, 2018
@corpsee corpsee removed this from the Version 1.0.* (patch) milestone May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants