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

Improve OpenBSD memory handling #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improve OpenBSD memory handling #77

wants to merge 2 commits into from

Conversation

jasperla
Copy link

@jasperla jasperla commented Jun 30, 2017

As prompted by #72, the actual fix and some improvements in error reporting.

NB: This was tested with examples/free/free.go, not cockroachdb itself.

jasperla added 2 commits June 29, 2017 22:27
This ensures the types are packed correctly and we don't end up
with a silent 0 for npages for example.

closes #12
@@ -282,7 +292,7 @@ func (self *Swap) Get() error {

rnswap := C.swapctl(C.SWAP_STATS, unsafe.Pointer(&swdev[0]), nswap)
if rnswap == 0 {
return nil
return fmt.Errorf("Failed to call swapctl(2)")
Copy link

Choose a reason for hiding this comment

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

Will this return an error when a machine has 0 swap devices? The OpenBSD man page for swapctl(2) is somewhat ambiguous here, but my interpretation is that a return value of 0 is OK and -1 indicates failure.

Copy link
Author

Choose a reason for hiding this comment

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

It won't return an error in such case; I've ran swapctl -d /dev/sd0b to remove my /dev/sd0b as a swap device and this conditional didn't get triggered.

@elasticmachine
Copy link

❕ Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: Branch indexing

  • Reason: The PR is not allowed to run in the CI yet

  • Start Time: 2021-02-16T09:19:09.558+0000

  • Duration: 2 min 45 sec

  • Commit: 0e3fec1

Trends 🧪

Image of Build Times

Steps errors 2

Expand to view the steps failures

Load a resource file from a shared library
  • Took 0 min 0 sec . View more details on here
  • Description: approval-list/elastic/gosigar.yml
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)

Log output

Expand to view the last 100 lines of log output

[2021-02-16T09:20:32.201Z] Cleaning workspace
[2021-02-16T09:20:32.250Z]  > git --version # timeout=10
[2021-02-16T09:20:32.253Z]  > git --version # 'git version 2.25.1'
[2021-02-16T09:20:32.259Z] fatal: bad object 619ac1080f178a9fb682688f918faa815ff1c90a
[2021-02-16T09:20:32.203Z]  > git rev-parse --verify HEAD # timeout=10
[2021-02-16T09:20:32.207Z] Resetting working tree
[2021-02-16T09:20:32.207Z]  > git reset --hard # timeout=10
[2021-02-16T09:20:32.218Z]  > git clean -fdx # timeout=10
[2021-02-16T09:20:33.084Z] Timeout set to expire in 1 hr 0 min
[2021-02-16T09:20:33.128Z] The timestamps step is unnecessary when timestamps are enabled for all Pipeline builds.
[2021-02-16T09:20:33.496Z] [INFO] 'shallow' is forced to be disabled when running on PullRequests
[2021-02-16T09:20:33.523Z] Running in /var/lib/jenkins/workspace/Beats_gosigar_PR-77/src/github.com/elastic/gosigar
[2021-02-16T09:20:33.599Z] [INFO] gitCheckout: Checkout SCM PR-77 with default customisation from the Item.
[2021-02-16T09:20:33.667Z] [INFO] Override default checkout
[2021-02-16T09:20:33.764Z] Sleeping for 10 sec
[2021-02-16T09:20:43.799Z] The recommended git tool is: NONE
[2021-02-16T09:20:43.858Z] using credential f6c7695a-671e-4f4f-a331-acdce44ff9ba
[2021-02-16T09:20:43.955Z] Wiping out workspace first.
[2021-02-16T09:20:43.966Z] Cloning the remote Git repository
[2021-02-16T09:20:43.966Z] Using shallow clone with depth 4
[2021-02-16T09:20:43.966Z] Avoid fetching tags
[2021-02-16T09:20:44.643Z] Cleaning workspace
[2021-02-16T09:20:44.658Z] Using shallow fetch with depth 4
[2021-02-16T09:20:44.658Z] Pruning obsolete local branches
[2021-02-16T09:20:43.994Z] Cloning repository [email protected]:elastic/gosigar.git
[2021-02-16T09:20:44.024Z]  > git init /var/lib/jenkins/workspace/Beats_gosigar_PR-77/src/github.com/elastic/gosigar # timeout=10
[2021-02-16T09:20:44.030Z] Fetching upstream changes from [email protected]:elastic/gosigar.git
[2021-02-16T09:20:44.030Z]  > git --version # timeout=10
[2021-02-16T09:20:44.035Z]  > git --version # 'git version 2.25.1'
[2021-02-16T09:20:44.036Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-02-16T09:20:44.040Z]  > git fetch --no-tags --force --progress -- [email protected]:elastic/gosigar.git +refs/heads/*:refs/remotes/origin/* # timeout=15
[2021-02-16T09:20:44.628Z]  > git config remote.origin.url [email protected]:elastic/gosigar.git # timeout=10
[2021-02-16T09:20:44.631Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2021-02-16T09:20:44.639Z]  > git config remote.origin.url [email protected]:elastic/gosigar.git # timeout=10
[2021-02-16T09:20:44.645Z]  > git rev-parse --verify HEAD # timeout=10
[2021-02-16T09:20:44.651Z] No valid HEAD. Skipping the resetting
[2021-02-16T09:20:44.651Z]  > git clean -fdx # timeout=10
[2021-02-16T09:20:44.661Z] Fetching upstream changes from [email protected]:elastic/gosigar.git
[2021-02-16T09:20:44.661Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-02-16T09:20:44.664Z]  > git fetch --no-tags --force --progress --prune -- [email protected]:elastic/gosigar.git +refs/pull/77/head:refs/remotes/origin/PR-77 +refs/heads/master:refs/remotes/origin/master # timeout=15
[2021-02-16T09:20:45.210Z] Merging remotes/origin/master commit 6a900099b2e5e7246bd04eb5a6744fa8a1567955 into PR head commit 0e3fec1dc96f53b634f07fb33278532b1fb54c73
[2021-02-16T09:20:45.280Z] Merge succeeded, producing 830e94712092bac3e31c9a43d29e1e0e372f02fd
[2021-02-16T09:20:45.280Z] Checking out Revision 830e94712092bac3e31c9a43d29e1e0e372f02fd (PR-77)
[2021-02-16T09:20:45.312Z] Commit message: "Merge commit '6a900099b2e5e7246bd04eb5a6744fa8a1567955' into HEAD"
[2021-02-16T09:20:45.313Z] First time build. Skipping changelog.
[2021-02-16T09:20:45.313Z] Cleaning workspace
[2021-02-16T09:20:45.356Z]  > git --version # timeout=10
[2021-02-16T09:20:45.358Z]  > git --version # 'git version 2.25.1'
[2021-02-16T09:20:45.361Z] fatal: bad object 619ac1080f178a9fb682688f918faa815ff1c90a
[2021-02-16T09:20:45.212Z]  > git config core.sparsecheckout # timeout=10
[2021-02-16T09:20:45.215Z]  > git checkout -f 0e3fec1dc96f53b634f07fb33278532b1fb54c73 # timeout=15
[2021-02-16T09:20:45.237Z]  > git remote # timeout=10
[2021-02-16T09:20:45.240Z]  > git config --get remote.origin.url # timeout=10
[2021-02-16T09:20:45.243Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-02-16T09:20:45.246Z]  > git merge 6a900099b2e5e7246bd04eb5a6744fa8a1567955 # timeout=10
[2021-02-16T09:20:45.276Z]  > git rev-parse HEAD^{commit} # timeout=10
[2021-02-16T09:20:45.283Z]  > git config core.sparsecheckout # timeout=10
[2021-02-16T09:20:45.288Z]  > git checkout -f 830e94712092bac3e31c9a43d29e1e0e372f02fd # timeout=15
[2021-02-16T09:20:45.315Z]  > git rev-parse --verify HEAD # timeout=10
[2021-02-16T09:20:45.319Z] Resetting working tree
[2021-02-16T09:20:45.319Z]  > git reset --hard # timeout=10
[2021-02-16T09:20:45.327Z]  > git clean -fdx # timeout=10
[2021-02-16T09:20:46.388Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD
[2021-02-16T09:20:47.113Z] + git fetch https://****:****@github.com/elastic/gosigar.git +refs/pull/*/head:refs/remotes/origin/pr/*
[2021-02-16T09:20:47.461Z] Running in /var/lib/jenkins/workspace/Beats_gosigar_PR-77/src/github.com/elastic/gosigar/.git
[2021-02-16T09:20:47.587Z] Archiving artifacts
[2021-02-16T09:20:48.350Z] + git rev-parse HEAD
[2021-02-16T09:20:48.727Z] + git rev-parse HEAD
[2021-02-16T09:20:49.074Z] + git rev-parse origin/pr/77
[2021-02-16T09:20:49.131Z] [INFO] githubEnv: Found Git Build Cause: pr
[2021-02-16T09:20:49.474Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-02-16T09:20:50.567Z] [INFO] githubPrCheckApproved: Title: Improve OpenBSD memory handling - User: jasperla - Author Association: FIRST_TIME_CONTRIBUTOR
[2021-02-16T09:20:50.964Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet
[2021-02-16T09:20:50.964Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)
[2021-02-16T09:20:51.263Z] [INFO] Let's stop build #1. The PR is not allowed to run in the CI yet
[2021-02-16T09:20:51.302Z] Sleeping for 5 sec
[2021-02-16T09:20:51.497Z] Stage "Lint" skipped due to earlier failure(s)
[2021-02-16T09:20:51.600Z] Stage "Build and test" skipped due to earlier failure(s)
[2021-02-16T09:20:51.786Z] Stage "Matrix - PLATFORM = 'macosx'" skipped due to earlier failure(s)
[2021-02-16T09:20:51.798Z] Stage "Matrix - PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-02-16T09:20:51.812Z] Stage "Matrix - PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-02-16T09:20:51.927Z] Stage "Matrix - PLATFORM = 'macosx'" skipped due to earlier failure(s)
[2021-02-16T09:20:51.947Z] Stage "Matrix - PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-02-16T09:20:51.958Z] Stage "Matrix - PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-02-16T09:20:52.189Z] Stage "Matrix - PLATFORM = 'macosx'" skipped due to earlier failure(s)
[2021-02-16T09:20:52.200Z] Stage "Matrix - PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-02-16T09:20:52.210Z] Stage "Matrix - PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-02-16T09:20:52.481Z] Failed in branch Matrix - PLATFORM = 'macosx'
[2021-02-16T09:20:52.496Z] Failed in branch Matrix - PLATFORM = 'ubuntu-20 && immutable'
[2021-02-16T09:20:52.511Z] Failed in branch Matrix - PLATFORM = 'windows-2012-r2 && windows-immutable'
[2021-02-16T09:20:53.033Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_gosigar_PR-77
[2021-02-16T09:20:53.216Z] [INFO] getVaultSecret: Getting secrets
[2021-02-16T09:20:53.426Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-02-16T09:20:54.817Z] + chmod 755 generate-build-data.sh
[2021-02-16T09:20:54.817Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/1 ABORTED 104956
[2021-02-16T09:20:55.368Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/1/steps/?limit=10000 -o steps-info.json
[2021-02-16T09:20:56.711Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-02-16T09:20:56.711Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-02-16T09:20:58.055Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-02-16T09:20:59.916Z] Retry 3/3 exited 22, no more retries left.

@elasticmachine
Copy link

❕ Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: Branch indexing

  • Reason: The PR is not allowed to run in the CI yet

  • Start Time: 2021-03-23T18:40:39.883+0000

  • Duration: 2 min 57 sec

  • Commit: 0e3fec1

Trends 🧪

Image of Build Times

Steps errors 2

Expand to view the steps failures

Load a resource file from a shared library
  • Took 0 min 0 sec . View more details on here
  • Description: approval-list/elastic/gosigar.yml
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)

Log output

Expand to view the last 100 lines of log output

[2021-03-23T18:42:10.799Z] First time build. Skipping changelog.
[2021-03-23T18:42:10.799Z] Cleaning workspace
[2021-03-23T18:42:11.658Z] Timeout set to expire in 1 hr 0 min
[2021-03-23T18:42:11.674Z] The timestamps step is unnecessary when timestamps are enabled for all Pipeline builds.
[2021-03-23T18:42:10.802Z]  > git rev-parse --verify HEAD # timeout=10
[2021-03-23T18:42:10.807Z] Resetting working tree
[2021-03-23T18:42:10.807Z]  > git reset --hard # timeout=10
[2021-03-23T18:42:10.817Z]  > git clean -fdx # timeout=10
[2021-03-23T18:42:11.966Z] [INFO] 'shallow' is forced to be disabled when running on PullRequests
[2021-03-23T18:42:11.989Z] Running in /var/lib/jenkins/workspace/Beats_gosigar_PR-77/src/github.com/elastic/gosigar
[2021-03-23T18:42:12.016Z] [INFO] gitCheckout: Checkout SCM PR-77 with default customisation from the Item.
[2021-03-23T18:42:12.050Z] [INFO] Override default checkout
[2021-03-23T18:42:12.130Z] Sleeping for 10 sec
[2021-03-23T18:42:22.164Z] The recommended git tool is: NONE
[2021-03-23T18:42:22.262Z] using credential f6c7695a-671e-4f4f-a331-acdce44ff9ba
[2021-03-23T18:42:22.513Z] Wiping out workspace first.
[2021-03-23T18:42:22.525Z] Cloning the remote Git repository
[2021-03-23T18:42:22.525Z] Using shallow clone with depth 4
[2021-03-23T18:42:22.525Z] Avoid fetching tags
[2021-03-23T18:42:22.545Z] Cloning repository [email protected]:elastic/gosigar.git
[2021-03-23T18:42:22.621Z]  > git init /var/lib/jenkins/workspace/Beats_gosigar_PR-77/src/github.com/elastic/gosigar # timeout=10
[2021-03-23T18:42:22.627Z] Fetching upstream changes from [email protected]:elastic/gosigar.git
[2021-03-23T18:42:22.628Z]  > git --version # timeout=10
[2021-03-23T18:42:22.633Z]  > git --version # 'git version 2.25.1'
[2021-03-23T18:42:22.633Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-03-23T18:42:22.638Z]  > git fetch --no-tags --force --progress -- [email protected]:elastic/gosigar.git +refs/heads/*:refs/remotes/origin/* # timeout=15
[2021-03-23T18:42:23.349Z] Cleaning workspace
[2021-03-23T18:42:23.370Z] Using shallow fetch with depth 4
[2021-03-23T18:42:23.370Z] Pruning obsolete local branches
[2021-03-23T18:42:23.972Z] Merging remotes/origin/master commit 69b57d03f20e0ee9d614207292b61bd1f3886d92 into PR head commit 0e3fec1dc96f53b634f07fb33278532b1fb54c73
[2021-03-23T18:42:24.083Z] Merge succeeded, producing 0d4b8d9d19f3cf37f86dbdb78331b4efb351bf3d
[2021-03-23T18:42:24.084Z] Checking out Revision 0d4b8d9d19f3cf37f86dbdb78331b4efb351bf3d (PR-77)
[2021-03-23T18:42:24.108Z] Commit message: "Merge commit '69b57d03f20e0ee9d614207292b61bd1f3886d92' into HEAD"
[2021-03-23T18:42:24.108Z] First time build. Skipping changelog.
[2021-03-23T18:42:24.108Z] Cleaning workspace
[2021-03-23T18:42:23.307Z]  > git config remote.origin.url [email protected]:elastic/gosigar.git # timeout=10
[2021-03-23T18:42:23.318Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2021-03-23T18:42:23.342Z]  > git config remote.origin.url [email protected]:elastic/gosigar.git # timeout=10
[2021-03-23T18:42:23.353Z]  > git rev-parse --verify HEAD # timeout=10
[2021-03-23T18:42:23.357Z] No valid HEAD. Skipping the resetting
[2021-03-23T18:42:23.357Z]  > git clean -fdx # timeout=10
[2021-03-23T18:42:23.373Z] Fetching upstream changes from [email protected]:elastic/gosigar.git
[2021-03-23T18:42:23.373Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-03-23T18:42:23.381Z]  > git fetch --no-tags --force --progress --prune -- [email protected]:elastic/gosigar.git +refs/pull/77/head:refs/remotes/origin/PR-77 +refs/heads/master:refs/remotes/origin/master # timeout=15
[2021-03-23T18:42:23.975Z]  > git config core.sparsecheckout # timeout=10
[2021-03-23T18:42:23.980Z]  > git checkout -f 0e3fec1dc96f53b634f07fb33278532b1fb54c73 # timeout=15
[2021-03-23T18:42:24.007Z]  > git remote # timeout=10
[2021-03-23T18:42:24.025Z]  > git config --get remote.origin.url # timeout=10
[2021-03-23T18:42:24.035Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-03-23T18:42:24.043Z]  > git merge 69b57d03f20e0ee9d614207292b61bd1f3886d92 # timeout=10
[2021-03-23T18:42:24.075Z]  > git rev-parse HEAD^{commit} # timeout=10
[2021-03-23T18:42:24.086Z]  > git config core.sparsecheckout # timeout=10
[2021-03-23T18:42:24.089Z]  > git checkout -f 0d4b8d9d19f3cf37f86dbdb78331b4efb351bf3d # timeout=15
[2021-03-23T18:42:24.110Z]  > git rev-parse --verify HEAD # timeout=10
[2021-03-23T18:42:24.114Z] Resetting working tree
[2021-03-23T18:42:24.114Z]  > git reset --hard # timeout=10
[2021-03-23T18:42:24.122Z]  > git clean -fdx # timeout=10
[2021-03-23T18:42:25.475Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD
[2021-03-23T18:42:27.565Z] + git fetch https://****:****@github.com/elastic/gosigar.git +refs/pull/*/head:refs/remotes/origin/pr/*
[2021-03-23T18:42:28.030Z] Running in /var/lib/jenkins/workspace/Beats_gosigar_PR-77/src/github.com/elastic/gosigar/.git
[2021-03-23T18:42:28.175Z] Archiving artifacts
[2021-03-23T18:42:29.130Z] + git rev-parse HEAD
[2021-03-23T18:42:29.555Z] + git rev-parse HEAD
[2021-03-23T18:42:29.933Z] + git rev-parse origin/pr/77
[2021-03-23T18:42:30.029Z] [INFO] githubEnv: Found Git Build Cause: pr
[2021-03-23T18:42:31.458Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-03-23T18:42:32.930Z] [INFO] githubPrCheckApproved: Title: Improve OpenBSD memory handling - User: jasperla - Author Association: FIRST_TIME_CONTRIBUTOR
[2021-03-23T18:42:33.296Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet
[2021-03-23T18:42:33.296Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)
[2021-03-23T18:42:33.436Z] [INFO] Let's stop build #2. The PR is not allowed to run in the CI yet
[2021-03-23T18:42:33.459Z] Sleeping for 5 sec
[2021-03-23T18:42:33.548Z] Stage "Lint" skipped due to earlier failure(s)
[2021-03-23T18:42:33.630Z] Stage "Build and test" skipped due to earlier failure(s)
[2021-03-23T18:42:33.770Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.771Z] Stage "Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.772Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.773Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.841Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.843Z] Stage "Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.844Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-03-23T18:42:33.845Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-03-23T18:42:34.032Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'" skipped due to earlier failure(s)
[2021-03-23T18:42:34.034Z] Stage "Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'" skipped due to earlier failure(s)
[2021-03-23T18:42:34.035Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-03-23T18:42:34.036Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-03-23T18:42:34.137Z] Failed in branch Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'
[2021-03-23T18:42:34.138Z] Failed in branch Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'
[2021-03-23T18:42:34.140Z] Failed in branch Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'
[2021-03-23T18:42:34.143Z] Failed in branch Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'
[2021-03-23T18:42:35.535Z] Running on worker-1244230 in /var/lib/jenkins/workspace/Beats_gosigar_PR-77
[2021-03-23T18:42:35.663Z] [INFO] getVaultSecret: Getting secrets
[2021-03-23T18:42:35.921Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-03-23T18:42:38.052Z] + chmod 755 generate-build-data.sh
[2021-03-23T18:42:38.052Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/2 ABORTED 116766
[2021-03-23T18:42:38.052Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/2/steps/?limit=10000 -o steps-info.json
[2021-03-23T18:42:38.763Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-03-23T18:42:39.470Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-03-23T18:42:40.995Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-03-23T18:42:43.282Z] Retry 3/3 exited 22, no more retries left.
[2021-03-23T18:42:43.282Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/gosigar/PR-77/runs/2/log/ -o pipeline-log.txt

@elasticmachine
Copy link

❕ Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Reason: The PR is not allowed to run in the CI yet

  • Start Time: 2021-09-06T09:49:53.502+0000

  • Duration: 2 min 57 sec

  • Commit: 0e3fec1

Trends 🧪

Image of Build Times

Steps errors 2

Expand to view the steps failures

Load a resource file from a shared library
  • Took 0 min 0 sec . View more details on here
  • Description: approval-list/elastic/gosigar.yml
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)

Log output

Expand to view the last 100 lines of log output

[2021-09-06T09:51:27.966Z] The timestamps step is unnecessary when timestamps are enabled for all Pipeline builds.
[2021-09-06T09:51:28.252Z] [INFO] 'shallow' is forced to be disabled when running on PullRequests
[2021-09-06T09:51:28.276Z] Running in /var/lib/jenkins/workspace/Library_gosigar_PR-77/src/github.com/elastic/gosigar
[2021-09-06T09:51:28.324Z] [INFO] gitCheckout: Checkout SCM PR-77 with default customisation from the Item.
[2021-09-06T09:51:28.368Z] [INFO] Override default checkout
[2021-09-06T09:51:28.439Z] Sleeping for 10 sec
[2021-09-06T09:51:27.082Z]  > git rev-parse --verify HEAD # timeout=10
[2021-09-06T09:51:27.086Z] Resetting working tree
[2021-09-06T09:51:27.086Z]  > git reset --hard # timeout=10
[2021-09-06T09:51:27.095Z]  > git clean -fdx # timeout=10
[2021-09-06T09:51:38.481Z] The recommended git tool is: NONE
[2021-09-06T09:51:38.584Z] using credential f6c7695a-671e-4f4f-a331-acdce44ff9ba
[2021-09-06T09:51:38.590Z] Wiping out workspace first.
[2021-09-06T09:51:38.603Z] Cloning the remote Git repository
[2021-09-06T09:51:38.603Z] Using shallow clone with depth 4
[2021-09-06T09:51:38.603Z] Avoid fetching tags
[2021-09-06T09:51:39.430Z] Cleaning workspace
[2021-09-06T09:51:39.446Z] Using shallow fetch with depth 4
[2021-09-06T09:51:39.446Z] Pruning obsolete local branches
[2021-09-06T09:51:38.663Z] Cloning repository [email protected]:elastic/gosigar.git
[2021-09-06T09:51:38.736Z]  > git init /var/lib/jenkins/workspace/Library_gosigar_PR-77/src/github.com/elastic/gosigar # timeout=10
[2021-09-06T09:51:38.744Z] Fetching upstream changes from [email protected]:elastic/gosigar.git
[2021-09-06T09:51:38.744Z]  > git --version # timeout=10
[2021-09-06T09:51:38.747Z]  > git --version # 'git version 2.25.1'
[2021-09-06T09:51:38.747Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-09-06T09:51:38.751Z]  > git fetch --no-tags --force --progress -- [email protected]:elastic/gosigar.git +refs/heads/*:refs/remotes/origin/* # timeout=15
[2021-09-06T09:51:39.411Z]  > git config remote.origin.url [email protected]:elastic/gosigar.git # timeout=10
[2021-09-06T09:51:39.415Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2021-09-06T09:51:39.422Z]  > git config remote.origin.url [email protected]:elastic/gosigar.git # timeout=10
[2021-09-06T09:51:39.431Z]  > git rev-parse --verify HEAD # timeout=10
[2021-09-06T09:51:39.434Z] No valid HEAD. Skipping the resetting
[2021-09-06T09:51:39.434Z]  > git clean -fdx # timeout=10
[2021-09-06T09:51:39.447Z] Fetching upstream changes from [email protected]:elastic/gosigar.git
[2021-09-06T09:51:39.447Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-09-06T09:51:39.451Z]  > git fetch --no-tags --force --progress --prune -- [email protected]:elastic/gosigar.git +refs/pull/77/head:refs/remotes/origin/PR-77 +refs/heads/master:refs/remotes/origin/master # timeout=15
[2021-09-06T09:51:40.021Z] Merging remotes/origin/master commit 44ffe8ba40b1917b1beb9f41a3d373501612d09c into PR head commit 0e3fec1dc96f53b634f07fb33278532b1fb54c73
[2021-09-06T09:51:40.100Z] Merge succeeded, producing 8a4d5cd4b9b899492026b050b2bc8cc5aa96f9c8
[2021-09-06T09:51:40.101Z] Checking out Revision 8a4d5cd4b9b899492026b050b2bc8cc5aa96f9c8 (PR-77)
[2021-09-06T09:51:40.127Z] Commit message: "Merge commit '44ffe8ba40b1917b1beb9f41a3d373501612d09c' into HEAD"
[2021-09-06T09:51:40.127Z] First time build. Skipping changelog.
[2021-09-06T09:51:40.127Z] Cleaning workspace
[2021-09-06T09:51:40.172Z]  > git --version # timeout=10
[2021-09-06T09:51:40.175Z]  > git --version # 'git version 2.25.1'
[2021-09-06T09:51:40.178Z] fatal: bad object 78e5924a6e8b35eccae35ddfa32af978e6f3e658
[2021-09-06T09:51:40.022Z]  > git config core.sparsecheckout # timeout=10
[2021-09-06T09:51:40.026Z]  > git checkout -f 0e3fec1dc96f53b634f07fb33278532b1fb54c73 # timeout=15
[2021-09-06T09:51:40.051Z]  > git remote # timeout=10
[2021-09-06T09:51:40.055Z]  > git config --get remote.origin.url # timeout=10
[2021-09-06T09:51:40.059Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-09-06T09:51:40.063Z]  > git merge 44ffe8ba40b1917b1beb9f41a3d373501612d09c # timeout=10
[2021-09-06T09:51:40.092Z]  > git rev-parse HEAD^{commit} # timeout=10
[2021-09-06T09:51:40.101Z]  > git config core.sparsecheckout # timeout=10
[2021-09-06T09:51:40.105Z]  > git checkout -f 8a4d5cd4b9b899492026b050b2bc8cc5aa96f9c8 # timeout=15
[2021-09-06T09:51:40.128Z]  > git rev-parse --verify HEAD # timeout=10
[2021-09-06T09:51:40.131Z] Resetting working tree
[2021-09-06T09:51:40.132Z]  > git reset --hard # timeout=10
[2021-09-06T09:51:40.140Z]  > git clean -fdx # timeout=10
[2021-09-06T09:51:41.871Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD
[2021-09-06T09:51:42.762Z] + git fetch https://****:****@github.com/elastic/gosigar.git +refs/pull/*/head:refs/remotes/origin/pr/*
[2021-09-06T09:51:43.171Z] Running in /var/lib/jenkins/workspace/Library_gosigar_PR-77/src/github.com/elastic/gosigar/.git
[2021-09-06T09:51:43.291Z] Archiving artifacts
[2021-09-06T09:51:44.660Z] + git rev-parse HEAD
[2021-09-06T09:51:45.055Z] + git rev-parse HEAD
[2021-09-06T09:51:45.392Z] + git rev-parse origin/pr/77
[2021-09-06T09:51:45.458Z] [INFO] githubEnv: Found Git Build Cause: pr
[2021-09-06T09:51:45.736Z] Masking supported pattern matches of $GITHUB_TOKEN
[2021-09-06T09:51:46.727Z] [INFO] githubPrCheckApproved: Title: Improve OpenBSD memory handling - User: jasperla - Author Association: FIRST_TIME_CONTRIBUTOR
[2021-09-06T09:51:47.201Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet
[2021-09-06T09:51:47.201Z] ERROR: githubPrCheckApproved: The PR is not allowed to run in the CI yet. (Only users with write permissions can do so.)
[2021-09-06T09:51:47.325Z] [INFO] Let's stop build #1. The PR is not allowed to run in the CI yet
[2021-09-06T09:51:47.388Z] Sleeping for 5 sec
[2021-09-06T09:51:47.562Z] Stage "Lint" skipped due to earlier failure(s)
[2021-09-06T09:51:47.653Z] Stage "Build and test" skipped due to earlier failure(s)
[2021-09-06T09:51:47.836Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'" skipped due to earlier failure(s)
[2021-09-06T09:51:47.847Z] Stage "Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'" skipped due to earlier failure(s)
[2021-09-06T09:51:47.856Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-09-06T09:51:47.864Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-09-06T09:51:47.979Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'" skipped due to earlier failure(s)
[2021-09-06T09:51:47.994Z] Stage "Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.003Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.013Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.282Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.295Z] Stage "Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.305Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.315Z] Stage "Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'" skipped due to earlier failure(s)
[2021-09-06T09:51:48.618Z] Failed in branch Matrix - GO_VERSION = '1.15.8', PLATFORM = 'macosx&&x86_64'
[2021-09-06T09:51:48.632Z] Failed in branch Matrix - GO_VERSION = '1.16', PLATFORM = 'macosx&&arm64'
[2021-09-06T09:51:48.644Z] Failed in branch Matrix - GO_VERSION = '1.15.8', PLATFORM = 'ubuntu-20 && immutable'
[2021-09-06T09:51:48.656Z] Failed in branch Matrix - GO_VERSION = '1.15.8', PLATFORM = 'windows-2012-r2 && windows-immutable'
[2021-09-06T09:51:49.233Z] Running on Jenkins in /var/lib/jenkins/workspace/Library_gosigar_PR-77
[2021-09-06T09:51:49.421Z] [INFO] getVaultSecret: Getting secrets
[2021-09-06T09:51:49.479Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-09-06T09:51:50.394Z] + chmod 755 generate-build-data.sh
[2021-09-06T09:51:50.395Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Library/gosigar/PR-77/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Library/gosigar/PR-77/runs/1 ABORTED 116616
[2021-09-06T09:51:50.395Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Library/gosigar/PR-77/runs/1/steps/?limit=10000 -o steps-info.json
[2021-09-06T09:51:50.395Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Library/gosigar/PR-77/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-09-06T09:51:50.395Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-09-06T09:51:51.738Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-09-06T09:51:53.600Z] Retry 3/3 exited 22, no more retries left.
[2021-09-06T09:51:53.600Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Library/gosigar/PR-77/runs/1/log/ -o pipeline-log.txt

@elasticmachine
Copy link

❕ Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Start Time: 2022-04-05T14:21:01.632+0000

  • Duration: 2 min 53 sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants