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

Fix: Upload permissions error on end 2 end inline tokens test #12459

Merged
merged 1 commit into from
Dec 4, 2018

Conversation

jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented Nov 30, 2018

The adding-inline-tokens.test.js test was failing on travis, instead of an image upload being successfull we got an error reporting that no permissions exist.

This PR uses 2 commands on the docker container to do the following actions:
Create an uploads folder inside wp-content.
Change the folder permissions to 766.
766 was choose because according to the hierarchy we should follow when trying to fix permission problems available in https://codex.wordpress.org/Changing_File_Permissions is the most adequate value. The value bellow it (765) does not work.

How has this been tested?

I checked the end to end tests execute with success on our CI environment more specifically the test/e2e/specs/adding-inline-tokens.test.js test case.

@jorgefilipecosta jorgefilipecosta force-pushed the try/fix-end-2-end-inline-token-test branch 12 times, most recently from b6354f5 to 2982385 Compare December 4, 2018 15:59
@jorgefilipecosta jorgefilipecosta force-pushed the try/fix-end-2-end-inline-token-test branch from 2982385 to 064e7e2 Compare December 4, 2018 16:21
@jorgefilipecosta jorgefilipecosta requested a review from a team December 4, 2018 16:58
@jorgefilipecosta jorgefilipecosta changed the title Try: fix end 2 end inline tokens test Fix: end 2 end inline tokens test Dec 4, 2018
@jorgefilipecosta jorgefilipecosta changed the title Fix: end 2 end inline tokens test Fix: Upload permissions on end 2 end inline tokens test Dec 4, 2018
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

I have no idea whether it is a proper fix but it solves the issue as we can see on Travis 👍

@gziolo gziolo added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Dec 4, 2018
@gziolo gziolo added this to the 4.8 milestone Dec 4, 2018
Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

Fwiw this seems like a fine fix to me. 🚢

@jorgefilipecosta jorgefilipecosta modified the milestones: 4.8, 4.7 Dec 4, 2018
@jorgefilipecosta
Copy link
Member Author

jorgefilipecosta commented Dec 4, 2018

Merging this as it just changes scripts and un-skips an end to end test which may be useful in catching future regressions.
It does not changes any package exposed in the core.

@jorgefilipecosta jorgefilipecosta changed the title Fix: Upload permissions on end 2 end inline tokens test Fix: Upload permissions error on end 2 end inline tokens test Dec 4, 2018
@jorgefilipecosta jorgefilipecosta merged commit 46f789a into master Dec 4, 2018
@jorgefilipecosta jorgefilipecosta deleted the try/fix-end-2-end-inline-token-test branch December 4, 2018 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants