Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.gitignore is not respected during nyx mark #219

Closed
rrzal opened this issue May 18, 2023 · 22 comments
Closed

.gitignore is not respected during nyx mark #219

rrzal opened this issue May 18, 2023 · 22 comments
Assignees
Labels
type::defect:bug A problem which impairs or prevents the functions of the product type::task Short term actionable activity.

Comments

@rrzal
Copy link

rrzal commented May 18, 2023

I mentioned this problem in another issue. I've added some logging in my pipeline to debug this issue a little bit further.

My .gitignore:

.nyx-state.*
.nyx-summary.*
build.env

my .gitlab-ci.yml:

variables:
  GIT_STRATEGY: clone
  GIT_DEPTH: "0"

stages:
  - infer
  - build
  - release

infer-job:
  stage: infer
  tags:
    - shell
  script:
    - git checkout -b $CI_COMMIT_BRANCH
    - nyx clean
    - ls -a
    - git status
    - nyx
    - ls -a
    - git status
    - python3 ./ci_scripts/parse_version_infer_result.py
    - ls -a
    - git status
  artifacts:
    reports:
      dotenv: build.env

build-job1:
  stage: build
  tags:
    - shell
  script:
    - nyx clean
    - echo "Version numbers obtained from the infer stage are:"
    - echo $NEXT_MAJOR
    - echo $NEXT_MINOR
    - echo $NEXT_PATCH
    - python3 ./ci_scripts/generate_c_version_header.py ./
    - ls -a
    - git status
  artifacts:
    paths:
      - version.h
    expire_in: 5 mins

release-job:
  stage: release
  tags:
    - shell
  script:
    - git checkout -b $CI_COMMIT_BRANCH
    - nyx clean
    - ls -a
    - git status
    - git config user.name "Linux CI Station"
    - git config user.email "you@example.com"
    - nyx mark
    - ls -a
    - git status

This is the log for my release-job, you can see nyx-state is indeed been added and committed after nyx mark despite the presence of .gitignore:

Running with gitlab-runner 15.11.0 (436955cb)
  on <>, system ID: <>
Preparing the "shell" executor 00:00
Using Shell (bash) executor...
Preparing environment 00:00
Running on ci-station...
Getting source from Git repository 00:02
Fetching changes...
Initialized empty Git repository in /home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test/.git/
Created fresh repository.
Checking out 36e5df8b as detached HEAD (ref is development)...
Skipping Git submodules setup
Downloading artifacts 00:00
Downloading artifacts for build-job1 (49454)...
Runtime platform                                    arch=amd64 os=linux pid=777505 revision=436955cb version=15.11.0
Downloading artifacts from coordinator... ok        host=myrepo.com id=49454 responseStatus=200 OK token=<>
Executing "step_script" stage of the job script 00:02
$ git checkout -b $CI_COMMIT_BRANCH
Switched to a new branch 'development'
$ nyx clean
$ ls -a
.
..
ci_scripts
.git
.gitignore
.gitlab-ci.yml
.nyx.json
README.md
version.h
$ git status
On branch development
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   version.h
no changes added to commit (use "git add" and/or "git commit -a")
$ nyx
branch           = development
bump             = patch
core version     = true
latest version   = true
new release      = true
new version      = true
scheme           = SEMVER
timestamp        = 1684445989553
current version  = v1.0.4
previous version = v1.0.3
prime version    = v1.0.3
$ ls -a
.
..
ci_scripts
.git
.gitignore
.gitlab-ci.yml
.nyx.json
.nyx-state.json
README.md
version.h
$ git status
On branch development
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   version.h
no changes added to commit (use "git add" and/or "git commit -a")
$ git config user.name "Linux CI Station"
$ git config user.email "you@example.com"
$ nyx mark
<trace logs...>
branch           = development
bump             = patch
core version     = true
latest version   = true
new release      = true
new version      = true
scheme           = SEMVER
timestamp        = 1684445989623
current version  = v1.0.4
previous version = v1.0.3
prime version    = v1.0.3
$ ls -a
.
..
ci_scripts
.git
.gitignore
.gitlab-ci.yml
.nyx.json
.nyx-state.json
README.md
version.h
$ git status
On branch development
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   .nyx-state.json
no changes added to commit (use "git add" and/or "git commit -a")
Cleaning up project directory and file based variables 00:00
Job succeeded

Here's the trace log for nyx mark if you are interested, though I didn't find anything useful from it.

time="2023-05-18T14:39:49-07:00" level=debug msg="selecting the command to run"
time="2023-05-18T14:39:49-07:00" level=debug msg="command to run is MARK"
time="2023-05-18T14:39:49-07:00" level=debug msg="Nyx.run(MARK)"
time="2023-05-18T14:39:49-07:00" level=debug msg="Nyx.mark()"
time="2023-05-18T14:39:49-07:00" level=debug msg="Nyx.make()"
time="2023-05-18T14:39:49-07:00" level=debug msg="Nyx.infer()"
time="2023-05-18T14:39:49-07:00" level=debug msg="running command 'INFER'"
...
time="2023-05-18T14:39:49-07:00" level=debug msg="the release type has the git commit flag enabled"
time="2023-05-18T14:39:49-07:00" level=debug msg="checking repository clean status"
time="2023-05-18T14:39:49-07:00" level=debug msg="repository clean status is: 'false' (' M version.h\n')"
time="2023-05-18T14:39:49-07:00" level=trace msg="repository status for 'version.h' is: untracked='false', staging=' ', worktree='M', extra='', "
time="2023-05-18T14:39:49-07:00" level=trace msg="repository status flags are: Unmodified = ' ', Untracked = '?', Modified = 'M', Added = 'A', Deleted = 'D', Renamed = 'R', Copied = 'C', UpdatedButUnmerged = 'U'"
time="2023-05-18T14:39:49-07:00" level=debug msg="workaround #130: go-git returned 'false' when the repository status was checked to see whether it was clean or not, this means it considers the repository in a DIRTY state. However, go-git has a bug which sometimes returns 'false' even when the Git command returns true so now the 'git' command, if available, will be executed to double check, and its output will be considered the only one reliable, overcoming the result provided by the go-git library"
time="2023-05-18T14:39:49-07:00" level=debug msg="workaround #130: running the 'git' executable '/usr/bin/git' in directory '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test': /usr/bin/git status --porcelain"
time="2023-05-18T14:39:49-07:00" level=debug msg="workaround #130: the 'git status' command returned (empty means the repository is clean): ' M version.h\n'"
time="2023-05-18T14:39:49-07:00" level=debug msg="workaround #130: the 'git status' command returned a non-empty output so the repository is dirty"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=debug msg="committing local changes"
time="2023-05-18T14:39:49-07:00" level=debug msg="the configured commit message template yields to an empty commit message. Using default template 'Release version {{version}}'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the changelog configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the commit message conventions"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'configurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'configurationFile' configuration option value is: '.nyx.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the Git configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'initialVersion' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'initialVersion' configuration option value is: '0.1.0'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'preset' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'preset' configuration option value is: 'extended'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release assets"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releasePrefix' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releasePrefix' configuration option value is: 'v'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release types"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'resume' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'resume' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the services"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'sharedConfigurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summary' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'summary' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summaryFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'stateFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'stateFile' configuration option value is: '.nyx-state.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'verbosity' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'verbosity' configuration option value is: 'TRACE'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=debug msg="adding contents to repository staging area"
time="2023-05-18T14:39:49-07:00" level=debug msg="committing changes to repository"
time="2023-05-18T14:39:49-07:00" level=debug msg="local changes committed at 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77'"
time="2023-05-18T14:39:49-07:00" level=debug msg="adding commit 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77' to the release scope"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the changelog configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the commit message conventions"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'configurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'configurationFile' configuration option value is: '.nyx.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the Git configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'initialVersion' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'initialVersion' configuration option value is: '0.1.0'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'preset' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'preset' configuration option value is: 'extended'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release assets"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releasePrefix' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releasePrefix' configuration option value is: 'v'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release types"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'resume' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'resume' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the services"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'sharedConfigurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summary' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'summary' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summaryFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'stateFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'stateFile' configuration option value is: '.nyx-state.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'verbosity' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'verbosity' configuration option value is: 'TRACE'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=debug msg="the release type has the git tag flag enabled"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=debug msg="repository latest commit in HEAD branch is 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=debug msg="tagging latest commit 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77' with tag 'v1.0.4'"
time="2023-05-18T14:39:49-07:00" level=debug msg="tagging as 'v1.0.4'"
time="2023-05-18T14:39:49-07:00" level=debug msg="repository latest commit in HEAD branch is 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77'"
time="2023-05-18T14:39:49-07:00" level=debug msg="tag 'v1.0.4' applied to commit 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the changelog configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the commit message conventions"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'configurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'configurationFile' configuration option value is: '.nyx.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the Git configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'initialVersion' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'initialVersion' configuration option value is: '0.1.0'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'preset' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'preset' configuration option value is: 'extended'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release assets"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releasePrefix' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releasePrefix' configuration option value is: 'v'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release types"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'resume' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'resume' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the services"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'sharedConfigurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summary' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'summary' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summaryFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'stateFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'stateFile' configuration option value is: '.nyx-state.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'verbosity' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'verbosity' configuration option value is: 'TRACE'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=debug msg="the release type has the git push flag enabled"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=debug msg="pushing local changes to remotes"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release types"
time="2023-05-18T14:39:49-07:00" level=debug msg="the list of remotes is not defined. Using the default remote 'origin'"
time="2023-05-18T14:39:49-07:00" level=debug msg="pushing local changes to remote 'origin'"
time="2023-05-18T14:39:49-07:00" level=debug msg="looking up credentials for remote 'origin'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the Git configuration"
time="2023-05-18T14:39:49-07:00" level=debug msg="using configured credentials for remote 'origin'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the changelog configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the commit message conventions"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'configurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'configurationFile' configuration option value is: '.nyx.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the Git configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'initialVersion' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'initialVersion' configuration option value is: '0.1.0'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'preset' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'preset' configuration option value is: 'extended'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release assets"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releasePrefix' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releasePrefix' configuration option value is: 'v'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release types"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'resume' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'resume' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the services"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'sharedConfigurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summary' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'summary' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summaryFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'stateFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'stateFile' configuration option value is: '.nyx-state.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'verbosity' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'verbosity' configuration option value is: 'TRACE'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'bump' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'bump' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the changelog configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the commit message conventions"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'configurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'configurationFile' configuration option value is: '.nyx.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the Git configuration"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'initialVersion' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'initialVersion' configuration option value is: '0.1.0'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'preset' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'preset' configuration option value is: 'extended'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release assets"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releasePrefix' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releasePrefix' configuration option value is: 'v'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the release types"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'resume' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'resume' configuration option value is: 'false'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the services"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'sharedConfigurationFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'sharedConfigurationFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summary' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'summary' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'summaryFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'summaryFile' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'stateFile' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'stateFile' configuration option value is: '.nyx-state.json'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'verbosity' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'verbosity' configuration option value is: 'TRACE'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'releaseLenient' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'releaseLenient' configuration option value is: 'true'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:49-07:00" level=trace msg="retrieving the 'scheme' configuration option"
time="2023-05-18T14:39:49-07:00" level=trace msg="the 'scheme' configuration option value is: 'SEMVER'"
time="2023-05-18T14:39:49-07:00" level=debug msg="attempting push to 'origin' using user name and password credentials."
time="2023-05-18T14:39:49-07:00" level=debug msg="pushing changes to remote repository 'origin' using username and password"
time="2023-05-18T14:39:49-07:00" level=debug msg="username and password authentication will use custom authentication options"
time="2023-05-18T14:39:51-07:00" level=debug msg="local changes pushed to remote 'origin'"
time="2023-05-18T14:39:51-07:00" level=debug msg="storing the Mark command internal attributes to the State"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the 'dryRun' configuration option"
time="2023-05-18T14:39:51-07:00" level=trace msg="the 'dryRun' configuration option value is: 'false'"
time="2023-05-18T14:39:51-07:00" level=debug msg="repository latest commit in HEAD branch is 'a5b79142eac5a0cd95c3b2135d08d0a380abfb77'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the 'version' configuration option"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'version' configuration option: '<nil>'"
time="2023-05-18T14:39:51-07:00" level=debug msg="command 'MARK' finished."
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the 'stateFile' configuration option"
time="2023-05-18T14:39:51-07:00" level=trace msg="the 'stateFile' configuration option value is: '.nyx-state.json'"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the 'directory' configuration option"
time="2023-05-18T14:39:51-07:00" level=trace msg="retrieving the default 'directory' configuration option: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:51-07:00" level=trace msg="the 'directory' configuration option value is: '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test'"
time="2023-05-18T14:39:51-07:00" level=debug msg="storing the state to '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test/.nyx-state.json'"
time="2023-05-18T14:39:51-07:00" level=trace msg="marshalling object of type '*state.State' as JSON to file '/home/gitlab-runner/builds/sU8YghRD/0/<>/ci-test/.nyx-state.json' "
...
@flelli
Copy link
Collaborator

flelli commented May 20, 2023

Hi @rrzal ,

I tried to reproduce the bug locally without success. Nyx behaves correctly, complying with .gitignore.
On the other hand I see your logs and it looks like there's an actual issue.

Are you able to reproduce locally? This would help removing the GitLab context from the issue.

Linking the the #216 you mentioned.

@rrzal
Copy link
Author

rrzal commented May 23, 2023

Hi @rrzal ,

I tried to reproduce the bug locally without success. Nyx behaves correctly, complying with .gitignore.

On the other hand I see your logs and it looks like there's an actual issue.

Are you able to reproduce locally? This would help removing the GitLab context from the issue.

Linking the the #216 you mentioned.

I was able to reproduce it in my local environment, My local environment is actually also my CI environment (I'm using a shell runner for my CI). I manually merged a branch into development, everything was fine. Then I ran nyx mark, and suddenly nyx-state and summary got added to the release commit.
I'll do some more testing tomorrow on a Windows machine and see what happens

@flelli
Copy link
Collaborator

flelli commented May 23, 2023

Thanks @rrzal ,

meanwhile, is there a chance the state file was added to the Git repo in the past and then removed?

@rrzal
Copy link
Author

rrzal commented May 23, 2023

Thanks @rrzal ,

meanwhile, is there a chance the state file was added to the Git repo in the past and then removed?

I don't remember how it was added in the first place (whether I forgot to add .gitignore at first or I already had .gitignore in place), but current it's in my development branch, and I branched off a fix branch, used git rm --cached <file>, deleted the file, committed, and merged it back to development. After the merge, the file was gone until I ran nyx mark in my development branch, and the file appeared again.

@flelli flelli self-assigned this May 23, 2023
@flelli
Copy link
Collaborator

flelli commented May 23, 2023

I'm afraid this is where we hit the issue.

I double and triple-checked the code and there's nothing that may push the library used by Nyx to behave like when the -f flag is passed to git add when staging files. It's rather the opposite as Nyx only adds the . path without applying any extra flag. In other words, it does just a git add ..

I'm not even sure it's an issue caused by the library used by Nyx.

One last that might be useful would be running it again on a new repository where the state file is in the .gitignore but has never been added to the repo.

@rrzal
Copy link
Author

rrzal commented May 23, 2023

I'm afraid this is where we hit the issue.

I double and triple-checked the code and there's nothing that may push the library used by Nyx to behave like when the -f flag is passed to git add when staging files. It's rather the opposite as Nyx only adds the . path without applying any extra flag. In other words, it does just a git add ..

I'm not even sure it's an issue caused by the library used by Nyx.

One last that might be useful would be running it again on a new repository where the state file is in the .gitignore but has never been added to the repo.

Sorry, I need to take back my previous statement. I tested again and verified that if I run nyx mark locally it does NOT add nyx-state or nyx-summary to the commit.

I then pushed my locally merged development branch to remote, and I could see my development branch was free of nyx-state. Then the pipeline was triggered, and Nyx ran the release job in the pipeline, and then nyx-state appeared again.

So it seems like this issue is indeed related to GitLab runner.

Since now the Docker image is available again, I want to test running the release job in Docker. However, the Docker image on Docker Hub seems to be broken at the moment.

I created a empty first stage just to test the image:

pipeline-test-job:
  stage: pipeline-test
  tags:
    - docker
  image: mooltiverse/nyx:2.4.1-hotfix221.2
  script:
    - ls

and it's giving me this error:

Preparing the "docker" executor 00:02
Using Docker executor with image mooltiverse/nyx ...
Pulling docker image mooltiverse/nyx ...
Using docker image sha256:fb6600c1ef30a37f6deb749bb47f90a5a05e41f8d4a769016c8c4a91347a881e for mooltiverse/nyx with digest mooltiverse/nyx@sha256:31a9afb643641acaa85b98a0f0e1553841f8e8a7dc63d643c2efdfca051b664a ...
Preparing environment 00:00
Running on runner-6bqdcmks-project-948-concurrent-0 via ayar-nuc-63...
Getting source from Git repository 00:02
Fetching changes...
Initialized empty Git repository in /builds/apps_engineering/ci-test/.git/
Created fresh repository.
Checking out 4cbf981d as detached HEAD (ref is task/none/test_mark_with_docker)...
Skipping Git submodules setup
Executing "step_script" stage of the job script 00:00
Using docker image sha256:fb6600c1ef30a37f6deb749bb47f90a5a05e41f8d4a769016c8c4a91347a881e for mooltiverse/nyx with digest mooltiverse/nyx@sha256:31a9afb643641acaa85b98a0f0e1553841f8e8a7dc63d643c2efdfca051b664a ...
time="2023-05-23T23:07:35Z" level=error msg="an empty path has been defined for the local custom configuration file and it will be ignored"
illegal command 'SH'
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1

I also tested other images like alpine:latest to make sure my gitlab-runner is working correctly, and it does. So I assume the error is caused by Nyx's Docker Image.

@flelli
Copy link
Collaborator

flelli commented May 24, 2023

Hi @rrzal

It looks like the container is started with wrong command line attributes, for example SH.
Can you start it by passing the --debug argument plus the command you want to run?

@rrzal
Copy link
Author

rrzal commented May 24, 2023

Hi @rrzal

It looks like the container is started with wrong command line attributes, for example SH. Can you start it by passing the --debug argument plus the command you want to run?

I'm not sure where I can pass the debug option, but I fixed this issue by overriding the Docker image entrypoint in my pipeline config:

pipeline-test-job-2:
  stage: pipeline-test
  tags:
    - docker
  image: 
    name: mooltiverse/nyx:2.4.1-hotfix221.2
    entrypoint: [""]
  script:
    - git checkout -b $CI_COMMIT_BRANCH
    - nyx

Now it works correctly.

@rrzal
Copy link
Author

rrzal commented May 24, 2023

@flelli
I just created a new repo with everything clean, and I run the nyx mark job with the Docker image, and nyx-state still get added in the release.

Preparing the "docker" executor 00:02
Using Docker executor with image mooltiverse/nyx:2.4.1-hotfix221.2 ...
Pulling docker image mooltiverse/nyx:2.4.1-hotfix221.2 ...
Using docker image sha256:d8d42c12315d8e0597253311475e75ac19fb6aee5b2cf162c12ad57812f55fe2 for mooltiverse/nyx:2.4.1-hotfix221.2 with digest mooltiverse/nyx@sha256:10e9605ad2e2d1a1ac42b827b1695dbc08d3c417a763fe7afcd260f735cf2dd1 ...
Preparing environment 00:01
Running on runner-ipqyvdhy-project-952-concurrent-0 via 63...
Getting source from Git repository 00:01
Fetching changes...
Initialized empty Git repository in /builds/apps_engineering/another-ci-test/.git/
Created fresh repository.
Checking out fbab72c4 as detached HEAD (ref is development)...
Skipping Git submodules setup
Downloading artifacts 00:01
Downloading artifacts for build-job1 (50312)...
Downloading artifacts from coordinator... ok
Executing "step_script" stage of the job script 00:02
Using docker image sha256:d8d42c12315d8e0597253311475e75ac19fb6aee5b2cf162c12ad57812f55fe2 for mooltiverse/nyx:2.4.1-hotfix221.2 with digest mooltiverse/nyx@sha256:10e9605ad2e2d1a1ac42b827b1695dbc08d3c417a763fe7afcd260f735cf2dd1 ...
$ git checkout -b $CI_COMMIT_BRANCH
Switched to a new branch 'development'
$ nyx clean
$ ls -a
.
..
.git
.gitignore
.gitlab-ci.yml
.nyx.json
README.md
ci_scripts
version.h
$ git status
On branch development
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	version.h
nothing added to commit but untracked files present (use "git add" to track)
$ nyx
branch           = development
bump             = minor
core version     = true
latest version   = true
new release      = true
new version      = true
scheme           = SEMVER
timestamp        = 1684952659724
current version  = v0.2.0
previous version = 0.1.0
prime version    = 0.1.0
$ ls -a
.
..
.git
.gitignore
.gitlab-ci.yml
.nyx-state.json
.nyx.json
README.md
ci_scripts
version.h
$ git status
On branch development
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	version.h
nothing added to commit but untracked files present (use "git add" to track)
$ git config user.name "Linux CI Station"
$ git config user.email "you@example.com"
$ nyx mark
branch           = development
bump             = minor
core version     = true
latest version   = true
new release      = true
new version      = true
scheme           = SEMVER
timestamp        = 1684952659750
current version  = v0.2.0
previous version = 0.1.0
prime version    = 0.1.0
$ ls -a
.
..
.git
.gitignore
.gitlab-ci.yml
.nyx-state.json
.nyx.json
README.md
ci_scripts
version.h
$ git status
On branch development
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   .nyx-state.json
no changes added to commit (use "git add" and/or "git commit -a")
Cleaning up project directory and file based variables 00:01
Job succeeded

image

@flelli
Copy link
Collaborator

flelli commented May 25, 2023

This is getting weird...

I'm wondering but I can't figure out what could make the GitLab environment change the behavior.

@rrzal
Copy link
Author

rrzal commented Jun 7, 2023

I've tried everything I can think of:

  • git add . before nyx mark. Everything works correctly for git add ., but then when nyx mark runs it adds everything again
  • run nyx first to generate the state file, then nyx mark resumes using existing nyx-state, still adds everything

I think at this point I'll have to resort to using script to manually delete any artifacts that should be in .gitignore to make the pipeline work. But since the state file is generated during nyx mark I cannot remove it. As a temporary solution, can you add an option to override the stateFile config so it does not generate a state file during nyx mark? (there's no way to use command line argument or env variable to not generate a state file because you cannot pass in null)

