-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
WIP: github actions phpunit #3172
Conversation
@@ -112,3 +112,26 @@ jobs: | |||
extensions: intl | |||
coverage: none # disable xdebug, pcov | |||
- run: composer global require friendsofphp/php-cs-fixer:2.14.* && ~/.composer/vendor/bin/php-cs-fixer fix --diff --dry-run | |||
|
|||
phpunit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Den neuen build brauchen wir, weil wir vorher phpunit nur in travis hatten?
Falls ja, kann jetzt ein travis build weg?
(Langfristig hätte ich am liebsten alle travis builds weg, und stattdessen github-actions haben - weil schneller)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolut, phpunit hatten wir bisher nur im travis.
wenn das hier funktioniert, würde ich den gleichen travis check entfernen.
|
||
// use different result printer with github actions checks integration | ||
if (getenv('GITHUB_ACTIONS')) { | ||
echo "Running in Github Actions\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich vermute, diese ausgabe führt zu headers already sent errors
echo "Running in Github Actions\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm nee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tatsächlich habe ich es auch lokal, sobald ich den anderen Printer nehme, dass die Warnings/errors kommen.
Kann es sein, dass die beim anderen result printer irgendwie unterdrückt werden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ich vermute dass es failed, weil die meldungen ein newline enthalten und daher direkt geflushed werden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bin heut nicht gut im raten.. :-)
|
||
$message = explode(PHP_EOL, $e->getMessage())[0]; | ||
|
||
$this->write("::{$this->getCurrentType()} file={$this->relativePath($path)},line={$line}::{$message}\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm ne, vermutlich sind die ausgaben hier der grund...hmm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm auch net :]
@@ -107,7 +107,7 @@ public function testLogout() | |||
{ | |||
$login = new rex_backend_login(); | |||
$login->setLogin($this->login, $this->password, false); | |||
$this->assertTrue($login->checkLogin()); | |||
$this->assertFalse($login->checkLogin()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ist das zufall oder hast du bewusst gerade die tests genommen zum testen die dann anschließend wg dem session header hart abbrechen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ne, reiner zufall. Die tests brechen wegen dem session handler auch schon ohne diese änderung ab.
Depends on #3174 |
Ich wundere mich dass die test errors nur als annotation im checks tab anzegeigt werden, aber nicht im changes tab auftauchen In https://github.com/mheap/phpunit-github-actions-printer Sieht es für mich so aus ala müsste es auch direkt am source angezeigt werden |
Hmm wg der errors mal upstream reported |
hab mich auch gewundert... Deswegen hatte ich den einen Testcase auch failen lassen, um zu sehen, ob die Marker nur bei geänderten Dateien dran kommen. |
hab aktuell keine idee |
(was ich mir noch vorstellen könnte: den fehler den wir sehen hatten wir schon vorher in der testsuite und er entsteht nicht durch die änderungen aus dem PR selbst) |
das so oder so. Hab beides auch lokal bei mir aufm Rechner getestet. Meine Vermutung ist nach wie vor, dass der andere den unterdrückt. Ich schmeiß mal nen debugger an, ggf. kann ich damit sehen warum bei dem einen kein fehler kommt. |
Es gibt ein neues release.. mal updaten und ausprobieren |
closes #3169