php-censor: Build failing

I’m trying to build the following project: https://github.com/omegad-biz/fault-manager/tree/develop

but it fails: image

My .php-censor.yml file is:

build_settings:
  directory: ./src
  ignore:
    - ./vendor
    - ./tests
    - ./docs
    - ./build
    - ./_compiled
  allowed_warnings: -1

setup:
  composer:
    action: install

test:

  php_unit:
    config:
      - phpunit.xml.dist
    directories:
      - tests
    coverage: true

  security_checker: ~

  php_parallel_lint: ~

  pdepend: ~

  phan: ~

  php_code_sniffer:
    standard: PSR2
    allowed_errors: -1

  php_cpd: ~

  php_docblock_checker: ~

  php_loc: ~

  php_mess_detector:
    rules:
      - cleancode
      - controversial
      - codesize
      - design
      - naming
      - unusedcode

  technical_debt: ~

failure:
  email:
    committer: true
    default_mailto_address: panosru@me.com

complete:
  email:
    default_mailto_address: panosru@me.com

I’m not sure why it does not see composer.json since it is in place, also I’m getting Exception: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. but the email is correct.

Build with debug:

Args: ["cd .. && git clone --recursive  -b \"%s\" \"%s\" \"%s\"","develop","https:/github.com/omegad-biz/fault-manager.git","<BUILD_PATH>/"]
Command: cd .. && git clone --recursive  -b "develop" "https:/github.com/omegad-biz/fault-manager.git" "<BUILD_PATH>/"
sh: 0: getcwd() failed: No such file or directory
Cloning into '<PHP_CENSOR_PATH>/runtime/builds/3/65_b358d515'...

Execution status: 0
Args: ["cd \"%s\" && git checkout %s --quiet","<BUILD_PATH>/","2f7a806d0b5dedfabf1f344d2107f846f085708f"]
Command: cd "<BUILD_PATH>/" && git checkout 2f7a806d0b5dedfabf1f344d2107f846f085708f --quiet
Execution status: 0
Args: ["cd \"%s\" && git rev-parse HEAD","<BUILD_PATH>/"]
Command: cd "<BUILD_PATH>/" && git rev-parse HEAD
2f7a806d0b5dedfabf1f344d2107f846f085708f
Execution status: 0
Args: ["cd \"%s\" && git log -1 --pretty=format:%%s %s","<BUILD_PATH>/","2f7a806d0b5dedfabf1f344d2107f846f085708f"]
Command: cd "<BUILD_PATH>/" && git log -1 --pretty=format:%s 2f7a806d0b5dedfabf1f344d2107f846f085708f
add php-censor.yml
Execution status: 0
Args: ["cd \"%s\" && git log -1 --pretty=format:%%ae %s","<BUILD_PATH>/","2f7a806d0b5dedfabf1f344d2107f846f085708f"]
Command: cd "<BUILD_PATH>/" && git log -1 --pretty=format:%ae 2f7a806d0b5dedfabf1f344d2107f846f085708f
panoskosmidis87@gmail.com
Execution status: 0
Build config from repository (.php-censor.yml)
Final config: {"build_settings":{"directory":"./src","ignore":["./vendor","./tests","./docs","./build","./_compiled"],"allowed_warnings":-1},"setup":{"composer":{"action":"install"}},"test":{"php_unit":{"config":["phpunit.xml.dist"],"directories":["tests"],"coverage":true},"security_checker":null,"php_parallel_lint":null,"pdepend":null,"phan":null,"php_code_sniffer":{"standard":"PSR2","allowed_errors":-1},"php_cpd":null,"php_docblock_checker":null,"php_loc":null,"php_mess_detector":{"rules":["cleancode","controversial","codesize","design","naming","unusedcode"]},"technical_debt":null},"failure":{"email":{"committer":true,"default_mailto_address":"panosru@me.com"}},"complete":{"email":{"default_mailto_address":"panosru@me.com"}}}
Working copy created: <BUILD_PATH>/

RUNNING PLUGIN: Composer (Stage: Setup)
Directory: <BUILD_PATH>/src/
Plugin options: {"action":"install"}
Looking for binary: composer, priority = local
Found in  (system): composer
Args: ["/usr/local/bin/composer --no-ansi --no-interaction  --working-dir=\"%s\" %s","<BUILD_PATH>/src/","install"]
Command: /usr/local/bin/composer --no-ansi --no-interaction  --working-dir="<BUILD_PATH>/src/" install
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https:/getcomposer.org/xdebug
Do not run Composer as root/super user! See https:/getcomposer.org/root for details
Composer could not find a composer.json file in <BUILD_PATH>/src
To initialize a project, please create a composer.json file as described in the https:/getcomposer.org/ "Getting Started" section

Execution status: 1
PLUGIN: FAILED
Exception: Plugin failed: composer

RUNNING PLUGIN: Email (Stage: Failure)
Directory: <BUILD_PATH>/src/
Plugin options: {"committer":true,"default_mailto_address":"panosru@me.com"}
Committer email: 'panoskosmidis87@gmail.com'
Committer option: 'true'
Addresses option: 'false'
Default mailTo option: 'panosru@me.com'
SMTP: 'false'
Exception: Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
PLUGIN: FAILED (ALLOWED)

BUILD FAILED!

RUNNING PLUGIN: Email (Stage: Complete)
Directory: <BUILD_PATH>/src/
Plugin options: {"default_mailto_address":"panosru@me.com"}
Committer email: 'panoskosmidis87@gmail.com'
Committer option: 'false'
Addresses option: 'false'
Default mailTo option: 'panosru@me.com'
SMTP: 'false'
Exception: Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
PLUGIN: FAILED (ALLOWED)

REMOVING BUILD.

Project settings: image

The right section To make it easier to get started, we've generated an SSH key... empty and does not generate any ssh key…

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (18 by maintainers)

Commits related to this issue

Most upvoted comments

@corpsee and @garas

Well, tbh I didn’t pay attention to RFC 2822, which indicates that the correct format should be John Doe <john.doe@gmail.com> rather than just john.doe@gmail.com.

Now that I fixed that in my email_settings.from_address I got: image

Thanks!

@panosru Are you sure that you test branch slack-fix? Your error from master because you didn’t run new migrations.

UPDATE: My apologies, it’s my fault. I fixed branch slack-fix now. Could you test branch again please?

What are your php-censor.email_settings in app/config.yml? Mailer receives empty ([]) email, so invalid. Maybe it is From address.

@panosru I fixed directory overloading in branches release-1.0 and master. The fix will be released with version 1.0.5.