@flelli
Copy link
Collaborator

flelli commented Jun 8, 2023

Hi @rrzal , you can't pass null but you can pass an empty string. Have you tried that?

Another try could be generating the state file in a subdirectory and ignore the directory.

@flelli
Copy link
Collaborator

flelli commented Jun 8, 2023

@rrzal , this issue seems related to go-git/go-git#500 in go-git

What I can try is to rebuild with the latest go-git and hope they fixed it

@rrzal
Copy link
Author

rrzal commented Jun 8, 2023

Hi @rrzal , you can't pass null but you can pass an empty string. Have you tried that?

Another try could be generating the state file in a subdirectory and ignore the directory.

Hi @flelli , thanks for the reply. I cannot pass an empty string because nyx would try to write to .: unable to write file '/home/user/workplace/ci-test': open /home/user/workplace/ci-test: is a directory.

Also putting it under a directory wouldn't work, because the git bug causes nyx to add everything, including any directories to the commit (for example, my build directory with all the artifacts in it got added to the release in my test.

However, your suggestion does give me an idea, which is to put it outside the repo folder. I tried --state-file="../nyx-temp/state.json" and it seemed to work! Thank you.

@rrzal
Copy link
Author

rrzal commented Jun 8, 2023

@rrzal , this issue seems related to go-git/go-git#500 in go-git

What I can try is to rebuild with the latest go-git and hope they fixed it

Thank you! I'll keep an eye on the releases and test them.

@flelli
Copy link
Collaborator

flelli commented Jun 8, 2023

I cannot pass an empty string because nyx would try to write to .: unable to write file '/home/user/workplace/ci-test': open /home/user/workplace/ci-test: is a directory.

So this is a bug. I opened #230

@flelli
Copy link
Collaborator

flelli commented Jun 8, 2023

@rrzal , this issue seems related to go-git/go-git#500 in go-git
What I can try is to rebuild with the latest go-git and hope they fixed it

Thank you! I'll keep an eye on the releases and test them.

@rrzal , meanwhile, taking some hints from the go-git open issues, it could be worthwhile inspecting the git settings as it's likely that GitLab sets some specific settings that are different from your local environment and those may be the culprit.

@flelli
Copy link
Collaborator

flelli commented Jun 9, 2023

Hi @rrzal ,

2.4.4-hotfix219.1 is ready. Can you give it a try?

@rrzal
Copy link
Author

rrzal commented Jun 9, 2023

Hi @rrzal ,

2.4.4-hotfix219.1 is ready. Can you give it a try?

Unfortunately the fix doesn't seem to work. Everything in the workspace still get added to the commit.

Have you looked at go-git/go-git#597 ? could this be a work around?

I also printed my git config in the pipeline:

$ uchardet .gitignore
ASCII
$ git config --list
init.defaultbranch=none
fetch.recursesubmodules=false
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=....git)
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
lfs.repositoryformatversion=0
user.name=Linux CI Station
user.email=you@example.com

flelli added a commit that referenced this issue Jun 10, 2023
@flelli
Copy link
Collaborator

flelli commented Jun 10, 2023

@rrzal ,

I've embedded that workaround in 2.4.4-hotfix219.3. Can you give it a try?
btw, now you can set the state file path configuration option to an empty string to disable it.

@rrzal
Copy link
Author

rrzal commented Jun 12, 2023

@flelli ,

I can't tell you how happy I am. It indeed works! gitignore works properly now. Thank you for the great work.

@flelli flelli added type::defect:bug A problem which impairs or prevents the functions of the product type::task Short term actionable activity. labels Jun 12, 2023
@flelli
Copy link
Collaborator

flelli commented Jun 12, 2023

@rrzal , glad to hear that. I'm mergin to main and the fix will be available in the upcoming release

@flelli flelli closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::defect:bug A problem which impairs or prevents the functions of the product type::task Short term actionable activity.
Projects
None yet
Development

No branches or pull requests

2 participants