标签: bluepill

在 CI 上的 UI 测试不稳定

更新:

VNC 进入构建机器(不做任何更改)以某种方式修复了这个......奇怪


语境

我们使用 Mac EC2 实例 CI 集群来运行 UI 测试。集群设置为每晚回收。这意味着新集群是在早上配置的。我们注意到测试在一天中变得越来越不稳定。

在此处输入图片说明

  • 构建 312 是早上的第一个构建。
  • 红色是失败的测试,橙色是静音测试,黄色是片状测试,灰色是未知状态
  • 提交只是触发构建的空白自动提交。测试内容相同。
  • 注意:Bluepill 配置为每台机器运行一个模拟器(无并发)

日志

片状测试或失败通常是由于“等待某些资源空闲”并达到超时,或某些网络请求完成。失败或不稳定的测试也有一个共同点,即它们通常与视频有关

这是几个示例日志

等待应用空闲

Timed out waiting for app to idle. 
The following idling resources are busy.
1. GREYAppStateTracker:
Waiting for network requests to finish. By default, EarlGrey tracks all network requests. To change this behavior, refer to GREYConfiguration.
<__NSCFLocalDataTask:0x7fcfcfd87450, URL:"https://v.myorgimg.com/videos/mc/hls/e7/01/ca/e701caebac12684056eb699f316fc411_360w.m3u8"> => Waiting for network requests to finish. By default, EarlGrey tracks all network requests. To change this behavior, refer to …
Run Code Online (Sandbox Code Playgroud)

xcode continuous-integration ios bluepill xcode-ui-testing

7
推荐指数
1
解决办法
144
查看次数

使用进程管理器启动延迟作业时丢失PID文件

我正在使用BluePill来管理诸如Rails的延迟作业之类的进程.在BluePill日志中,我收到此消息:

W, [2010-09-27T01:23:20.447053 #19441]  WARN -- : [fsg_distro:delayed_job] pid_file /srv/fsg_distro/shared/pids/delayed_job.pid does not exist or cannot be read
W, [2010-09-27T01:23:20.447368 #19441]  WARN -- : [fsg_distro:delayed_job] Executing start command: ruby script/delayed_job -e production start
I, [2010-09-27T01:23:20.469165 #19441]  INFO -- : [fsg_distro:delayed_job] Going from down => starting
Run Code Online (Sandbox Code Playgroud)

所以它声称丢失了一个pid文件,但是当BluePill启动延迟作业进程时,不应该创建pid吗?

更新 要更清楚地了解此错误,我可以手动成功运行该命令,但Bluepill无法运行启动命令.当我手动运行它时,它看起来像这样:

rails@george:/srv/fsg_distro/current$ /usr/bin/env RAILS_ENV=production /usr/bin/ruby /srv/fsg_distro/current/script/delayed_job start
delayed_job: process with pid 17564 started. 
Run Code Online (Sandbox Code Playgroud)

当我使用Bluepill运行它时,它看起来像这样:

W, [2010-10-03T21:24:13.943136 #17326]  WARN -- : [fsg_distro:delayed_job] pid_file /srv/fsg_distro/shared/pids/delayed_job.pid does not exist or cannot be read
W, [2010-10-03T21:24:13.943391 #17326]  WARN …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails delayed-job bluepill

6
推荐指数
1
解决办法
1657
查看次数

使用bluepill监视bundle exec unicorn_rails

由于unicorn_rails抱怨不同的gem版本,我们在bluepill文件中移动了bundle exec unicorn_rails ... 这个变化解决了特定问题和事情的开始和停止,但是当我们尝试sudo bluepill状态时,我们现在得到了

独角兽(pix:XXXXXX):不受监控

看起来像bluepill现在没有监控独角兽进程.如果我停止子进程,它将重新启动子进程,但不会重新启动父进程.

我已经四处寻找,但对这个问题找不到多少,并希望有人可以对此有所了解.bluepill配置文件是

app_dir = "/opt/local/share/httpd/apps/xyz"
Bluepill.application('xyz', :log_file => "#{app_dir}/current/log/bluepill.log") do |app|
  app.process('unicorn') do |process|
    process.pid_file    = "#{app_dir}/shared/pids/unicorn.pid"
    process.working_dir = "#{app_dir}/current"

    process.stdout = process.stderr = "#{app_dir}/shared/log/unicorn.err.log"
    process.start_command = "bundle exec unicorn_rails -D -c #{app_dir}/current/config/environments/production/unicorn.rb -E production"
    process.stop_command = "kill -QUIT {{PID}}"
    process.restart_command = "kill -USR2 {{PID}}"

    process.start_grace_time = 8.seconds
    process.stop_grace_time = 5.seconds
    process.restart_grace_time = 13.seconds

    process.monitor_children do |child_process|
      child_process.stop_command = "kill -QUIT {{PID}}"

      child_process.checks :mem_usage, :every => 10.seconds, :below => 200.megabytes, :times => [3,5] …
Run Code Online (Sandbox Code Playgroud)

unicorn bundler bluepill

5
推荐指数
1
解决办法
2373
查看次数

Upstart跟踪错误的Bluepill PID

我有bluepill设置来监控我的delayed_job进程.

使用Ubuntu 12.04.

我正在使用Ubuntu启动并监控bluepill服务本身upstart.我的upstart配置在(/etc/init/bluepill.conf)之下.

description "Start up the bluepill service"

start on runlevel [2]
stop on runlevel [016]

expect fork
exec sudo /home/deploy/.rvm/wrappers/<app_name>/bluepill load /home/deploy/websites/<app_name>/current/config/server/staging/delayed_job.bluepill

# Restart the process if it dies with a signal
# or exit code not given by the 'normal exit' stanza.
respawn
Run Code Online (Sandbox Code Playgroud)

我也试过expect daemon而不是expect fork.我也试过expect...完全删除线.

当机器启动时,bluepill启动正常.

$ ps aux | grep blue
root      1154  0.6  0.8 206416 17372 ?        Sl   21:19   0:00 bluepilld: <app_name>
Run Code Online (Sandbox Code Playgroud)

bluepill过程的PID在这里是1154.但 …

linux ubuntu upstart bluepill

5
推荐指数
1
解决办法
733
查看次数

CS32F103C8T6 blue-pill 克隆 - 无法从 AC6 SystemWorkbench 闪存

我正在尝试使用 AC6 SystemWorkBench 和 ST-LINK v2 设备使用 CS32F103C8T6 芯片闪存蓝丸克隆。这是一个从 STM32CubeMX 构建的项目 - 我使用的是 MacOS Mojave 机器。这是尝试刷新设备时的输出。

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : clock speed 8000 kHz
Info : STLINK v2 JTAG v31 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.162004
Info : Unable to match requested speed 8000 kHz, …
Run Code Online (Sandbox Code Playgroud)

macos stm32 bluepill

4
推荐指数
2
解决办法
2566
查看次数

为什么我在尝试使用 openocd 连接 stlink-v2 时出现通信失败

我正在尝试使用 stlink-v2 连接到“stm32”“bluepill”来编写一些代码

每当我运行 openocd 时,它都无法连接 我的 openocd.cfg 文件如下所示

source [find interface/stlink-v2.cfg]
source [find target/stm32f3x.cfg]
Run Code Online (Sandbox Code Playgroud)

当我运行 openocd 时,这是我收到的响应:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match …
Run Code Online (Sandbox Code Playgroud)

embedded openocd bluepill stm32f3 st-link

4
推荐指数
1
解决办法
4927
查看次数

如何将 STLINK-V3MINI 连接到 Blue Pill?

我有一个 Blue Pill,我想使用TinyGo对其进行编程,但 Blue Pill 没有(明显的)硬件编程方法。所以,我买了一个STLINK-V3MINI,希望能用JTAG/SWD来编程。我不确定如何将两者联系起来,并在我天真地将两者联系起来并破坏某些东西之前寻求指导。

蓝色药丸

这是 STLINK-V3MINI:

STLINK-V3MINI

这是 STDC14 连接器:

STDC14

STLINK用户指南的第 19 页有 STDC14 的引脚分配,但我无法将其与 TinyGo 的文档相关联,该文档表明需要SWIO, SWCLK,3v 和GND.

bluepill

2
推荐指数
1
解决办法
2590
查看次数