Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

ci: replace $TRAVIS with $GITHUB_ACTION in setup#5518

Merged
GabyCT merged 2 commits into
kata-containers:mainfrom
jepio:jepio/remove-travis
Mar 14, 2023
Merged

ci: replace $TRAVIS with $GITHUB_ACTION in setup#5518
GabyCT merged 2 commits into
kata-containers:mainfrom
jepio:jepio/remove-travis

Conversation

@jepio
Copy link
Copy Markdown
Member

@jepio jepio commented Mar 9, 2023

Nothing else relies on TRAVIS, GITHUB_ACTION can be checked for the same purpose and is defined by gh-actions.
Contrary to what one might think, CI is not a suitable variable to check because it is set by jenkins as well, but jenkins requires the installation of the full package set.

See: kata-containers/kata-containers#3544

jepio added 2 commits March 9, 2023 13:12
TRAVIS is not used for CI by kata-containers, and we're in the process of
removing TRAVIS variables from the environment. The GITHUB_ACTION variable is
defined by github actions by default ([1]) and it has the desired semantics
when checked here (only install a minimal set of extra packages).

I wanted to use $CI but that is also set on jenkins through
.ci/ci_job_flags.sh, and jenkins jobs do not work with the minimal setup.

[1]: https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables)

Fixes: kata-containers#3544
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
These are not used any longer.

Fixes: kata-containers#3544
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@katacontainersbot katacontainersbot added the size/tiny Smallest and simplest task label Mar 9, 2023
@jepio jepio force-pushed the jepio/remove-travis branch from 947da85 to f644f65 Compare March 9, 2023 13:15
@katacontainersbot katacontainersbot added size/small Small and simple task and removed size/tiny Smallest and simplest task labels Mar 9, 2023
@jepio
Copy link
Copy Markdown
Member Author

jepio commented Mar 9, 2023

/test

@jepio jepio force-pushed the jepio/remove-travis branch from f644f65 to 6aa2684 Compare March 9, 2023 15:57
@jepio jepio changed the title ci: replace $TRAVIS with $CI in setup ci: replace $TRAVIS with $GITHUB_ACTION in setup Mar 9, 2023
@jepio
Copy link
Copy Markdown
Member Author

jepio commented Mar 9, 2023

/test

Copy link
Copy Markdown
Member

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @jepio!

@GabyCT GabyCT merged commit 6bfe46d into kata-containers:main Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size/small Small and simple task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants