Skip to content

Instantly share code, notes, and snippets.

src/ext.rs: assert_eq!(len as usize, mem::size_of::<T>());
src/ext.rs: Ok(Some((secs as u32) * 1000))
src/ext.rs: Ok(Some((secs as u32) * 1000))
src/ext.rs: .map(|b| b as u32)
src/ext.rs: Some(dur.tv_sec as u32 * 1000 + dur.tv_usec as u32 / 1000)
src/ext.rs: Some(Duration::from_secs(linger_opt.l_linger as u64))
src/ext.rs: l_linger: d.as_secs() as u16,
src/ext.rs: Duration::new((ms as u64) / 1000, (ms as u32) % 1000 * 1_000_000)
src/ext.rs: (dur.as_secs() as u32 * 1000) + (dur.subsec_nanos() / 1_000_000)
src/ext.rs: n as usize
diff --git a/build/dart/sdk/detect_api_changes/lib/analyze.dart b/build/dart/sdk/detect_api_changes/lib/analyze.dart
index bda2e37c2e..fc95b2f9bf 100644
--- a/build/dart/sdk/detect_api_changes/lib/analyze.dart
+++ b/build/dart/sdk/detect_api_changes/lib/analyze.dart
@@ -40,7 +40,9 @@ Future<String> analyzeAPI(String apiName, List<String> sources) async {
AnalysisSession session = context.currentSession;
var result = await session.getResolvedUnit(path);
- result.unit.accept(d);
+ if (result.unit != null) {
ERROR at //third_party/dart/build/dart/copy_tree.gni:83:28: Script returned non-zero exit code.
copy_tree_inputs_scope = exec_script("$_dart_root/tools/copy_tree.py",
^----------
Current dir: /usr/local/google/home/tamird/src/fuchsia/out/default/
Command: /usr/bin/env /usr/local/google/home/tamird/src/fuchsia/third_party/dart/tools/copy_tree.py --gn /usr/local/google/home/tamird/src/fuchsia/third_party/dart/third_party/pkg/dartdoc/lib/templates {} /usr/local/google/home/tamird/src/fuchsia/third_party/dart/third_party/pkg/dartdoc/lib/resources {} /usr/local/google/home/tamird/src/fuchsia/third_party/dart/sdk/lib/_chrome *.svn,doc,*.py,*.gypi,*.sh,.gitignore /usr/local/google/home/tamird/src/fuchsia/third_party/dart/sdk/lib/_internal *.svn,doc,*.py,*.gypi,*.sh,.gitignore /usr/local/google/home/tamird/src/fuchsia/third_party/dart/sdk/lib/async *.svn,doc,*.py,*.gypi,*.sh,.gitignore /usr/local/google/home/tamird/src/fuchsia/third_party/dart/sdk/lib/cli *.svn,doc,*.py,*.gypi,*.sh,.gitig
void main() {
var addresses = [
"fe80::8eae:4cff:fee9:8434%br0",
"[fe80::8eae:4cff:fee9:8434%br0]",
"[fe80::8eae:4cff:fee9:8434%br0]:22",
];
for (var address in addresses) {
print(address);
try {
print(Uri.http(address, '/'));
diff --git a/pkg/ui/src/js/protos.d.ts b/pkg/ui/src/js/protos.d.ts
index 2c469afd5..85a36aa78 100644
--- a/pkg/ui/src/js/protos.d.ts
+++ b/pkg/ui/src/js/protos.d.ts
@@ -42,23 +42,21 @@ export namespace cockroach {
/**
* Properties of a DatabasesRequest.
* @typedef cockroach.server.serverpb.DatabasesRequest$Properties
- * @type Object
+ * @type {Object}
@tamird
tamird / .config
Last active February 23, 2017 20:10
ct-ng build regression
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_stat_flavor_GNU=y
CT_CONFIGURE_has_make_3_81_or_newer=y
CT_CONFIGURE_has_libtool_2_4_or_newer=y
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
go list -tags '' -f \
'go test -v -tags '\'''\'' -ldflags '\'''\'' -i -c {{.ImportPath}} -o {{.Dir}}/stress.test && (cd {{.Dir}} && if [ -f stress.test ]; then stress -stderr -maxfails 1 ./stress.test -test.run '\''TestRaftRemoveRace'\'' -test.timeout 10m --vmodule=raft=4,raft_log_queue=1; fi)' ./pkg/storage | \
/bin/bash
github.com/cockroachdb/cockroach/pkg/storage
github.com/cockroachdb/cockroach/pkg/storage_test
testmain
48 runs so far, 0 failures, over 5s
98 runs so far, 0 failures, over 10s
152 runs so far, 0 failures, over 15s
208 runs so far, 0 failures, over 20s
$ make stress STRESSFLAGS='-p 100 -stderr -maxfails 1' PKG=./pkg/storage TESTS=TestRaftRemoveRace TESTFLAGS=--vmodule=raft=4,raft_log_queue=1 | tee test.log
go list -tags '' -f \
'go test -v -tags '\'''\'' -ldflags '\'''\'' -i -c {{.ImportPath}} -o {{.Dir}}/stress.test && (cd {{.Dir}} && if [ -f stress.test ]; then stress -p 100 -stderr -maxfails 1 ./stress.test -test.run '\''TestRaftRemoveRace'\'' -test.timeout 2m --vmodule=raft=4,raft_log_queue=1; fi)' ./pkg/storage | \
/bin/bash
github.com/cockroachdb/cockroach/pkg/storage
github.com/cockroachdb/cockroach/pkg/storage_test
testmain
0 runs so far, 0 failures, over 5s
0 runs so far, 0 failures, over 10s
0 runs so far, 0 failures, over 15s
go list -tags '' -f \
'go test -v -tags '\'''\'' -ldflags '\'''\'' -i -c {{.ImportPath}} -o {{.Dir}}/stress.test && (cd {{.Dir}} && if [ -f stress.test ]; then stress -p 100 -stderr -maxfails 1 ./stress.test -test.run '\''TestRaftRemoveRace'\'' -test.timeout 2m --vmodule=raft=4,raft_log_queue=1; fi)' ./pkg/storage | \
/bin/bash
0 runs so far, 0 failures, over 5s
0 runs so far, 0 failures, over 10s
0 runs so far, 0 failures, over 15s
0 runs so far, 0 failures, over 20s
0 runs so far, 0 failures, over 25s
0 runs so far, 0 failures, over 30s
0 runs so far, 0 failures, over 35s
@tamird
tamird / morelogs.diff
Created November 10, 2016 19:14
TestRaftRemoveRace
diff --git a/pkg/storage/client_raft_test.go b/pkg/storage/client_raft_test.go
index 2fcf128..45ebfd9 100644
--- a/pkg/storage/client_raft_test.go
+++ b/pkg/storage/client_raft_test.go
@@ -1999,7 +1999,7 @@ func TestRaftRemoveRace(t *testing.T) {
rangeID := roachpb.RangeID(1)
mtc.replicateRange(rangeID, 1, 2)
- for i := 0; i < 10; i++ {
+ for i := 0; i < 100; i++ {