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

PHP 5.2x on Travis-CI - Test run & Code coverage generation Issues. #5

Open
NathanGibbs3 opened this issue Mar 7, 2019 · 5 comments
Assignees
Labels
invalid This doesn't seem right New-TechDebt Issue caused by previous commit to this repo. We created it. Tests Test Code & Config Issues. Local or CI Environments.

Comments

@NathanGibbs3
Copy link
Owner

NathanGibbs3 commented Mar 7, 2019

Item Description
Related Issues:
Depends on Issue(s): #54 #10
Dependency Type: Hard

Link to example:
https://travis-ci.com/NathanGibbs3/BASE/jobs/183155000
Other Info:
Travis-CI
PHP 5.2.17
PHPUnit 3.6.12
XDebug enabled via file in Repo: https://github.com/NathanGibbs3/BASE/blob/devel/tests/5.2-xdebug.ini
To Understand how XDebug is enabled, see code in: https://github.com/NathanGibbs3/BASE/blob/devel/tests/setupenv.sh
Expected Behavior:
Code Coverage Reports are generated & tests run without warnings.
Current Behavior:
After successfully running Unit tests, PHPUnit prints:
Generating code coverage report in Clover XML format ...
Followed by a bunch of Warning & Notice Errors about the code such as:
Warning: include(../base_conf.php): failed to open stream: No such file or directory in /home/travis/build/NathanGibbs3/BASE/admin/base_roleadmin.php on line 21
Warning: include(): Failed opening '../base_conf.php' for inclusion (include_path='.:/home/travis/.phpenv/versions/5.2.17/pear') in /home/travis/build/NathanGibbs3/BASE/admin/base_roleadmin.php on line 21
Notice: Undefined variable: BASE_path in /home/travis/build/NathanGibbs3/BASE/admin/base_roleadmin.php on line 22
Notice: Use of undefined constant _SOURCE - assumed '_SOURCE' in /home/travis/build/NathanGibbs3/BASE/includes/base_state_citems.inc.php on line 953
etc.
Code Coverage Reports are not generated.
Solution:
I suspect this is a PHP 5.2 related Issue.
As I've already run into other issues with the PHP 5.2 Build environment on Travis-CI.

@NathanGibbs3 NathanGibbs3 added Tests Test Code & Config Issues. Local or CI Environments. invalid This doesn't seem right labels Mar 7, 2019
NathanGibbs3 added a commit that referenced this issue Mar 13, 2019
NathanGibbs3 added a commit that referenced this issue Mar 13, 2019
NathanGibbs3 added a commit that referenced this issue Mar 13, 2019
NathanGibbs3 added a commit that referenced this issue Mar 13, 2019
NathanGibbs3 added a commit that referenced this issue Mar 13, 2019
@NathanGibbs3
Copy link
Owner Author

Added a basic base_conf.php file in commit 49a7f4c
Got the file copy location fixed in commit f333b88
Not sure what the issue could be, as it's still not working.
https://travis-ci.com/NathanGibbs3/BASE/jobs/184396606

NathanGibbs3 added a commit that referenced this issue Mar 14, 2019
Removed PHP 5.2 from CI Config.
CI builds for 5.2 started failing in devel yesterday.
Likely related to: https://blog.travis-ci.com/2017-04-17-precise-EOL
At some point, we will go through the same thing with PHP 5.3.
@NathanGibbs3 NathanGibbs3 self-assigned this Mar 15, 2019
@NathanGibbs3
Copy link
Owner Author

May be related to SSL support under PHP5.2x. More specifically the apparent lack thereof.
See: https://travis-ci.com/NathanGibbs3/BASE/jobs/197045705

NathanGibbs3 added a commit that referenced this issue May 14, 2019
NathanGibbs3 added a commit that referenced this issue May 14, 2019
NathanGibbs3 added a commit that referenced this issue May 14, 2019
NathanGibbs3 added a commit that referenced this issue Jun 7, 2019
         So that we can test PHP Safe Mode code paths.
         Reopens Issue #5
@NathanGibbs3 NathanGibbs3 reopened this Jun 7, 2019
@NathanGibbs3 NathanGibbs3 changed the title Code Coverage Generation Issues Travis-CI PHP 5.2 PHP 5.2x on Travis-CI - Test run & Code coverage generation Issues. Jun 7, 2019
@NathanGibbs3
Copy link
Owner Author

NathanGibbs3 commented Jun 7, 2019

Current sub Issues.

  • Package Installation.
    As PHP5.2 on travis-ci has no SSL support package installation broke when pear.php.net started using HTTPS by default.
    Solution: Manually script Package installation.
  • Test Run.
    Believe this is related to PHPUnit 3x. Need to research further.
  • Code Coverage.
    Related to XDebug extension not being enabled.
    Solution: Add custom config to Repo. and script it's installation into the environment.

NathanGibbs3 added a commit that referenced this issue Jun 7, 2019
         Added $BASE_path initialization to files in admin.
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
         Modified PHP 5.2 custom base_conf.
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
         Add/Test/Use Non Assuming Constant set routine.
         SetConst()
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
         All include(s) for includes/base_constants.inc.php
         Are now include_once()
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
         All include(s) for includes/base_state_common.inc.php
         Are now include_once()
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
         Conditional header exec.
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
NathanGibbs3 added a commit that referenced this issue Jun 8, 2019
NathanGibbs3 added a commit that referenced this issue Jun 9, 2019
         PHP 5.2x Unit Tests fix 1
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 21, 2019
NathanGibbs3 added a commit that referenced this issue Jun 22, 2019
@NathanGibbs3
Copy link
Owner Author

We've stopped chasing Issue #5 for now as we've hit a dead end in figuring out why it won't generate code coverage info in the default configuration.
Set these builds to use a custom phpunit config file with addUncoveredFilesFromWhitelist=false for now.

NathanGibbs3 added a commit that referenced this issue Jun 22, 2019
NathanGibbs3 added a commit that referenced this issue Jun 22, 2019
NathanGibbs3 added a commit that referenced this issue Jun 22, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 24, 2019
NathanGibbs3 added a commit that referenced this issue Jun 25, 2019
NathanGibbs3 added a commit that referenced this issue Jun 25, 2019
NathanGibbs3 added a commit that referenced this issue Jun 25, 2019
@NathanGibbs3 NathanGibbs3 added the New-TechDebt Issue caused by previous commit to this repo. We created it. label Sep 15, 2020
NathanGibbs3 added a commit that referenced this issue May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right New-TechDebt Issue caused by previous commit to this repo. We created it. Tests Test Code & Config Issues. Local or CI Environments.
Projects
None yet
Development

No branches or pull requests

1 participant