Skip to content

Instantly share code, notes, and snippets.

View aigoncharov's full-sized avatar

Andrey Goncharov aigoncharov

View GitHub Profile
@aigoncharov
aigoncharov / gist:f98deea298056b11ee001284ed21480c
Created October 19, 2016 18:46
Commit message convention
## Contributing
Be aware automatic script is used to create release notes for each version, to let it do its job properly follow this simple rules to write your commit messages:
If your commit adds a new feature format your message as ('Closes' field is optional and required only if you have a related open issue):
[Closes #] Feature Added: Feature Name
- More detailed description of what you did
- More detailed description of what you did
- More detailed description of what you did
...
@aigoncharov
aigoncharov / gist:17cc46299b068bfd36d1130749a57ae1
Created March 20, 2017 18:08
Jenkins BlueOcean approval render issue - network log
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2017-03-20T18:01:53.554Z",
@aigoncharov
aigoncharov / gist:40449d591d3e9f802ea386cc95d51033
Created March 20, 2017 18:08
Jenkins BlueOcean approval render issue - console log
Browser configuration of @jenkins-cd/logging is explained at https://tfennelly.github.io/jenkins-js-logging/index.html#browser-config
6blueocean.js:17913 [ERROR - io.jenkins.blueocean.dashboard.harmonizeTimes] not found any startTime, seems that a component should not have called this me
error @ blueocean.js:17913
harmonizeTimes @ blueocean.js:7944
convertJenkinsNodeDetails @ jenkins-js-extension.js:49225
(anonymous) @ jenkins-js-extension.js:49296
convertJenkinsNodeGraph @ jenkins-js-extension.js:49295
processData @ jenkins-js-extension.js:49371
componentWillMount @ jenkins-js-extension.js:49356
performInitialMount @ blueocean.js:83535
=================================== ERRORS ====================================
[windows2012Test] ________________ ERROR at setup of testStartNewAgentOnUsedPort ________________
[windows2012Test]
[windows2012Test] ha = HA(host='0.0.0.0', port=6714)
[windows2012Test]
[windows2012Test] def checkPortAvailable(ha):
[windows2012Test] """Checks whether the given port is available"""
[windows2012Test] sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
[windows2012Test] try:
[windows2012Test] > sock.bind(ha)
<?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="1" name="pytest" skips="0" tests="1" time="101.594"><testcase classname="script.test_change_non_primary_node_ha" file="script/test_change_non_primary_node_ha.py" line="15" name="testChangeNodeHaForNonPrimary" time="101.26642394065857"><failure message="AssertionError: election should be complete, but 4 out of 4 don&apos;t know who the primary is for protocol no 1
assert 4 == 0">looper = &lt;stp_core.loop.looper.Looper object at 0x7f709d8eed68&gt;
txnPoolNodeSet = [Alpha, Beta, Gamma, Delta]
tdirWithPoolTxns = &apos;/tmp/pytest-of-sovrin/pytest-368/0&apos;
poolTxnData = {&apos;seeds&apos;: {&apos;Alice&apos;: &apos;99999999999999999999999999999999&apos;, &apos;Alpha&apos;: &apos;Alpha000000000000000000000000000&apos;, &apos;Beta&apos;: &apos;Beta0000...19uyjjEnsRGNXodFYqCRgdLmLRkt&apos;, &apos;txnId&apos;: &apos;4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a&apos;, ...}, ...]}
poolTxnStewardNames = (&apos;Steward1&apos;, &a
==================================== ERRORS ====================================
_______________________ ERROR at setup of testViewChange _______________________
def _():
m_primary_node = get_master_primary_node(list(nodeSet.nodes.values()))
# Delay processing of PRE-PREPARE from all non primary replicas of master
# so master's performance falls and view changes
delayNonPrimaries(nodeSet, 0, 10)
sendReqsToNodesAndVerifySuffReplies(looper, wallet1, client1, 4)
@aigoncharov
aigoncharov / index.ts
Created October 13, 2017 16:12
Mongodb: insert and update generics example
import { Collection, Db } from 'mongodb'
interface IEntity {
field: string
}
interface IUpdate<T> {
$set: T
}
@aigoncharov
aigoncharov / gist:556f8c61d752eff730841170cd2bc3f1
Last active April 26, 2022 06:14
typeorm sqlite concurrent transactions fix
import { Mutex, MutexInterface } from 'async-mutex'
import { Connection, ConnectionManager, ConnectionOptions, EntityManager, QueryRunner } from 'typeorm'
import { Driver } from 'typeorm/driver/Driver'
import { DriverFactory } from 'typeorm/driver/DriverFactory'
import { SqliteDriver } from 'typeorm/driver/sqlite/SqliteDriver'
import { SqliteQueryRunner } from 'typeorm/driver/sqlite/SqliteQueryRunner'
import { AlreadyHasActiveConnectionError } from 'typeorm/error/AlreadyHasActiveConnectionError'
import { QueryRunnerProviderAlreadyReleasedError } from 'typeorm/error/QueryRunnerProviderAlreadyReleasedError'
import { app as logger } from './logger'
npm info it worked if it ends with ok
npm verb cli [ '/usr/bin/node', '/usr/bin/npm', 'ci', '-ddd' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 1ebf26668331fae8
npm info prepare initializing installer
npm verb prepare starting workers
npm verb prepare installation prefix: /usr/src/verity-ui/server
npm verb prepare using package-lock.json
npm verb checkLock verifying package-lock data
npm info it worked if it ends with ok
npm verb cli [ '/usr/bin/node', '/usr/bin/npm', 'ci', '-ddd' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 1ebf26668331fae8
npm info prepare initializing installer
npm verb prepare starting workers
npm verb prepare installation prefix: /usr/src/verity-ui/server
npm verb prepare using package-lock.json
npm verb checkLock verifying package-lock data