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

OSS Gate Workshop: php-kagawa: 2024-05-12: tfujita: cakephp: Work log #1825

Open
tttfujita opened this issue May 12, 2024 · 8 comments
Open
Labels
work log ワークショップ作業メモ

Comments

@tttfujita
Copy link

This is a work log of a "OSS Gate workshop".
"OSS Gate workshop" is an activity to increase OSS developers.
Here's been discussed in Japanese. Thanks.

作業ログ作成時の説明

以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。

OSS Gate Workshop: ${LOCATION}: ${YEAR}-${MONTH}-${DAY}: ${ACCOUNT_NAME}: ${OSS_NAME}: Work log

タイトル例↓:

OSS Gate Workshop: Tokyo: 2017-01-16: kou: Rabbit: Work log

OSS Gateワークショップ関連情報

  • スライド:ワークショップの進行に使っているスライドがあります。
  • チャット:OSS開発に関することならなんでも相談できます。ワークショップが終わった後もオンラインで相談しながら継続的にOSSの開発に参加しましょう!
  • シナリオ:ワークショップの目的・内容・進め方の詳細が書いています。
  • 過去のビギナーの作業ログ:他の人の作業ログから学べることがいろいろあるはずです。
@tttfujita tttfujita added the work log ワークショップ作業メモ label May 12, 2024
@tttfujita
Copy link
Author

tttfujita commented May 12, 2024

@tttfujita
Copy link
Author

ライセンスは、「MIT license」OK!
MIT license

@tttfujita
Copy link
Author

tttfujita commented May 12, 2024

環境作る
git clone https://github.com/cakephp/cakephp.git

@tttfujita
Copy link
Author

パッケージ入れる
composer install

@tttfujita
Copy link
Author

動作確認する
https://github.com/cakephp/cakephp/blob/5.x/.github/CONTRIBUTING.md#test-cases-codesniffer-and-static-analysis

composer test

@tttfujita
Copy link
Author

tttfujita commented May 12, 2024

エラー出た
いいのか??

% composer test
> phpunit
PHPUnit 10.5.3 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.7
Configuration: /cakephp/phpunit.xml.dist

WPHP Warning:  /private/var/folders/vc/n70fwzx54f52rd49yn9lghn40000gn/T/cache/tmp_4bKIeq/ is not writable in /cakephp/src/Cache/Engine/FileEngine.php on line 424

Warning: /private/var/folders/vc/n70fwzx54f52rd49yn9lghn40000gn/T/cache/tmp_4bKIeq/ is not writable in /cakephp/src/Cache/Engine/FileEngine.php on line 424

There were 3 errors:

1) Cake\Test\TestCase\Database\Schema\MysqlSchemaTest::testDescribeTableFunctionalIndex
Cake\Database\Exception\DatabaseException: Columns used in index `child_ids_idx` in table `functional_index` must be added to the Table schema first. The column `` was not found.

/cakephp/src/Database/Schema/TableSchema.php:492
/cakephp/src/Database/Schema/SqliteSchemaDialect.php:389
/cakephp/src/Database/Schema/Collection.php:161
/cakephp/src/Database/Schema/Collection.php:121
/cakephp/tests/TestCase/Database/Schema/MysqlSchemaTest.php:557
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:1116
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:655
/cakephp/vendor/phpunit/phpunit/src/Framework/TestRunner.php:103
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:489
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:63
/cakephp/vendor/phpunit/phpunit/src/TextUI/Application.php:189

2) Cake\Test\TestCase\Database\SchemaCacheTest::testBuildEnablesMetadataCache
Cake\Database\Exception\DatabaseException: Columns used in index `child_ids_idx` in table `functional_index` must be added to the Table schema first. The column `` was not found.

/cakephp/src/Database/Schema/TableSchema.php:492
/cakephp/src/Database/Schema/SqliteSchemaDialect.php:389
/cakephp/src/Database/Schema/Collection.php:161
/cakephp/src/Database/Schema/Collection.php:121
/cakephp/src/Database/Schema/CachedCollection.php:92
/cakephp/src/Database/SchemaCache.php:65
/cakephp/tests/TestCase/Database/SchemaCacheTest.php:96
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:1116
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:655
/cakephp/vendor/phpunit/phpunit/src/Framework/TestRunner.php:103
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:489
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:63
/cakephp/vendor/phpunit/phpunit/src/TextUI/Application.php:189

3) Cake\Test\TestCase\Database\SchemaCacheTest::testBuildNoArgs
Cake\Database\Exception\DatabaseException: Columns used in index `child_ids_idx` in table `functional_index` must be added to the Table schema first. The column `` was not found.

/cakephp/src/Database/Schema/TableSchema.php:492
/cakephp/src/Database/Schema/SqliteSchemaDialect.php:389
/cakephp/src/Database/Schema/Collection.php:161
/cakephp/src/Database/Schema/Collection.php:121
/cakephp/src/Database/Schema/CachedCollection.php:92
/cakephp/src/Database/SchemaCache.php:65
/cakephp/tests/TestCase/Database/SchemaCacheTest.php:107
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:1116
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:655
/cakephp/vendor/phpunit/phpunit/src/Framework/TestRunner.php:103
/cakephp/vendor/phpunit/phpunit/src/Framework/TestCase.php:489
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/Framework/TestSuite.php:340
/cakephp/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:63
/cakephp/vendor/phpunit/phpunit/src/TextUI/Application.php:189

ERRORS!
Tests: 7776, Assertions: 23125, Errors: 3, Warnings: 79, Deprecations: 1, Skipped: 324, Incomplete: 3.
Script phpunit handling the test event returned with error code 2

@tttfujita
Copy link
Author

テストを実行したらエラーが出たというissueを出していいらしい。学び。
warningなので重要ししていなかったり、そういうものですという返事があるらしい。

@tttfujita
Copy link
Author

tttfujita commented May 12, 2024

Issue書いてみた
Run the test, get three errors. #17684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work log ワークショップ作業メモ
Projects
None yet
Development

No branches or pull requests

1 participant