Skip to content

Define CLICOLOR_FORCE=1 env var in CI runs#631

Merged
smorimoto merged 2 commits intoocaml:masterfrom
MisterDA:define-CLICOLOR_FORCE-true
Nov 26, 2022
Merged

Define CLICOLOR_FORCE=1 env var in CI runs#631
smorimoto merged 2 commits intoocaml:masterfrom
MisterDA:define-CLICOLOR_FORCE-true

Conversation

@MisterDA
Copy link
Copy Markdown
Contributor

This env var is supported by some tools to force them to emit ANSI escape sequences corresponding to colors even if they detect that they're not running in tty, which is th case for CI jobs.

It is going to be supported in Dune 3.6.0, and perhaps other compilers and build systems.

@MisterDA MisterDA force-pushed the define-CLICOLOR_FORCE-true branch from 7fc81d3 to 299cee2 Compare October 28, 2022 15:30
@MisterDA
Copy link
Copy Markdown
Contributor Author

@smorimoto how do I rebuild the action to make the CI succeed?

@MisterDA MisterDA force-pushed the define-CLICOLOR_FORCE-true branch from 38e70bd to c528145 Compare November 2, 2022 12:09
@smorimoto smorimoto force-pushed the define-CLICOLOR_FORCE-true branch from c528145 to dc63bf0 Compare November 7, 2022 19:24
@smorimoto
Copy link
Copy Markdown
Member

Could you add a changelog entry?

This env var is supported by some tools to force them to emit ANSI
escape sequences corresponding to colors even if they detect that
they're not running in tty, which is th case for CI jobs.

It is going to be supported in Dune 3.6.0, and perhaps other compilers
and build systems.

Signed-off-by: Antonin Décimo <antonin@tarides.com>
@MisterDA MisterDA force-pushed the define-CLICOLOR_FORCE-true branch from dc63bf0 to 03f6cce Compare November 8, 2022 12:35
@MisterDA
Copy link
Copy Markdown
Contributor Author

MisterDA commented Nov 8, 2022

I've applied your suggestion, added a changelog entry, and rebuild the action.

@MisterDA
Copy link
Copy Markdown
Contributor Author

Dune 3.6 was just released with support for this feature!

Signed-off-by: Antonin Décimo <antonin@tarides.com>
@smorimoto smorimoto force-pushed the define-CLICOLOR_FORCE-true branch from 03f6cce to a4ba71f Compare November 26, 2022 07:49
@smorimoto smorimoto merged commit fc27600 into ocaml:master Nov 26, 2022
@MisterDA MisterDA deleted the define-CLICOLOR_FORCE-true branch November 26, 2022 22:52
emillon added a commit to emillon/dune that referenced this pull request Nov 30, 2022
Since ocaml#6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
ocaml#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Nov 30, 2022
Since ocaml#6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
ocaml#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Nov 30, 2022
Since ocaml#6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
ocaml#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Nov 30, 2022
Since ocaml#6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
ocaml#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Nov 30, 2022
Since ocaml#6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
ocaml#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
emillon added a commit to ocaml/dune that referenced this pull request Nov 30, 2022
* Set CLICOLOR_FORCE=0

Since #6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
moyodiallo pushed a commit to moyodiallo/dune that referenced this pull request Dec 2, 2022
* Set CLICOLOR_FORCE=0

Since ocaml#6340 we're considering `CLICOLOR_FORCE` to determine whether
stderr supports color. However this changes behavior observable from the
test suite, so `CLICOLOR_FORCE=1 make test` fails (this is tracked as
ocaml#6607).

The issue is that ocaml/setup-ocaml#631, this variable is set in the CI
environment. So we disable it until the situation is fixed (and this
variable does not have observable changes anymore).

Signed-off-by: Etienne Millon <me@emillon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants