Skip to content

Instantly share code, notes, and snippets.

View marcesher's full-sized avatar

Marc Esher marcesher

View GitHub Profile
@marcesher
marcesher / jenkins.log
Created March 16, 2019 19:37
jenkins errors after upgrade to 2.138.4
INFO: node0 Scavenging every 660000ms
Jenkins home directory: /var/lib/jenkins found at: SystemProperties.getProperty("JENKINS_HOME")
Mar 16, 2019 7:31:34 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.@3214ee6{Jenkins v2.138.4,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Mar 16, 2019 7:31:34 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@3e62d773{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Mar 16, 2019 7:31:34 PM org.eclipse.jetty.server.Server doStart
INFO: Started @2499ms
Mar 16, 2019 7:31:34 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
@marcesher
marcesher / docker-compose-after-changing-version.log
Last active March 28, 2018 11:40
docker for windows -- kubernetes
PS C:\dev\projects\python\kubetest> docker stack deploy --compose-file .\docker-compose.yml web
Ignoring unsupported options: build
Stack web was created
Waiting for the stack to be stable and running...
- Service redis has one container running
PS C:\dev\projects\python\kubetest> kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
2017-12-15 19:52:19,402 12756 [INFO ] - ============================================================
2017-12-15 19:52:19,581 12756 [INFO ] - Chocolatey v0.10.8
2017-12-15 19:52:19,590 12756 [DEBUG] - Chocolatey is running on Windows v 10.0.16299.0
2017-12-15 19:52:19,592 12756 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-12-15 19:52:19,592 12756 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-12-15 19:52:19,602 12756 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install -y --timeout=0 --execution-timeout=0 docker-for-windows
2017-12-15 19:52:19,603 12756 [DEBUG] - Received arguments: install -y --timeout=0 --execution-timeout=0 docker-for-windows
2017-12-15 19:52:19,654 12756 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-12-15 19:52:19,661 12756 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-12-15 19:52:19,668 12756 [DEBUG] - [Pending] Removing all p
region: us-east-1
function_name: hello_twilio
handler: service.handler
role: lambda_execution_role
description: trying to use lambda to make twilio calls
# if access key and secret are left blank, boto will use the credentials
# defined in the [default] section of ~/.aws/credentials.
aws_access_key_id:
new BaseJobBuilder(
name: "operations-jira-restart",
description: "Restarts dev jira. To be used when Jira is not responding",
emails: ["foo@example.com", "bar@example.com"]
).build(this).with {
scm {
git("https://[redacted]/SoftwareDevelopment/operations-jenkins-automation.git", "master")
}
steps {
shell("fab restart_jira")
@marcesher
marcesher / test.py
Last active August 29, 2015 14:27
Strange hanging behavior with python httplib in one environment only
# Problem: In only one environment, I see behavior with httplib where issuing a request against a FQDN will hang, but works fine with a URL without the domain
# eg request("GET", "http://google.com") hangs, but request("GET", "/") does not
# I only see this problem in one of our hosting environments, on both 2.6 and 2.7
# I cannot replicate it anywhere else
import httplib
cn = httplib.HTTPConnection("google.com", 80, timeout=5)
cn.set_debuglevel(10)

These are questions about browser testing and state.

Imagine a large suite of browser tests that intend to deeply regression test an application. Like most web apps, this involves different types of state: user permissions, expected data in a database, etc. Testing the application requires logging in as different users and/or user types to test different views into the data.

  1. What are patterns for creating expected state prior to running browser tests?
  2. Is it appropriate for the browser tests to communicate directly with the database of the system under test, creating state in the same manner that you would in an integration test?
  3. How important is it that browser tests be decoupled from the application under test, such that the only thing required to run tests are the tests themselves, which can be pointed at any applicable URL (dev, test, staging)?
@marcesher
marcesher / gist:9863995
Created March 29, 2014 22:21
goimports_if_go.sh
#!/bin/sh
if [[ $1 == *.go ]]
then
goimports -w $1
fi
@marcesher
marcesher / pig.log
Created February 4, 2014 12:55
ye olde stack
worker-11
at java.lang.String.intern()Ljava/lang/String; (Native Method)
at clojure.lang.Symbol.intern(Ljava/lang/String;)Lclojure/lang/Symbol; (Symbol.java:62)
at clojure.lang.Keyword.intern(Ljava/lang/String;)Lclojure/lang/Keyword; (Keyword.java:53)
at clojure.core$keyword.invoke(Ljava/lang/Object;)Ljava/lang/Object; (core.clj:574)
at cfpb.qu.data$get_data_table$fn__4180$fn__4181.invoke(Ljava/lang/Object;)Ljava/lang/Object; (data.clj:176)
at clojure.core$map$fn__4207.invoke()Ljava/lang/Object; (core.clj:2485)
at clojure.lang.LazySeq.sval()Ljava/lang/Object; (LazySeq.java:42)
at clojure.lang.LazySeq.seq()Lclojure/lang/ISeq; (LazySeq.java:60)
at clojure.lang.ChunkedCons.chunkedNext()Lclojure/lang/ISeq; (ChunkedCons.java:59)