GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Linter failure details not shown on Travis? · Issue #21263 · nodejs/node

Linter failure details not shown on Travis? #21263

New issue
Copy link
New issue
Copy link
Closed
Closed
Linter failure details not shown on Travis?#21263
Copy link

Description

@richardlau
richardlau
opened on Jun 11, 2018
Issue body actions

Has anyone seen the Travis linter job fail? Did it report the actual failure?

Looking at nodejs/build#720 it doesn't look like that tap file is echoed in the Travis config so even if the job fails the failure details are not reported:

node/.travis.yml

Lines 1 to 24 in fa2d0a1

language: cpp
compiler:
- clang
sudo: false
cache: ccache
matrix:
include:
- os: linux
node_js: "latest"
script:
- NODE=$(which node) make lint-ci
- os: linux
install:
- ./configure
- make -j2 V=
script:
- make -j2 test-ci
before_install:
- export HOMEBREW_NO_AUTO_UPDATE=1 # work around https://github.com/travis-ci/travis-ci/issues/7456
- if [ $TRAVIS_OS_NAME = osx ]; then brew install ccache; fi
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
- export CXX="ccache clang++ -Qunused-arguments"
- export CC="ccache clang -Qunused-arguments"
- export JOBS=2

Activity

  1. richardlau commented on Jun 12, 2018

    @richardlau
    richardlau
    on Jun 12, 2018
    MemberAuthor
    More actions

    Here's an example failing Travis linter run, https://travis-ci.com/nodejs/node/jobs/128902170:

    $ NODE=$(which node) make lint-ci
    Running JS linter...
    make: *** [lint-js-ci] Error 1
    
    
    The command "NODE=$(which node) make lint-ci" exited with 2.
    

    So as suspected the details of the failure aren't shown making this less helpful.

  2. Trott commented on Jun 12, 2018

    @Trott
    Trott
    on Jun 12, 2018
    Member
    More actions

    Any idea if changing it to make lint would cause it to show the output? I wonder if the problem is stuff being swallowed by the tools/lint.js script.

  3. lundibundi commented on Jul 23, 2018

    @lundibundi
    lundibundi
    on Jul 23, 2018
    Member
    More actions

    @Trott not sure but maybe it's due to redirecting linter output to a file for ci target?

    run-lint-js-ci = tools/lint-js.js $(PARALLEL_ARGS) -f tap -o test-eslint.tap \
    		$(LINT_JS_TARGETS)
    

    And Travis doesn't seem to be configured to read that file if the job fails like Jenkins does (latest build action).

  4. richardlau commented on Aug 25, 2018

    @richardlau
    richardlau
    on Aug 25, 2018
    MemberAuthor
    More actions

    Fixed by #22417.

  5. richardlau
    closed this as completedon Aug 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.