Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[CI] Fix package-tests workflow checks for contracts #44511

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

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Dec 8, 2021

Q A
Branch? 5.3
Bug fix? no
New feature? no
Deprecations? no
Tickets #44506 (comment)
License MIT
Doc PR -

Our expectations are different for contracts.

@carsonbot carsonbot added this to the 5.3 milestone Dec 8, 2021
@fancyweb fancyweb requested a review from Nyholm December 8, 2021 17:43
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Awesome.

@fabpot
Copy link
Member

fabpot commented Dec 9, 2021

Thank you @fancyweb.

@fabpot fabpot merged commit 6ff1b63 into symfony:5.3 Dec 9, 2021
@fancyweb fancyweb deleted the ci/package-tests-contracts branch December 9, 2021 12:41
_file_exist $DIR/README.md || localExit=1
_file_not_exist $DIR/phpunit.xml || localExit=1

if [ $(_jq '.new') == true ]; then
echo "Verifying new package"
_correct_license_file $DIR/LICENSE || localExit=1

if [ $(_jq '.component_bridge') == false ]; then
if [ $TYPE == 'component_bridge' ]; then
if [ ! $(cat composer.json | jq -e ".replace.\"$NAME\"|test(\"self.version\")") ]; then
echo "Composer.json's replace section needs to contain $NAME"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this done only for component bridges ? bundles, normal bridges (other than the phpunit one which is special) and components (other than runtime which is a composer plugin) should also be replaced.

And contract type should be replaced in src/Symfony/Contracts/composer.json file

fancyweb added a commit that referenced this pull request Jan 3, 2022
…ection (Nyholm)

This PR was merged into the 5.3 branch.

Discussion
----------

[CI] If package is not bridge, it should be in replace section

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Related to #44511. Ping `@fancyweb`

We should only add packages in the root composer's replace section for bundles, packages and contracts. Ie everything but bridges.

Commits
-------

d9f0d8e [CI] If package is not bridge, it should be in replace section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants