-
Notifications
You must be signed in to change notification settings - Fork 23
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
Replace Travis with GitHub Actions #34
Conversation
@falkenhawk can you check if GitHub Actions need to be enabled for this to work? |
hi Elan, I don't see any specific option to enable for gha to run here. They are enabled by default. Perhaps there is a setting to toggle on your fork? Do you think there might be a chance to have GHA running for full range 5.3-8.0 of php versions, as it was on travis? |
the other versions pass (note this is without mysql and pgsql yet): I wonder, is it related to some php.ini setting? |
@falkenhawk do you have a list of PHP extensions needed for the test suite? from Travis config I see |
|
Seems eventually, remove the Travis specific exceptions, perhaps the input data could be all set same for all versions. but I'm leaving out that for now out of this PR. |
any ideas on this one?
happens with 5.5 and 5.4 only: |
this makes no sense:
how can array value assignment produce such error? all the values are variables, no function calls: $this->_parts[self::FROM][$correlationName] = array(
'joinType' => $type,
'schema' => $schema,
'tableName' => $tableName,
'joinCondition' => $cond
); I can not find any match for such error message in zf1s codebase... |
Seems the error comes from ext/mysqli: @falkenhawk what can we do here with that? |
- Add mysql service - Add memcached service
This is to clearly indicate specific encoding is expected
locale test goes totally bizarre after installing required locales. note two commas in value! the input number is it fails in all PHP versions except 7.4! |
seems enabling locale tests by installing needed locales, brings more trouble than needed. the tests are not run in proper isolation, i.e global resource like locale must be restored after a test, and that is not performed, neither are tests run in isolation (i think phpunit 3.7 does not even support that), and sql queries are written with very bad style, resulting syntax error as numeric value value formatted with comma according to locale rules, gets parsed as two values in sql.
|
…reWithTypeFloat affects 5.5 as well"" This reverts commit 94037a1.
Whoa that's some struggle here. You are doing a tremendous job @glensc thank you! I am sorry I cannot be of much help here as I am currently busy with other work-related stuff... How come Travis had not been throwing such errors before 🤔 (locale, db, etc.) |
My guess why Travis did not fail on these, as those tests were skipped. The I've also felt Travis downfall, in projects I was forced to switch to GHA because Travis's pipeline was in the queue for days, which is not acceptable. And at some point the Travis integration was not visible in GitHub at all, had to contact Travis support, and they said I need to remove the token and setup Integration again. |
* master: Move composer.json validate of sub-packages to GitHub Actions Disable ext-xdebug to remove composer xdebug warning
* master: Use versioned dependencies in composer.json Install composer dependencies in CI Also validate composer.json of the main package Add required description/license to composer.json Backport test for CVE-2021-3007 Backport of fix for CVE-2021-3007 in Zend_Http_Response_Stream
* upstream/master: Add minimal phpunit run in GitHub Actions (zf1s#44) Conflicts: .github/workflows/tests.yml
* upstream/master: Disable memcached tests in Travis Setup TestConfiguration for CI to enable memcache tests Add Memcache service to GitHub Actions Rename tests/TestConfiguration.php.dist to tests/TestConfiguration.dist.php
Current status - travis: (php 8.0)
GHA: (php 8.0)
There are even less tests skipped on GHA compared to travis. 🎉 So I think the migration can be considered as complete now and travis config can be deleted? |
@falkenhawk thanks for your kind words. yes, Travis can be deleted. not sure about this PR in particular, here may be some changes that haven't been extracted to separate PR. This PR itself is not mergeable, and rebase is not worthy of it. but could do another merge commit here and see what changes remained. |
From the top of my head I recall problematic were MySQL, locale tests. Actually locale tests are GHA only, they were not properly done in Travis. I think memcache and pgsql may be still missing from GitHub Actions. |
Conflicts: .github/workflows/tests.yml .travis.yml tests/Zend/Locale/FormatTest.php tests/Zend/Validate/FloatTest.php
Merged changes from origin/master. Some changes remaining, if you wish you could cherry-pick them. But seems mostly those are just because the changes extracted here were solved differently after review. And some spelling fixes and missing properties are not that important. |
master
first.CI
instead ofTRAVIS
envZend_Db_Select::_join(): Error occurred while closing statement