? ? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
25 May 2019

What the title says.

avatar Hackwar Hackwar - open - 25 May 2019
avatar Hackwar Hackwar - change - 25 May 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2019
Category Unit Tests
avatar rdeutz
rdeutz - comment - 25 May 2019

The idea to let phpcs run as early as possible is the this is cheap and fast. It gives the developer a soon notice that the coding style is not correct. This is not a good idea, it will bind our resources for a longer timeframe, because as we know most of the PR needs corrections for code styles.

avatar HLeithner
HLeithner - comment - 25 May 2019

It looks like it's still the same order but uses not a custom image or Hannes?

avatar rdeutz
rdeutz - comment - 25 May 2019

@HLeithner if you look at the failed build you will see it runs after the prepare step, so a failed build will need 6 minutes more than before. I made a docker image based on 7.2-cli and installed phpcs v2 within it

avatar wilsonge
wilsonge - comment - 25 May 2019

@rdeutz the issue is we want to run phpcs from the standards located here https://github.com/joomla/coding-standards which means we need to have run composer install first (although not the npm install). So unless we separate them (which would be fine - i think npm is the majority of the 6 minutes). we have to run after prepare

avatar HLeithner
HLeithner - comment - 25 May 2019

@rdeutz oops didn't notice this...

avatar wilsonge wilsonge - change - 25 May 2019
Labels Added: ? ?
avatar rdeutz
rdeutz - comment - 25 May 2019

@wilsonge we can do this as part of the docker image build, we are cache composer anyway. We really need to make this as quick as possible and is not something that change every hour

avatar wilsonge
wilsonge - comment - 25 May 2019

That's absolutely fine. The cached version of composer should be just fine for this!

avatar Hackwar
Hackwar - comment - 26 May 2019

I've updated the order of steps and that should make it rather fast enough. Unfortunately we seem to have a discrepancy between the sniffs in our phpcs image and our repo or something like that. Anyway, it fails at that one file.

avatar joomla-cms-bot joomla-cms-bot - change - 27 May 2019
Category Unit Tests Unit Tests Repository
avatar Hackwar
Hackwar - comment - 27 May 2019

I excluded the node_modules folder and now this passes. (I also ordered the excluded folders alphanumerically.)

avatar wilsonge wilsonge - change - 1 Jun 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-01 15:27:19
Closed_By wilsonge
avatar wilsonge wilsonge - close - 1 Jun 2019
avatar wilsonge wilsonge - merge - 1 Jun 2019
avatar wilsonge
wilsonge - comment - 1 Jun 2019

Thanks!

Add a Comment

Login with GitHub to post a comment