undefined `build' for Pilot::BuildManager

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
When using the testflight action with:
skip_submission: false,
distribute_external: false,
skip_waiting_for_build_processing: false,
update_build_info_on_upload: true
It gives an error "undefined `build' for Pilot::BuildManager".
Looking at the stack trace, in pilot/lib/pilot/build_manager.rb when it runs wait_for_processing_build and should_update_build_information(options) returns true, there is an error trying to call build.update_build_information because there is no variable called build in the scope. I'm guessing this build refers to latest_build? When we renamed build to latest_build, it seemed to have fixed the issue.
Complete output when running fastlane, including the stack trace and command used
ERROR [2016-12-09 15:37:35.33]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
Search query: undefined `build' for Pilot::BuildManager
Did you mean?  builds
URL: https://api.github.com/search/issues?q=undefined%20%60build'%20for%20Pilot::BuildManager%0ADid%20you%20mean?%20%20builds+repo:fastlane/fastlane
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue
/Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/pilot-1.12.1/lib/pilot/build_manager.rb:140:in `block in wait_for_processing_build': [!] undefined local variable or method `build' for #<Pilot::BuildManager:0x007fe864c1aa08> (NameError)
Did you mean?  builds
Did you mean?  builds
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/pilot-1.12.1/lib/pilot/build_manager.rb:122:in `loop'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/pilot-1.12.1/lib/pilot/build_manager.rb:122:in `wait_for_processing_build'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/pilot-1.12.1/lib/pilot/build_manager.rb:34:in `upload'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/actions/pilot.rb:18:in `run'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/actions/testflight.rb:5:in `run'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:202:in `block (2 levels) in execute_action'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:187:in `block in execute_action'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:186:in `chdir'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:186:in `execute_action'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:112:in `trigger_action_by_name'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/fast_file.rb:146:in `method_missing'
	from Fastfile:111:in `block (2 levels) in parsing_binding'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/lane.rb:33:in `call'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:165:in `try_switch_to_lane'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:120:in `trigger_action_by_name'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/fast_file.rb:146:in `method_missing'
	from Fastfile:92:in `block (2 levels) in parsing_binding'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/lane.rb:33:in `call'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/runner.rb:45:in `execute'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/command_line_handler.rb:30:in `handle'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/commands_generator.rb:95:in `block (2 levels) in run'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/command.rb:178:in `call'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/command.rb:153:in `run'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/delegates.rb:15:in `run!'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/commands_generator.rb:292:in `run'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/commands_generator.rb:36:in `start'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fastlane-1.111.0/bin/fastlane:5:in `<top (required)>'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/bin/fastlane:22:in `load'
	from /Users/cl-dev5/.rbenv/versions/2.3.3/bin/fastlane:22:in `<main>'

Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
✅ fastlane environment ✅
Stack

Key
Value

OS
10.11.6

Ruby
2.3.3

Bundler?
false

Git
git version 2.9.3 (Apple Git-75)

Installation Source
~/.rbenv/versions/2.3.3/bin/fastlane

Host
Mac OS X 10.11.6 (15G1108)

Ruby Lib Dir
~/.rbenv/versions/2.3.3/lib

OpenSSL Version
OpenSSL 1.0.2j  26 Sep 2016

Is contained
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.1

System Locale

Variable
Value

LANG
en_CA.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.110.0"

default_platform :ios

platform :ios do
  before_all do
    cocoapods
  end

  def change_log_since_last_tag
    # http://git-scm.com/docs/pretty-formats
    # <short hash> <commit title>
    return changelog_from_git_commits(pretty: '%h %s')
  end

  def tag_string(version_number, build_number)
    "v#{version_number}_build_#{build_number}"
  end

  lane :cl_build_debug do
    gym(
      use_legacy_build_api: true,
      configuration: "Debug",
      include_symbols: true,
      include_bitcode: true
    )
  end

  lane :cl_build_release do
    gym(
      use_legacy_build_api: true,
      include_bitcode: true
    )
  end

  lane :cl_match_distribution do
    match(
      type: "appstore",
      verbose: true,
    )
  end

  desc "Build and submit the app on TestFlight."
  desc "Usage: fastlane cl_testflight [version_number:x.y.z] | [bump_type:(major|minor|patch)]"
  lane :cl_testflight do |options|
    # verify parameters
    version_number = options[:version_number]
    bump_type = options[:bump_type] #TODO check bump_type values (major, minor, patch)
    if (version_number != nil && bump_type != nil)
      raise "Cannot specify both version_number and bump_type"
    end

    ensure_git_branch
    ensure_git_status_clean

    # run match
    cl_match_distribution

    # version and build number incrementing/setting
    build_number = "0"
    if version_number != nil || bump_type != nil
      # version_number or bump_type is specified, reset build number
      version_number = increment_version_number(version_number: version_number, bump_type: bump_type)
      build_number = increment_build_number(build_number: 0)
    else
      # no version number change, just increment build number
      version_number = get_version_number
      build_number = increment_build_number
    end

    # build
    cl_build_release

    # testflight
    verify_build
    change_log = change_log_since_last_tag
    puts "CL LOG: CHANGE LOG: #{change_log}"

    # commit version and add git tags
    complete_version_number = tag_string(version_number, build_number)
    commit_version_bump(
        message: "Version bump to #{complete_version_number}",
        xcodeproj: "App.xcodeproj"
      )
    add_git_tag tag:complete_version_number
    push_to_git_remote
    cl_testflight_internal_upload(changelog: change_log)
    slack(message: "Build #{complete_version_number} uploaded to TestFlight")
  end

  lane :cl_verify_xcode do
    verify_xcode
  end

  lane :cl_testflight_internal_upload do |options|
    change_log = options[:changelog]
    testflight(
      changelog: change_log,
      skip_submission: false,
      distribute_external: false,
      skip_waiting_for_build_processing: false,
      update_build_info_on_upload: true,
      beta_app_description: "Description",
      beta_app_feedback_email: ""
    )
  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Deploy a new version to the App Store"
  lane :release do
    # match(type: "appstore")
    # snapshot
    gym # Build your app - more options available
    deliver(force: true)
    # frameit
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
     slack(
       message: exception.message,
       success: false
     )
  end
end

# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer

`./fastlane/Appfile`
app_identifier "** hidden **" # The bundle identifier of your app
apple_id "** hidden **" # Your Apple email address

team_id "** hidden **"  # Developer Portal Team ID
itc_team_name "** hidden **"

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem
Version
Update-Status

credentials_manager
0.16.2
✅ Up-To-Date

fastlane_core
0.59.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

json
1.8.3

multi_json
1.12.1

highline
1.7.8

colored
1.2

commander
4.4.1

excon
0.54.0

rubyzip
1.1.7

plist
3.2.0

terminal-table
1.4.5

gh_inspector
1.0.2

security
0.1.3

credentials_manager
0.16.2

fastlane_core
0.59.0

io-console
0.4.5

i18n
0.7.0

thread_safe
0.3.5

tzinfo
1.2.2

minitest
5.8.5

activesupport
<IP_ADDRESS>

CFPropertyList
2.3.4

claide
1.0.1

nanaimo
0.2.3

xcodeproj
1.4.1

bundler
1.13.6

word_wrap
1.0.0

generated on: 2016-12-12

Can you update to the latest fastlane/pilot release?

@KrauseFx I have updated fastlane, spaceship, and pilot to the latest release and am still getting the error. On the latest version I can still see the line of code that is causing the error. In Pilot's build_manager.rb, line 153 it is using running build.update_build_information. Perhaps it should be latest_build.update_build_information since there is no 'build' variable in that scope?

Getting the same error as well. Any timeline when this can be fixed please?

Nice catch, looking into this now, thanks 👍


Add 0's at the beginning of Beagle images when using BMAPs

Etcher version: master
Operating system and architecture: all
Do you see any meaningful error information on DevTools? N/A

There are sometimes issues with the ROM bootloader on Beagle boards when you don't 0 out the first 1MB of the SD cards before writing the images using BMAPs. This is because the bootloader expects this and the BMAP tool sees this as sparse space. If you just write 0s to the first 1MB before writing the image, it'll boot fine every time.

@jviotti how about adding an offset config parameter?

@jadonk What is your current workaround? Do users flashing the image with bmaptool frequently encounter this issue? If the zeroes are explicitly being written in the first megabyte then bmaptool shouldn't interpret this as sparse space.
This sounds like the something that should be fixed from the image generation side, since it'd be a special code path in Etcher, but I'm open to further discussion.
@alexandrosm You mean an offset option to determine how much to zero out?

@jviotti exactly!
--
Alexandros Marinos
Founder & CEO, Resin.io
+1<PHONE_NUMBER>
@alexandrosm
On Thu, Sep 1, 2016 at 7:09 PM, Juan Cruz Viotti<EMAIL_ADDRESS>wrote:

@jadonk https://github.com/jadonk What is your current workaround? Do
users flashing the image with bmaptool frequently encounter this issue?
If the zeroes are explicitly being written in the first megabyte then
bmaptool shouldn't interpret this as sparse space.
This sounds like the something that should be fixed from the image
generation side, since it'd be a special code path in Etcher, but I'm open
to further discussion.
@alexandrosm https://github.com/alexandrosm You mean an offset option
to determine how much to zero out?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/resin-io/etcher/issues/673#issuecomment-244265114,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABLUCLgLVoJ-TzIjkN2J1kTtOlfBDQjvks5ql4VagaJpZM4Jy0LN
.

It could be fixed as a bug in bmaptool, good point. The writing of zeros before writing with bmaptool is the work-around. I'll raise a bug there.

On Sep 1, 2016, at 10:09 PM, Juan Cruz Viotti<EMAIL_ADDRESS>wrote:
@jadonk What is your current workaround? Do users flashing the image with bmaptool frequently encounter this issue? If the zeroes are explicitly being written in the first megabyte then bmaptool shouldn't interpret this as sparse space.
This sounds like the something that should be fixed from the image generation side, since it'd be a special code path in Etcher, but I'm open to further discussion.
@alexandrosm You mean an offset option to determine how much to zero out?
―
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@jviotti the current workaround was to stop publishing "*.bmap" files and just recommended users use etcher.io. ;)  I'll need to retest, as it was a few quarters ago, but the gist was:
On boards like the omap3-xm (dm3730), which don't officially support "raw boot", the bootloader was found in the first fat partition.  If i had a microSD card, that was flashed for a bbb (am335x which support raw boot, (the bootrom was 2 generations later then the dm3730's..)).  So if i then used bmaptool to then flash that same card for the omap3-xm, it would fail to boot.  However if i dd'ed the image directly to the microSD, it would boot fine.  At the time since Etcher.io just came out, i then recommended users use that instead.
My theory at the time, the dm3730 was tripping over something in the 'raw boot' sectors on the microSD.  Thus clearing out the first 1MB should fix that.
Regards,

I think the solution is actually to insert the zeroes into your image and
mark them in the bmap file as an area that has to be written. This can
probably be done with manual editing of the bmap file. However the easiest
would be if @jviotti makes a configurable "pre-padding offset" and solves
it for all of us, so you can have your etcher and bmaps too :P
--
Alexandros Marinos
Founder & CEO, Resin.io
+1<PHONE_NUMBER>
@alexandrosm
On Sat, Sep 3, 2016 at 11:01 AM, Robert Nelson<EMAIL_ADDRESS>wrote:

@jviotti https://github.com/jviotti the current workaround was to stop
publishing "*.bmap" files and just recommended users use etcher.io. ;)
I'll need to retest, as it was a few quarters ago, but the gist was:
On boards like the omap3-xm (dm3730), which don't officially support "raw
boot", the bootloader was found in the first fat partition. If i had a
microSD card, that was flashed for a bbb (am335x which support raw boot,
(the bootrom was 2 generations later then the dm3730's..)). So if i then
used bmaptool to then flash that same card for the omap3-xm, it would fail
to boot. However if i dd'ed the image directly to the microSD, it would
boot fine. At the time since Etcher.io just came out, i then recommended
users use that instead.
My theory at the time, the dm3730 was tripping over something in the 'raw
boot' sectors on the microSD. Thus clearing out the first 1MB should fix
that.
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/resin-io/etcher/issues/673#issuecomment-244560930,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABLUCJho8o73T7Eu36aNU7ffivMNpJccks5qmbXtgaJpZM4Jy0LN
.

Sounds good. I'll implement and keep you updated!

I've started work on this today. The plan is:

Add an option to control the amount of bytes that need to be zeroed out in https://github.com/resin-io-modules/bmapflash, our NodeJS bmap implementation module.

Extend the manifest.json to support a property to configure such option in https://github.com/resin-io-modules/etcher-image-stream.

Tied them up in Etcher itself.

This feature is complete, and will be merged very soon. The manifest.json file in an archive image may now include a bytesToZeroOutFromTheBeginning number option that as the name implies, signals the amount of bytes that should be zeroed out from the beginning of the drive before starting the bmap flash process. Setting that to 1 MB (expressed in bytes), should be enough for you!


⚠ Bofrost.ch has degraded performance

In 2a01f4f, Bofrost.ch (https://www.bofrost.ch) experienced degraded performance:

HTTP code: 200
Response time: 2593 ms

Resolved: Bofrost.ch performance has improved in f041cba after 9 minutes.


Documentation issue: Install with Helm bad link

Section:
https://gateway.envoyproxy.io/v0.5.0/install/install-helm/#before-you-begin
Has bad link:
Version Compatibility Matrix

please check the v1.0.1 or latest doc


Merge databasemerge into master

The merge of the combination of databases into master

Closed due to .NET workflow fail


fix: allow rpc txStatusReceipts to accept String

Reference issue #860

It seems you updated the JS but not the TS.  You should update the same file in ./src and then rebuild.  Having artifacts of js in this lib was probably initially so that you could depend on the repo as an NPM dep.  However, ideally, it wouldn't be a part of the repo and only be built before publishing.

Thanks for reviewing, this is solved by PR #866 by @BatiGencho


GOBBLIN-1331: Add average record size to work unit state

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1331

Description

[x] Here are some details about my PR, including screenshots (if applicable):
We add average record size to work unit state, to make use of it to configure the ORC writer.

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Trivial change.

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3166 (c61a7f5) into master (0aad6d4) will decrease coverage by 37.05%.
The diff coverage is 0.00%.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0aad6d4...c61a7f5. Read the comment docs.


bug: astro-imagetools crashing the serverless function with vercel adapter

I wanted to use astro-imagetools with output: "server" mode and vercel adapter to deploy it to vercel but whenever I'm entering the website the serverless function crashes with this specific error:
The problem does not appear in dev only in production deployed in vercel.
Unhandled Promise Rejection
{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: ENOENT: no such file or directory, mkdir
'undefined/'","reason":{"errorType":"Error","errorMessage":
"ENOENT: no such file or directory, mkdir 'undefined/'","code":"ENOENT","errno":-2,"syscall":"mkdir",
"path":"undefined/","stack":["Error: ENOENT: no such file or directory, mkdir 'undefined/'","
at Object.mkdirSync (node:fs:1396:3)","
    at file:///var/task/vercel/path0/dist/chunks/pages/index.astro.1b654532.mjs:424:34"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, mkdir 'undefined/'","
        at process.<anonymous> (file:///var/runtime/index.mjs:1186:17)","
         at process.emit (node:events:525:35)","    at emit (node:internal/process/promises:149:20)","
      at processPromiseRejections (node:internal/process/promises:283:27)","
      at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"]}
Unknown application error occurred
Runtime.Unknown

//astro.config.mjs
import { defineConfig } from 'astro/config';
import { astroImageTools } from "astro-imagetools";

import vercel from "@astrojs/vercel/serverless";

// https://astro.build/config
export default defineConfig({
  integrations: [astroImageTools],
  output: "server",
  adapter: vercel()
});

{/* component */}
<Img src={`https://picsum.photos/1024/768/`} alt={"test"} width={300} height={300} placeholder="blurred" format="webp" loading="eager" />

I've also been struggling with this in the last hour, and I think it's Vercel's fault. I ended up not using astro-imagetools and moved my images into a /public folder in root and then used the img tag directly.
Something like:
import { Image } from 'astro:assets';
---
<img src={`/images/${proj.img_link}`} alt={proj.name}/>

There's a section on img and public/ in the Astro docs: https://docs.astro.build/en/guides/images/
It was pretty frustrating, hope this helps!


Write config change log when enabling/disabling health check

as title. Also send message to the slack channel when failed to enable/disable health check.
@sbaogang

r+


Coffeescript error while attempting to format

While attempting to format this table, the package fails to format and throws this error instead.
OS: Win 7
Atom: 0.179.0
On document save it formatted correctly. Only the selection and Format failed

Query
Query Hint
Count

Long Tokens
INSERTPK
11526379

Short tokens
INSERTPK
3250669

Uncaught TypeError: undefined is not a function
/C:/Users/sengopal/.atom/packages/markdown-table-formatter/lib/markdown-table-formatter.coffee:33
Hide Stack Trace
TypeError: undefined is not a function
  at atom-text-editor.<anonymous> (C:\Users\sengopal\.atom\packages\markdown-table-formatter\lib\markdown-table-formatter.coffee:26:49)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\sengopal\AppData\Local\atom\app-0.179.0\resources\app\src\command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (C:\Users\sengopal\AppData\Local\atom\app-0.179.0\resources\app\src\command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\sengopal\AppData\Local\atom\app-0.179.0\resources\app\src\command-registry.js:156:19)
  at EventEmitter.<anonymous> (C:\Users\sengopal\AppData\Local\atom\app-0.179.0\resources\app\src\window-event-handler.js:65:30)
  at EventEmitter.emit (events.js:116:17)
The error was thrown from the markdown-table-formatter package. You can help by creating an issue. Please explain what actions triggered this error.

Couldn't reproduce. Would you please show a minimal example with all steps required to reproduce spelled out? At first glance it seems that text editor disappears after event is triggered.

i agree. This table was part of a big document, which i cannot share :)  due to obvious reasons. Let me check if i can reproduce, so will close for now. Thanks for the plugin, this is a life saver :+1:


Books can be sorted by office

When a user creates a book
Then they can select from a list of 8th Light offices
When a user looks for a book
Then they can select books by office

PR #22


The scale’s transform should apply to the scale’s explicit domain, if any

In this example, it’s confusing that the domain is specified in the transformed space [-100, 100] instead of the pre-transformed space [0, 2]; everything else, including the ruleY is specified in the pre-transformed space. So, you want the domain to be specified in the same space so that you can add and remove the transform without needing to change anything else in the plot.

Plot.plot({
  y: {
    domain: [-100, 100],
    label: "↑ Close (%)",
    transform: (y) => (y - 1) * 100,
    tickFormat: "+d"
  },
  color: {
    legend: true
  },
  marks: [
    Plot.ruleX([frcb[i].Date]),
    Plot.ruleY([1]),
    Plot.lineY(stocks, Plot.normalizeY((Y) => Y[i], {x: "Date", y: "Close", stroke: "Symbol", tip: true})),
  ]
})

I think the reason we don’t do this now somewhat inadvertent: when the domain is not specified explicitly, it is derived from the channels, which already have the transform applied. So, we don’t want to apply the transform to the domain if the domain was derived from already-transformed channels; we only want to apply it when the domain was specified explicitly.
I don’t see an obvious way of making this change backwards compatible, since it changes the meaning of the domain option when the transform option is present. (We could introduce another option to control whether the transform applies to the domain, but it’ll still be confusing unless we change the default behavior.) So maybe this isn’t fixable, but I figure I would at least write this down in case others run into the same confusion.

The current situation is useful for example when grouping/binning as a scale transform:

Plot.dotX(penguins, { x: "body_mass_g", y: "sex", fill: "species" }).plot({
  y: {
    domain: ["F", "M"], // ignores N/A
    transform: (d) => d?.[0]
  }
})

or a facet scale transform:

  Plot.plot({
    width: 600,
    height: 350,
    facet: {data: athletes, x: "nationality"},
    y: {domain: [1.45, 2.1]},
    fx: {transform: (code) => continents.get(code), label: "continent"},
    marks: [
      Plot.frame(),
      Plot.dot(athletes, Plot.dodgeX({y: "height", title: "nationality", fill: "currentColor", anchor: "middle"}))
    ]
  });

http://localhost:8008/?test=athletesBoxingHeight
But I agree that there is a bit of confusion, and it would be nice to have a possibility to specify the domain from the pre-transform space.

In the first case, you could just say domain: ["FEMALE", "MALE"], though, right? And if you want to put a ruleY on there, you’d need to say ruleY(["FEMALE"]), so it seems reasonable for the scale domain option to be specified consistently.
I don’t follow the second case, since this issue only applies when the domain is specified explicitly; if you don’t specify the domain explicitly, the proposed change has no effect.

I'm trying to think of the usage pattern of having both domain and transform. For the second case (country codes to continents), imagine that you set fx.domain to ["Africa", "Oceania"], to show only these two "transformed" facets (maybe this is coming from a checkbox input, or from another plot's exported scale).


Log Every Click to the event_events_logTable

Problem
We have pinned our future hopes on data analytics and the ability to tell the story of community need and community engagement. For that, we need to provide very timely and relevant analytics.
Solution
We need to log every single click, action, change, or interaction in the event_events_log table, or virtualize this table to another location where it will not interfere with the primary database. This table will drive the Real-time map, as well as all reports and analytics.
Make sure every button has an action associated with it
Make sure every action is logged
Log calls to event_events_logs
See CrisisCleanup/crisiscleanup-4-web#141

Closed for now until we revive events.


PowerShell Intellisense forever processing, causing f5 and f8 keys to not work

We have written the needed data into your clipboard becaus
Issue Type: Bug
Ever since today ( this used to work) when i use PowerShell and i start typing a command it will use intellisense to tab complete the command i am looking for. After the first command is entered, i start typing the next command and i notice the powershell spinning arrows at the bottom-left of VS code just continually spinning. Once it is in this state you cannot use f5 or f8 to run sections or a whole script. You can re-launch VS code and it will work until you use intellisense again.
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:49:35.976Z)
OS version: Windows_NT x64 10.0.18362

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 1992)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: unavailable_offviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.85GB (7.15GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

remote-wsl
ms-
0.40.2

powershell
ms-
2019.11.0

e it was too large to send. Please paste.

Please file issue against Powershell extension, which seems to cause the issue you run into.


Handle deleted messages (delete_message events)

https://zulip.com/api/get-events#delete_message
Related issue:

#118

We now parse these events, since #212. The remaining task in this issue is to handle them in [PerAccountStore.handleEvent], by updating our data structures that are affected.


footnotes and toc links not working

For some reason footnotes and toc links don't work properly. For example clicking on footnote one in a post should take me to http://myblog/2018/08/my-first-post/#fn:1 but instead goes to http://myblog/2018/08/my-first-post/#!#fn:1. Note the extra #!. Something similar happens with toc links on pages where a toc is used. Any idea why that #! is being pre-pended?

This sounds to me as an Angular issue.

Indeed - disabling angular fixed the issue.

Ok, great that you solved it. We need a more permanent solution I think.  But I close it for now.


DM-1824 : with the latest version of Chronicle queue we need to disable the thread safety check from the lib, as we are already taking care of the thread safety in the SNMP agent.

…le the thread safety check from the lib, as we are already taking care of the thread safety in the SNMP agent.

@atulpandasag what about the other change related to circular dependency ?

@atulpandasag what about the other change related to circular dependency ?

My bad, missed to push the changes.


Create an analyzer to require the 'Async' prefix in names of async methods

Or.. Does this already exist?

https://github.com/microsoft/vs-threading/blob/master/doc/analyzers/VSTHRD200.md
😄

Awesome! Thanks

Personally I don't really like to install an analyzer package with all sorts VS-related analyzers to e.g. Asp.Net Core solution.

@Dreamescaper That analyzer package is designed for use in code that is unrelated to Visual Studio. Most rules that don't apply to web projects will disable themselves, but if you have any warnings from rules that you aren't interested in you can disable them.


Can't mix searchType frontmatter and text - results in either only the first target rendering or a YAML parse error

Using the searchType frontmatter and tags works, but mixing frontmatter and text either results in Error parsing YAML or only the first searchTarget being rendered.
Expected Behavior
So notes look something like this:
2023-11-01
---
Range: 11/22
---
This One: 16.7 ppm
Another One: 23 mcg
Third: 0.2 mmol

or
2024-01-01
---
Range: 11/22
---
This One: 14.3 ppm
Another One: 26 mcg
Third: 0.1 mmol

Range doesn't ever change between notes - it's a static value so that it renders a completely flat line in the graph.
Graph:
```tracker
searchType: frontmatter, text
searchTarget: Range[0], Range[1], 'This\s+One:\s+(?<value>[\-]?[0-9]+[\.][0-9]+|[\-]?[0-9]+)'
folder: This/Folder/
line:
    title: This One over time
    yAxisLabel: This One
    yAxisUnit: ppm
    xAxisLabel: ''
    lineColor: yellow, orange, magenta
    lineWidth: 0.5, 0.5, 1
    showPoint: false, false, true
    fillGap: true

Should result in a graph with two flat, thin lines (Range[0] and Range[1])  and This One being plotted as a graph with different values.
Current Behavior/Steps to Reproduce
Only Range[0] is rendered.
Not sure if it's something I'm doing wrong but when using the search type combo of frontmatter and tags, it worked fine. As soon as I try to combine frontmatter and text, it either only renders the first frontmatter target or has a YAML parse error.
Swapping the order of the searchTypes around:
```tracker
searchType: text, frontmatter
searchTarget: 'This\s+One:\s+(?<value>[\-]?[0-9]+[\.][0-9]+|[\-]?[0-9]+)', Range[0], Range[1]
folder: This/Folder/
line:
    title: This One over time
    yAxisLabel: This One
    yAxisUnit: ppm
    xAxisLabel: ''
    lineColor: magenta, yellow, orange
    lineWidth: 1, 0.5, 0.5
    showPoint: true, false, false
    fillGap: true

I get a Error parsing YAML.
Previously I had it set up so that it was searchType: frontmatter, tag which showed the graph correctly. However, since I want to be able to just copy-paste blood test results without converting each test item into a tag, I removed the #s back to plain text. e.g. #ThisOne: 14.3 ppm -> This One: 14.3 ppm.
If I solely use the text search type, the graph works fine but of course, doesn't have the thin reference lines I need to immediately be able to tell whether certain values are too low (Range[0]) or too high (Range[1]).

This sounds more like you need a feature to be able to provide value markers in the graph instead? Something like:
searchType: text
searchTarget: 'This\s+One:\s+(?<value>[\-]?[0-9]+[\.][0-9]+|[\-]?[0-9]+)'
folder: This/Folder/
line:
    title: This One over time
    yAxisLabel: This One
    yAxisUnit: ppm
    xAxisLabel: ''
    lineColor: magenta, yellow, orange
    lineWidth: 1, 0.5, 0.5
    showPoint: true, false, false
    fillGap: true
    markers: 11, 22

Sorry for slow reply, that would be correct. Ideally we could manually set a reference range for any given line graph, as proposed here: https://github.com/pyrochlore/obsidian-tracker/issues/308
My work around was to try using a template that automatically inserts an upper and lower reference range as part of the YAML and then actual values that change are within text. But that isn't working for me since I can't mix SearchType text and frontmatter. Not using text SearchType would require a lot of backtracking through existing diary entries (notes) and converting all the text to either YAML or using tags so I can use those two instead.
But just being able to add "markers" as a reference would work too since it's only one point of entry instead of having to add reference data to every single diary entry.


Tywatt 5100 for gas consumption isn't detected

Hello,
I use tydom2mqtt and Home Assistant since several weeks ! It's work fine, thanks for the job.
But I am a problem with my Tywatt 5100, the data insn't collected by tydom2mqtt on HA.
I also have Kline detector for door and windows => works fine, Tywatt 5400 => for Linky consumption : work fine too
I have only probleme with Tywatt 5100

The device behind my Tywatt 5100, name  "Gazpar" in the Tydom app appears to be "updated",
(device update log (id=1669825766, endpoint=1669825766, name=Gazpar, type=conso))
But I don't have the following log line with "Sensor created/updated:..."
`2023-09-04 17:11:48,153 - sensors.Sensor       - INFO    - Sensor created / updated : energyInstantTotElecP 237
2023-09-04 17:12:09,721 - tydom.MessageHandler - INFO    - Device update (id=1676108015, endpoint=1676108015, name=Linky, type=conso)
2023-09-04 17:12:09,723 - sensors.Sensor       - INFO    - Sensor created / updated : energyInstantTotElecP 238
2023-09-04 17:12:29,973 - tydom.MessageHandler - INFO    - Device update (id=1676108015, endpoint=1676108015, name=Linky, type=conso)
2023-09-04 17:12:29,976 - sensors.Sensor       - INFO    - Sensor created / updated : energyInstantTotElecP 237
2023-09-04 17:13:15,221 - tydom.MessageHandler - INFO    - Device update (id=1669825766, endpoint=1669825766, name=Gazpar, type=conso)
2023-09-04 17:14:13,180 - tydom.MessageHandler - INFO    - Device update (id=1676108015, endpoint=1676108015, name=Linky, type=conso)
2023-09-04 17:14:13,182 - sensors.Sensor       - INFO    - Sensor created / updated : energyInstantTotElecP 238
2023-09-04 17:14:23,310 - tydom.MessageHandler - INFO    - Device update (id=1676108015, endpoint=1676108015, name=Linky, type=conso)
2023-09-04 17:14:23,313 - sensors.Sensor       - INFO    - Sensor created / updated : energyInstantTotElecP 237```


feat(react-tinacms-editor): media mgr opens from uploadDir

Did a quick test and the media manager does open from the root folder in the Gatsby demo.
I couldn't insert an image though, thumbnails are not displayed and the "Upload" label is not displayed properly.
https://www.loom.com/share/581012d2357144398a342d37411a6352

@DirtyF We don't have a good solution for Gatsby yet.

@DirtyF the uploadDir isn't set on that demo (on the blog) so it will always open from the root. And it seems like you need to rebuilt because we fixes those styles issues — upload button and and broken images.


chore: bump zio, zio-streams, zio-test, ... from 2.0.0 to 2.0.2

Updates

dev.zio:zio
dev.zio:zio-streams
dev.zio:zio-test
dev.zio:zio-test-sbt

from 2.0.0 to 2.0.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.0.0).
You might want to review and update them manually.
build.sbt
project/plugins.sbt
research/implicits.scala
website/package-lock.json
website/package.json
zio-spark-core/src/main/scala-2.11/zio/spark/sql/DataFrameStatFunctions.scala
zio-spark-core/src/main/scala-2.11/zio/spark/sql/Dataset.scala
zio-spark-core/src/main/scala-2.12/zio/spark/sql/DataFrameStatFunctions.scala
zio-spark-core/src/main/scala-2.12/zio/spark/sql/Dataset.scala
zio-spark-core/src/main/scala-2.13/zio/spark/sql/DataFrameStatFunctions.scala
zio-spark-core/src/main/scala-2.13/zio/spark/sql/Dataset.scala
zio-spark-core/src/main/scala/zio/spark/sql/SparkSession.scala
zio-spark-core/src/main/scala/zio/spark/sql/streaming/DataStreamWriter.scala

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "dev.zio" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:1

Superseded by #256.


Import class ApiRootResource

What changes were proposed in this pull request?

Import src/main/scala/org/apache/spark/status/api/v1/ApiRootResource.scala from spark v2.1.0 tag,  which is the root resource class of RESTful api.
To minimize modifications, only import class ApiRootResource.

How was this patch tested?
no difference between the original class
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Thanks @TigerSong . Merging this.


Possible Volume issue on Windows Server 2016

Issue and explanation:
I've created an IIS web server image which is using PHP. I've used the latest microsoft/windowssservercore image.
PHP install is working fine and I can open PHP files in my browser. But when I place the PHP files on a Docker volume PHP stops working. In the browser I can only see "No input file specified". I think it must be a Docker volume related issue (maybe something is different when the running program - in this case PHP - trying to reach the volume) because it is always working with any kind of scenario except when I place the PHP files on an attached volume.
Tried it with multiple PHP versions (5.6 and 7)
Create container:
docker create -it --network=TransparentNetwork -h IIS --mac-address 10:10:10:10:10:02 -m 1G --restart unless-stopped -v D:/Volumes/iis/www:C:/www:rw waterwall/iis:2.0 powershell
Inspection of the mount:
"Mounts": [
{
"Type": "bind",
"Source": "d:\volumes\iis\www",
"Destination": "c:\www",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
Docker Version:
Version:      1.13.0-dev
API version:  1.25
Go version:   go1.7.1
Git commit:   668189e
Built:        Tue Oct 18 17:05:04 2016
OS/Arch:      windows/amd64
Docker Info:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 15
Server Version: 1.13.0-dev
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: nat null overlay transparent
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.206.amd64fre.rs1_release.160915-0644)
Operating System: Windows Server 2016 Datacenter Evaluation
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 7.952 GiB
Name: CoreContainers
ID: RQID:KVGU:QMEL:YWVP:4QJY:Y7M5:QDRZ:SCJQ:NSIU:OPHK:ER55:SLDM
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
<IP_ADDRESS>/8
Live Restore Enabled: false

And I had a kind of similar problem when I tried to use the latest stable MariaDB (fork of MySQL).
I've placed the DB files on a volume but it wasn't working until I've changed the service user of MariaDB from Network Service to Local System.
I just wanted to mention this because it is possible that these two are connected somehow.

We also found this problem when try to map "PHP" code with host. As we start this container with volume map (-v with host) to map sourcecode of php to running on container. We found error as "No input file specified". But when we try copy some php code to running on c:\intetpub\wwwroot (inside container). It run fine. So is anyone have solution for this ?

I have no solution, still struggling with this problem and I'm waiting for some kind of help or advice.

I can reproduce these problems.
Using @StefanScherer's dockerfiles:
git clone https://github.com/StefanScherer/dockerfiles-windows
cd dockerfiles-windows\php
docker build -t php .

From this, we can build a Dockerfile that cleans out the www folder to mount into:
FROM php

RUN rm C:\www\*.*

docker build -t test .

Have dir on container host with php site (eg. from here):
dir mount

    Directory: C:\code\repros\php-volume\mount

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       12/26/2016  11:34 AM             58 index.php
-a----       12/26/2016  11:33 AM             21 phpinfo.php
-a----       12/26/2016  11:33 AM            379 web.config

docker run -p 80:80 -d -v code\repros\php-volume\mount:C:\www:rw test

This gets an IIS error when accessing the container.
cc @jhowardmsft @patrickLang

@friism Is the directory empty when you run the container with another command? I assume the files are there.
Indeed, the files are there:
PS C:\> docker exec 9cf3 cmd /c dir c:\www
 Volume in drive C has no label.
 Volume Serial Number is 464C-9AB1

 Directory of c:\www

12/26/2016  11:07 AM    <DIR>          .
12/26/2016  11:07 AM    <DIR>          ..
12/26/2016  11:07 AM                55 index.php
12/26/2016  11:07 AM                21 phpinfo.php
12/26/2016  11:07 AM               379 web.config
               3 File(s)            795 bytes
               2 Dir(s)  123,733,626,880 bytes free

PS C:\Users\vagrant> docker exec 9cf3 cmd /c type c:\www\index.php
<?php

echo "Hello from PHP on Windows Containers";

I've seen several problems using Node.js and even git clone in a volume mount point / reparse point.
Many tools seem to calculate the "real path" and struggle at the UNC path \\?\ ContainerMappedDirectories\xxx and interpret it as C:\ContainerMappedDirectories.
PS C:\Users\vagrant> docker exec 9cf3 cmd /c dir c:\
 Volume in drive C has no label.
 Volume Serial Number is 464C-9AB1

 Directory of c:\

12/26/2016  11:09 AM    <DIR>          inetpub
11/22/2016  02:45 PM             1,894 License.txt
07/16/2016  05:18 AM    <DIR>          PerfLogs
12/26/2016  11:09 AM    <DIR>          php
12/13/2016  12:05 AM    <DIR>          Program Files
07/16/2016  05:18 AM    <DIR>          Program Files (x86)
10/13/2016  03:55 PM           135,864 ServiceMonitor.exe
12/26/2016  11:09 AM    <DIR>          Users
12/26/2016  11:13 AM    <DIR>          Windows
12/26/2016  11:07 AM    <SYMLINKD>     www [\\?\ContainerMappedDirectories\B9C50539-7789-47B6-B86F-5B81FAA26EB7]
               2 File(s)        137,758 bytes
               8 Dir(s)  21,031,489,536 bytes free

It seems we need some good advice how to fix that for different other projects.

@StefanScherer yeah, I can confirm that the files get mounted in just fine, but it seems like the PHP runtime can't figure out how to read them

To see what's happening it's useful to install ProcessMonitor on the Docker host:

PHP seems to interpet the symlink at C:\www as a relative symlink and append it to its current directory C:\php so it tries to open the file C:\php\ContainerMappedDirectories\... which is \Device\Harddisk\Volume10\php at the host shown in the screenshot, but PHP then can't find it.
So the interesting part of this is to document how to interpret that symlink. There is eg. Naming Files, Paths, and Namespaces that also explains the \\?\ for long paths. So is this a relative long path, and absolute long path? Should other software follow that symlink manually or just stop at this point?

Some additional test told me that for this symlink to outside map still working for simple html / image file. But not for .php execution. That mean IIS in action can access the map path and getting file for read/write. But no idea why execution script like .php cannot operate via IIS ?

@Dilergore I think this might be PHP-related, so consider also opening an issue for the PHP runtime...

I'm pinging some devs internally on this. Can you add PHP or IIS to the title to make it easier to find? Something like "Cannot serve PHP pages from mapped volumes in Windows Server 2016 with IIS"

I see the problem with PHP only as an example. It seems that Golang also has this problem while compiling sources in the mounted folder.
$ docker run -v C:$(pwd):C:/gopath golang:1.8-nanoserver go build webserver.go
Unable to find image 'golang:1.8-nanoserver' locally
1.8-nanoserver: Pulling from library/golang
5496abde368a: Already exists
482ab31872a2: Already exists
66c4c0000446: Already exists
fadb3cd88a62: Already exists
6ad305fc60a3: Already exists
70ec80188525: Pull complete
fd1bc4c4fdcc: Pull complete
fdedc809027b: Pull complete
574c52669c35: Pull complete
b465e25782dc: Pull complete
Digest: sha256:793ece7d07f3dec1e425542f58af0c28ba1323b8c1c540031890b86fa37af4be
Status: Downloaded newer image for golang:1.8-nanoserver
go build command-line-arguments: c:\go\pkg\tool\windows_amd64\compile.exe: chdir \ContainerMappedDirectories\1C626055-289C-4D35-84C4-21A6F93D6498: The system cannot find the path specified.

Golang also tries to find the directory at C:\ContainerMappedDirectories.
Not related to docker/docker repo, but a guideline how to handle this reparse point would be helpful. So all the several open source projects that should improve at that point can easily understand and implement it.

Thanks! I pinged the Windows devs on this again

From the procmon trace, it looks like the user mode code is trying to interpret and reissue IO against the symlinked path instead of letting the OS handle it automatically. That shouldn't be needed, hmm.

Just FYI, opened https://github.com/golang/go/issues/18555, maybe this helps for the Dockerfile.windows as well.

A similar problem arised with OpenJDK https://github.com/docker-library/openjdk/pull/88#issuecomment-271232194 when trying to follow symlinks.

@StefanScherer I've found a workaround for this by mapping the volume directory to a drive letter in the container. It is not pretty but it's a single registry entry in the Dockerfile and it works for Server Core and Nano Server. cc @friism  and @PatrickLang.
VOLUME c:/data
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices' -Name 'G:' -Value '\??\C:\data' -Type String

Now apps in the container can reference the G: drive, without any symlinkery or long path confusion. Tried with Elasticsearch and your OpenJDK install and it works fine - for straight volumes and mounts:
mkdir c:\es-data
docker run -it --rm -p 9200:9200 -p 9300:9300 -v c:\es-data:C:\data sixeyed/elasticsearch:nanoserver

The Elasticsearch config uses G:\ as the data path, so when ES writes data it actually goes:
G:\ -> C:\data -> \\?\\ContainerMappedDirectories\{GUID} -> c:\es-data [HOST]

It's clunky but it works at the OS level, so the platforms having problems with the symlinks (Go, PHP, Java and all the others we haven't found yet) don't need to change.
Technically all it does is a persistent version of the subst command, because you can't use subst directly - it doesn't persist between layers and doesn't exist at all on Nano.

@jhowardmsft @jstarks @johnstep It looks like a lot of language standard libraries fail to read paths produced by volume mounting on Windows (eg. PHP here, Golang and Java).
Are there mitigations (in addition to the one proposed by @sixeyed) we could add in Docker. Or should someone write a piece of documentation documenting to standard library implementers how to correctly interpret these paths?

I talked to the filesystem devs last week and I'll ping them again. This is tracked by an internal work item  9118210

@sixeyed Hmm, however what happens if that path isn't passed with -v? I guess any app that references g: in your example would just fail with file not found? Would that be acceptable?
In other words, it sounds like you're proposing to be able to share folders from the host to a volume (Windows definition - drive letter) in the container. I thought there was a separate issue on this but I can't find it.

@PatrickLang no - because the VOLUME is defined in the Dockerfile, it will always be stored outside of the container's filesystem. -v mounts it to a specific directory on the host, but if you don't do that the volume directory is still on the host, just buried in the Docker install directory.
From the app point of view, it always uses G: which always exists because that's part of the image. From the user point of view they work with C:\data which is the path of the volume, and the G drive is transparent to them. Disjointed but it does cover all the scenarios.

@glennc any thoughts on the workaround @sixeyed proposes? Would this make sense for Visual Studio's interactive debugging scenario?

@sixeyed I've tried the workaround with Node.js and it fixes the problem so node.exe is able to read the sources from drive G:.

I can get this working with a simple php app using the mount G: drive hack listed above, but how do you get this working if you need to have php files live outside of your public web directory.
If you map G: to ??\C:\inetpub\wwwroot\public then your index.php file will not know how to include the ..\non-public\include.php that is not part of your publicly facing files.
I tried mapping G: to  ??\C:\inetpub\wwwroot\ and then setting IIS to point to G:\public but that doesn't work.  I am back to getting the  "No input file specified" error.

@PatrickLang Do you have any status update on https://github.com/docker/docker/issues/27537#issuecomment-271669707 ?

@StefanScherer I don't think this is going to get a fix for Windows Server 2016 because it has some impacts at the Windows filesystem layer. I think the language/library workarounds may be more achievable. I think that the Windows APIs like CreateFile() should still work on those paths as long as you don't try to parse them as symlinks on your own.

There is a commit https://github.com/golang/go/commit/53003621720ff39c4745a76f76847123c27b01ea just landed in golang/go repo that fixes it by using CreateFileW() and GetFileInformationByHandleW(). That could be a good advice to fix it for other languages like PHP or Node.js and so on.

I think it can be permission problem because IIS user has not ReadAndExecute permission on mounted files.
PS C:\inetpub\wwwroot> get-acl phpinfo.php | fl

Path   : Microsoft.PowerShell.Core\FileSystem::C:\inetpub\wwwroot\phpinfo.php
Owner  : O:S-1-5-21-564662737-1608546433-1253539930-1001
Group  : G:S-1-5-21-564662737-1608546433-1253539930-513
Access : BUILTIN\Administrators Allow  FullControl
         NT AUTHORITY\SYSTEM Allow  FullControl
         BUILTIN\Users Allow  ReadAndExecute, Synchronize
         NT AUTHORITY\Authenticated Users Allow  Modify, Synchronize
Audit  :
Sddl   : O:S-1-5-21-564662737-1608546433-1253539930-1001G:S-1-5-21-564662737-1608546433-1253539930-513D:AI(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;0x1200a9;;;BU)(A;ID;0x1301bf;;;AU)

@sixeyed  Thanks for your workaround, works grate  with 5.6 elastic version from sixeyed/elasticsearch:nanoserver.  I fail with build after updating  DockerFile , adding  new elastic version 6.4.3.
Getting error after docker container run ..... with -v  e:\es-data:c:\data
[2018-11-12T18:08:13,525][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[g:\elasticsearch]]
with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_no
des] (was [1])?
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.4.3.jar:6.4.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.4.3.jar:6.4.3]
Caused by: java.lang.IllegalStateException: failed to obtain node locks, tried [[g:\elasticsearch]] with lock id [0]; maybe these loca
tions are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:247) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.node.Node.(Node.java:274) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.node.Node.(Node.java:256) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.4.3.jar:6.4.3]
... 6 more
May be you can suggest anything?

Elastic 6.5.0 issue still remain.

Has there been any traction on this? The work around doesn't always work with mounting to the host directory when specifying a Volume on Docker EE.

This workaround doesn't work anymore. I am trying to run a java 8 application using C:\data and G:\ as a dos device and everything works fine until I try to make C:\data a volume or bind mount it to the host filesystem.
After that I get the typical
java.lang.RuntimeException: java.nio.file.NoSuchFileException: G:\blobs\default

Fun part is, G:\blobs\default  is there as is C:\data\blobs\default
Java just cant seem to find either.


Make Wrapp a functional component

PR Checklist
Please check all that apply to this PR using "x":

[X] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
[X] I have checked that this PR does not introduce a breaking change
[ ] This PR introduces breaking changes and I have provided a detailed explanation below

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting)
[X] Refactoring (no functional changes)
[ ] Documentation changes
[ ] Other - Please describe:

Fixes
Issue Number:  #136
What is the current behavior?
What is the new behavior?
Other information

@lucas-barros Thanks :v:


Enable possibility to set static IP

I know several people(most?) like to set static IP of their pi, so that they dont need to fuzz around in their router settings todo so.  This can be achieved by alternating: sudo vi /etc/network/interfaces
 # The loopback interface
 auto lo
 iface lo inet loopback
 auto eth0
 iface eth0 inet static
 #your static IP
 address <IP_ADDRESS>
 #your gateway IP
 gateway <IP_ADDRESS>
 netmask <IP_ADDRESS>
 #your network address "family"
 network <IP_ADDRESS>
 broadcast <IP_ADDRESS>

Hey, yes that's possible.
Are you asking to add this option to the openHABian menu?
I would actually not encourage a user to do this. Static IPs are inferior to a configured DHCP server. First off, you can always reach your device by using the hostname "openhabianpi.local" instead of an IP. Furthermore you are able to fix the DHCP-assigned IP of the device in your router settings. Yes, you'll have to "fuzz around" in your router settings, but hey, that's what they are for... I like this second option as your device will always listen on the same IP, even if you were to install a completely different OS. On the other hand you can move your device to a new network without having the problem of conflicting IP addresses or different subnets.

This should now be possible, even before running the setup. You should be able to configure the ip settings you want directly after flashing the SD card on your PC:
https://github.com/ThomDietrich/openhabian/commit/db63b4a57632de75ea48f52a297808f378b1d2fb
Please comment as soon as you can confirm this to be working.


bump BlastParser_and_hits.xml to 2.3.2.

Cosmetic changes in the xml form as well as in the python code. Field names in the tabular output are changed (Best instead of Maximum bit score). Changed accordingly in the test data.  ;-)

OK looks good. Yes, jenkins needs some work.


Ramadan to-do list

[ ] Increase site speed -> Currently, API responding at 1.5s. Need to reduce it to under 1s. Potentially either improving the first query or warming up the cache on deployments

[ ] Audioplayer bugs

[ ] Deployment -> Kubernetes?

[ ] Production log, see: https://github.com/quran/quran.com-api/issues/53

Hi @mmahalwy, what do you mean by audioplayer bugs? Is that the issue #276 ?

@AhmedShab yes. Updated ^^

@mmahalwy I think I have to spend sometime to learn Reactjs, Redux and Webpack since I'm not familiar with those technologies.
I tried to look into the code and see if I can understand how to increase the respond time (since @azizur  is looking into the Audioplayer bugs) but not sure where to start.
It might take me longer but I'm gonna help with what I can :)

@AhmedShab you can still help with it. I just started to work on it, if you like we can both work together on it.

cool @azizur, will have to go over Reactjs first like I said then will get into it

@AhmedShab I am pushing a PR inshallah tonight to help with response time.

Can we add https support to this list? Who is the CDN?

re @sabeurthabti's comment: @ahmedre ^^

yep, it's on my todo list insha'Allah.
our cdn supports it, we just need to get the certs and set up our servers to support it.

@ahmedre Rapidssl?


polymer-js required in this case

It's not a issue, I only wanted to mention a specific case where using HTML imports to load Polymer is not possible (or at least not without "workarounds"), because of an issue in webcomponents polyfill.
In such case, polymer-js is very handy.

I totally agree - in my humbled opinion we should get the ability to require polymer as JavaScript package into the official upstream  :)

Polymer is pure JS code, there should be no reason it's not available as a js file. Thanks for this workaround!


@conda-forge-admin, please add user @zmoon

[ ] I read the conda-forge documentation and could not find the solution for my problem there.

Issue:

Environment (conda list):

$ conda list

Details about  conda and system ( conda info ):

$ conda info

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @zmoon in conda-forge/monet-feedstock#11.

@conda-forge-admin, please update team

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I updated the team with maintainers from master.


'uhid-freebsd' package build failed

I am trying to install yubikey-manager on macos (10.14.6), but building wheel for uhid-freebsd is failing. Somehow it is not skipped for this platform.
> pip install yubikey-manager

Collecting yubikey-manager
Requirement already satisfied: click in ./env/lib/python3.5/site-packages (from yubikey-manager) (6.7)
Collecting fido2>=0.7 (from yubikey-manager)
Requirement already satisfied: cryptography in ./env/lib/python3.5/site-packages (from yubikey-manager) (2.7)
Requirement already satisfied: pyscard in ./env/lib/python3.5/site-packages (from yubikey-manager) (1.9.9)
Requirement already satisfied: six in ./env/lib/python3.5/site-packages (from yubikey-manager) (1.12.0)
Requirement already satisfied: pyusb in ./env/lib/python3.5/site-packages (from yubikey-manager) (1.0.2)
Requirement already satisfied: pyopenssl in ./env/lib/python3.5/site-packages (from yubikey-manager) (19.0.0)
Collecting uhid-freebsd>=1.2.1 (from fido2>=0.7->yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/55/c8/aee05809c37437b5aeca56608e9b12c368a97cdd1be017642e3a8f1ecd88/uhid-freebsd-1.2.1.tar.gz
Requirement already satisfied: asn1crypto>=0.21.0 in ./env/lib/python3.5/site-packages (from cryptography->yubikey-manager) (0.24.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in ./env/lib/python3.5/site-packages (from cryptography->yubikey-manager) (1.12.3)
Requirement already satisfied: pycparser in ./env/lib/python3.5/site-packages (from cffi!=1.11.3,>=1.8->cryptography->yubikey-manager) (2.19)
Building wheels for collected packages: uhid-freebsd
  Building wheel for uhid-freebsd (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/daniel/code/oll/taf/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/setup.py'"'"'; __file__='"'"'/private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-wheel-k5az3543 --python-tag cp35
       cwd: /private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/
  Complete output (12 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'uhid_freebsd' extension
  creating build
  creating build/temp.macosx-10.14-x86_64-3.5
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/daniel/.pyenv/versions/3.5.6/include/python3.5m -c uhid_freebsd.cpp -o build/temp.macosx-10.14-x86_64-3.5/uhid_freebsd.o
  uhid_freebsd.cpp:15:10: fatal error: 'dev/usb/usb_ioctl.h' file not found
  #include <dev/usb/usb_ioctl.h>
           ^~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  error: command 'clang' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for uhid-freebsd
  Running setup.py clean for uhid-freebsd
Failed to build uhid-freebsd
Installing collected packages: uhid-freebsd, fido2, yubikey-manager
  Running setup.py install for uhid-freebsd ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/daniel/code/oll/taf/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/setup.py'"'"'; __file__='"'"'/private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-record-ocgvl2a5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/daniel/code/oll/taf/env/include/site/python3.5/uhid-freebsd
         cwd: /private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/
    Complete output (12 lines):
    running install
    running build
    running build_ext
    building 'uhid_freebsd' extension
    creating build
    creating build/temp.macosx-10.14-x86_64-3.5
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/daniel/.pyenv/versions/3.5.6/include/python3.5m -c uhid_freebsd.cpp -o build/temp.macosx-10.14-x86_64-3.5/uhid_freebsd.o
    uhid_freebsd.cpp:15:10: fatal error: 'dev/usb/usb_ioctl.h' file not found
    #include <dev/usb/usb_ioctl.h>
             ^~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    error: command 'clang' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/daniel/code/oll/taf/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/setup.py'"'"'; __file__='"'"'/private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-install-vfbfeayn/uhid-freebsd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/lc/c_lvyn5x6cbd12ysjly61qcr0000gn/T/pip-record-ocgvl2a5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/daniel/code/oll/taf/env/include/site/python3.5/uhid-freebsd Check the logs for full command output

Hmm, my guess would be that either the pip version (or setuptools version) is too old to support the platform specifier. Could you try updating one or both of these and trying again?
@grembo for visibility.

Updating pip and setuptools didn't help. I am using python version 3.6.6.

Hmm, my guess would be that either the pip version (or setuptools version) is too old to support the platform specifier. Could you try updating one or both of these and trying again?

Sounds plausible, AFAIK PEP 508 conditional dependency support was introduced in tooling since early/mid 2016 (which would be setuptools >= 20.2 and pip >= 8.1.2).
I'll open a pull request that adds code to setup.py to check that the setuptools is >= 20.2 to give the user a helpful error message instead of failing like this.
(we could also change setup.py to support older tooling at the expensive of being more hackey and less declarative - not sure if that makes sense, as we're talking about tooling that's >3 years old)
@danixeee Which versions of pip and setuptools are you actually using?

If you run pip list, what versions are shown for pip and setuptools?

@danixeee:

Updating pip and setuptools didn't help. I am using python version 3.6.6.

The output you posted implies you're using python 3.5:

Requirement already satisfied: click in ./env/lib/python3.5/site-packages (from yubikey-manager) (6.7)
Collecting fido2>=0.7 (from yubikey-manager)

so maybe something isn't right with your setup.
Besides checking pip list you could also try to use setup.py from my pull request, which will probably give you a structured error message.

@grembo Yes, that was the output of python 3.5, but I tried it with 3.6.6 also.
Here is pip list command output after running `pip install yubikey-manager which failed again.
Package      Version
------------ -------
asn1crypto   0.24.0
cffi         1.12.3
Click        7.0
cryptography 2.7
pip          19.2.3
pycparser    2.19
pyOpenSSL    19.0.0
pyscard      1.9.9
pyusb        1.0.2
setuptools   41.2.0
six          1.12.0
wheel        0.33.6

I cloned the repo and successfully installed fido2 from master with pip install ..
Any idea why it is not working when installing from PyPI?

@danixeee I tested the PyPI based installation on macOS 10.13.6:
This is what I did:

First install python 3.7:
curl -o ~/Downloads/python.pkg \
  https://www.python.org/ftp/python/3.7.4/python-3.7.4-macosx10.9.pkg
open ~/Downloads/python.pkg

Install swig (dependency of pyscard, for some reason it would choke on that) - assumes brew is already installed:
brew install swig

Create and enter venv (to reduce side effects)
python3 -m venv env
source env/bin/activate
python -m pip --version
pip install --upgrade pip

Install yubikey-manager
pip install yubikey-manager

Output of the last step is:
Collecting yubikey-manager
  Using cached https://files.pythonhosted.org/packages/1f/29/fc6540fb9a4943464ca6655c6c8a3a322b3b4067de58f1560b8ba76c3641/yubikey-manager-3.1.0.tar.gz
Collecting six (from yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting pyscard (from yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/ed/dd/c575bb75122c250cbed3f70440cb8e25582bf991855bb4eb27371fb8d962/pyscard-1.9.9.tar.gz
Collecting pyusb (from yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/5f/34/2095e821c01225377dda4ebdbd53d8316d6abb243c9bee43d3888fa91dd6/pyusb-1.0.2.tar.gz
Collecting click (from yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting cryptography (from yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/63/4e/57b7a6bd98906872fcd2531e74b532de2abe17d675a5cf171931fcb4a9e8/cryptography-2.7-cp34-abi3-macosx_10_6_intel.whl
Collecting pyopenssl (from yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl
Collecting fido2>=0.7 (from yubikey-manager)
Collecting asn1crypto>=0.21.0 (from cryptography->yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8 (from cryptography->yubikey-manager)
  Using cached https://files.pythonhosted.org/packages/f0/48/5aa4ea664eba26dd5142558d04762f5065c02220b4665b3f7eecb9bb614e/cffi-1.12.3-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography->yubikey-manager)
Installing collected packages: six, pyscard, pyusb, click, asn1crypto, pycparser, cffi, cryptography, pyopenssl, fido2, yubikey-manager
  Running setup.py install for pyscard ... done
  Running setup.py install for pyusb ... done
  Running setup.py install for yubikey-manager ... done
Successfully installed asn1crypto-0.24.0 cffi-1.12.3 click-7.0 cryptography-2.7 fido2-0.7.1 pycparser-2.19 pyopenssl-19.0.0 pyscard-1.9.9 pyusb-1.0.2 six-1.12.0 yubikey-manager-3.1.0

I tried the same using python2.7 (replace python3 with python and venv with virtualenv above), which also worked.
I also tried successfully outside of a virtual environment with python3:
python3 -m pip install --upgrade pip
python3 -m pip install yubikey-manager

(pip wasn't in my default PATH for some reason - that's maybe something you could try as well to make sure you're using the correct version of pip).


Show orders grid in orders form

Hello,
Is there any way I can show order grid in order form ? I want to show all the previous records present in order table in form of grid in order form.

master detail ?
or just instantiate grid in form

No master detail. I want to show grid of same entity on form.

@TechAspirant ,
is the grid just to be statically showed or does it need to have some interaction like sorting, filtering and "opening" a different form instance when clicking on a row/editlink in the grid?
Because your requirement more or less seems to technically resemble what is the entityGriddialog in paid StartSharp (see demo here: https://serenity.is/demo/AdvancedSamples/EntityGridDialog#).
With kind regards,
John


Collection of Postgres flavors

This is a collection of various Postgres flavors. Over time, we will identify what is needed to support connectors for the different flavors, and what specific features can be exposed.

Timescale
CockroachDB
CrateDB
PostGIS

Let me add a few
https://www.pipelinedb.com/
https://github.com/timescale/timescaledb

PostGIS support would be amazing, would allow us to evaluate Prisma usage in production

Does anyone have a work around in the meantime for Geometry/Geolocation column returns? Hasura offers this out of the box, but i'd prefer to stay with Prisma. Thanks in advance

yugabyteDB is also Postgres compatible with distributed SQL support.


Makefile: suitable "default" target

Signed-off-by: zhouhao<EMAIL_ADDRESS>

@xiekeyang @coolljt0725 @stevvooe @cyphar PTAL

LGTM

LGTM


minimal pip install support

If we want to make mcmcplotlib an (optional) dependancy for pymc3, we need to make it auto-installable with pymc3.
Refactoring and testing are probably needed to be added, before making it a full dependancy.
As a first step, we can put a reference to:
pip install git+git://github.com/mcmcplotlib/mcmcplotlib.git to pymc3 and start adding reference to mcmcplotlib in examples in pymc3.

Thanks @Volodymyrk, this is very useful. As for making a PyMC3 dependency, we'll hold off until other packages have adopted mcmcplotlib to make sure we don't add a dependency unnecessarily. So all future plotting code should still go into pymc3.


Incompatiblity with WinUI Preview 4 (using daily)

Looks like I'm still hitting some incompatibilities with WinUI and the latest daily (v0.1.362-beta). From my understanding the issues in #59 should have been addressed already.
To repro, create the following project:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net5.0-windows10.0.18362.0</TargetFramework>
    <TargetPlatformMinVersion>10.0.17134.0</TargetPlatformMinVersion>
    <RootNamespace>CsWin32Repro</RootNamespace>
    <RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/azure-public/vside/_packaging/winsdk/nuget/v3/index.json;$(RestoreAdditionalProjectSources)</RestoreAdditionalProjectSources>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.362-beta">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.WinUI" Version="3.0.0-preview4.210210.4" />
  </ItemGroup>
</Project>

Next add Shell_NotifyIcon to the NativeMethods.txt and compile.
Observe these two build errors:
1>E:\sources.tmp\CsWin32Repro\CsWin32Repro\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\NOTIFYICONDATAW.g.cs(146,25,146,29): error CS0234: The type or namespace name 'Guid' does not exist in the namespace 'Microsoft.System' (are you missing an assembly reference?)
1>E:\sources.tmp\CsWin32Repro\CsWin32Repro\Microsoft.Windows.CsWin32\Microsoft.Windows.CsWin32.SourceGenerator\PInvoke.Shell32.g.cs(49,98,49,104): error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('NOTIFYICONDATAW')
1>Done building project "CsWin32Repro.csproj" -- FAILED.

Remove the WinUI package, and things builds fine.
The first one seems to be able to be addressed with changing internal System.Guid guidItem; to internal global::System.Guid guidItem; which in turn takes care of the second error.
I'm guessing anything that is using a namespace in the type name should be prefixed with global::

It looks from the errors I'm seeing from your repro that I need to install some VC SDKs... trying now...

I never could get the SDKs to work. But I was able to repro the problem trivially in a test so we can make sure this never regresses.

Thanks @AArnott . Fix looks great

Just confirming that 0.1.370-beta works great with WinUI 3. Thank you!

I never could get the SDKs to work.

@aarnott FYI if you're hitting this:

You're missing this:

I never hit that, because your repro used earlier build targets. But I installed all the ones referenced in your repro and it still didn't work.
No worries though. I don't need to at this point.


[Question] Avoiding apropcalypse using styled-system

So I've been working with styled-system for a while already, but unfortunately, I often struggle with making my components too modular which ends up having a real "apropcalypse".
Consider having a primitive ListItem component:
const ListItem = styled.ul`
    ${space};
}

Everything is awesome for now, I can put a ListItem easily and add some paddings and margins. But now I want to use it in my Nav element, and it needs to be inline-flex. And we also want to show a dropdown on the ListItem hover right below it, so I'd need a relative.
What would you do in this situation?

Add additional style functions to ListItem and use it explicitly in Nav:

const ListItem = styled.ul`
    ${space};
    ${display};
    ${position};
`;

...

<Nav>
    <ListItem display="inline-flex" position="relative">
        ...
    </ListItem>
</Nav>

or

Create a NavListItem component which extends the ListItem one:

const ListItem = styled.ul`
    ${space};
`;

...

const NavListItem = styled(ListItem)`
    display: inline-flex;
    position: relative;
`;

...

<Nav>
    <NavListItem>
        ...
    </NavListItem>
</Nav>

The thing is, styled-system gives a lot of flexibility and I guess It's so big that I'm getting lost in it :smile:
So, my question is: what pattern would you recommend to go with styled-system - to create minimal primitives and use them to create context-specific components by extending the primitive ones, or rather create big, extensive primitives and just build up context-specific components out of them (composing with available props)?

I think for one-off contextual styles like in your example, I'd tend to either extend the base component like your second example or use the css prop, which is really great for one-off styling. Generally I wouldn't recommend adding style props unless they are really, truly reusable props (e.g. spacing and color). Also for positioning, I tend to prefer explicit <Relative /> and <Absolute /> type components since CSS positioning is a footgun.
That said, it really just comes down to your team's preference and there are a lot of different ways to handle these sorts of things

@jxnblk Thanks a lot for your answer!
The problem I have with explicit <Relative /> and <Absolute /> components is that I often end up needing a specific markup, i.e. creating a nav, where I need a li with position: relative to show an absolute dropdown below it, but I can't do <Relative><li>...</li></Relative> as ul's with div descendants is not semantically correct. (The dropdown also shouldn't be wrapped with <Absolute /> as it should be another ul). But that's just an example - I often get things like that if I want the semantics right.
Do you maybe know more projects with styled-system usage (except the ones listed in the docs - rebass and priceline) to look at and grasp some inspiration?

For <li> you can nest the <Relative /> inside the item or use the as prop if needed. You should be able to follow css-in-js and react patterns while maintaining semantic markup

One more question: do you rather aim for the reuse of primitives with style props i.e. const ProductCard = styled(Card)``` or add them explicitly when needed? I often wonder if I should extend a style-prop-rich primitive to create a new component (even if I won't use most of the style props) or just do const MyComponent = styled.div${neededStyleProp};.
Sorry if the questions may sound trivial, I just don't know much people with experience with this kind of approach and would like to hear about experiences and get some guidance :smiley:

@sarneeh I found myself dealing with a codebase where styled-system was used. My solution eventually was to not use styled-system 😉

@simoneb Could you elaborate why? :)

@sarneeh, i reuse the primitives. otherwise you're recreating different types of cards over and over.
also, lol @ coming in a thread just to say you don't want use styled-system, @simoneb. nice.

@nicholaai Thanks for your answer! Can I ask what kind of primitives you usually introduce? And how do you handle specific styling like position or hiding things around for different media with display: none? Do you bundle a position and display to the primitives, or style it ad-hoc?

@sarneeh @nicholaai didn't mean to troll 😅  Here's a more elaborate answer.
Take @sarneeh's example. In the first case, you end up filling your styled-component definition with so many styled-system props for each individual use case you need to cover that the result is a generic component which could do pretty much anything.
If you then imagine that you could use styled-component's as property, you can build your entire application with a single React component which can transform into any DOM element with any properties. That's clearly not what you want to do.
In the second case, which in my opinion is a more correct way to implement a component hierarchy, you are extending ListItem with NavListItem. Now, are you really sure that you need the flexibility that the space helper gives you on the ListItem component? I mean, what do you need it for?
If you want to get rid of the user agent default padding/margin on the ul element then you probably want to do it consistently across the application, meaning that you don't need to use styled-system helpers and you can hardcode your values, either in a base component or with global styles. If that's for contextual spacing for layout, then that's probably not where you should put paddings and margins, but rather in a layout container which wraps your ul.
Either way, you don't need any styled-system helpers.
The other feature that styled-system has are the spacing, font sizes, ..., arrays, which you can reference by array indexes. I found this very hard to use because you have to remember all the time what an index in that array corresponds to. Then at some point you come across a value for spacing that doesn't exist in your array and if you want to modify it you have to change all places in the application where you were using the array indexes. I find this problem better solved by using a consistent typography (i.e. using Typography.js, material-ui, or simply global styles), and consistent spacing. Defining a base spacing unit configured in the theme and using multipliers of it does the trick for me, and it's also the approach used in other libraries.
Because of this, the only real feature which styled-system offers that is not built into styled-components is responsiveness, but using it I figured that you can easily do without. First of all, using arrays for specifying responsive CSS properties can easily turn into a nightmare in the same way as described above. Then, I'm not sure it's great to have to provide all those verbose properties when the components are used. Instead, I simply use responsive utilities for styled-components or if you need greater flexibility just use a UI toolkit like material-ui.
Hope it helps!

@sarneeh until we get some better examples up, you might have better luck asking some questions on Spectrum: https://spectrum.chat/styled-system – or maybe opening more specific questions as new issues since this conversation has derailed a bit. Styled System is intentionally very flexible so there's no real right or wrong way to use it, just how you and your team prefer
Possibly relevant thread here as well: https://spectrum.chat/styled-components/general/using-styled-system-vs-pure-styled-components~b9afb6f3-a675-4f97-bc78-66411292fab1

@simoneb Thanks a lot for this answer! Actually, according to the responsive props, you can now use object notation like: width={{ sm: 1, xl: '50%' }} which eliminates the index issue (which really was a pain).
@jxnblk Sure thing! I'll maybe move the discussion there :smile:
Thanks everyone for your insights!


[WIP] git: Detect conflict markets in BOTH_ADDED files when staging

The existing code only checked for conflict markers for files with BOTH_MODIFIED status; files with BOTH_ADDED status were always detected as conflicting even after conflicts are resolved.
This fixes #44106.

I have only tested this against this testcase in the original issue . I have not tested to see if this breaks existing conflict detection: are there any Git testcases I can run to make sure that I've fixed the issue and that I didn't introduce regressions?

Thanks! 🍻


Resolve class/struct distinction warning from clang

For these classes, we're declaring them a typedef with struct NAME *
in a .h file so that it can be used from C. But then the body is
defined in C++ with class. The clang compiler on Mac complains (but
says "I'm okay with this, but Microsoft might not be"). So it doesn't
really matter, but I'd rather get rid of the warnings if it doesn't
cost anything.
It's okay to use struct in C++ with inheritance and all the other
features of classes... the main difference is that struct members
are public by default vs class being private by default.
So here we turn all of these that use the typedef struct pointer C
into structs rather than classes, which silences the warnings.
In file included from ring.cpp:34:
./ring_impl.hpp:47:1: warning: class 'BFspan_impl' was previously declared as a
      struct; this is valid, but may result in linker errors under the Microsoft
      C++ ABI [-Wmismatched-tags]
class BFspan_impl;
^
./bifrost/ring.h:67:16: note: previous use is here
typedef struct BFspan_impl*        BFspan;
               ^

Codecov Report

Merging #171 (3e3f580) into master (7790fdb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #171   +/-   ##
=======================================
  Coverage   58.36%   58.36%
=======================================
  Files          67       67
  Lines        5753     5753
=======================================
  Hits         3358     3358
  Misses       2395     2395

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7790fdb...3e3f580. Read the comment docs.

I'm torn about this.  Addressing warnings is generally good but it feels kind of wrong to take all of the "class" out of the C++ code.  Plus, I don't think we will be adding support for building on Windows.  As an alternative idea, how would you feel about keeping things as class and making use of #pragma clang diagnostic push to disable these warnings?

I think we're not using clang anymore either, because of other problems that arose with c++17 and <filesystem>! The github macos-latest picks up gcc, so I switched nix to doing that too. I think configure deduced that clang supports 17, but its linker didn't find filesystem definitions. That may ultimately be fixable – can still look into it – but sticking to gcc was the simpler solution.
Anyway, as long as clang is going unused this PR is kind of addressing "would-be" warnings. :)

Hey, on my laptop configure detects and uses clang!
Seriously, though, I wonder if that original C++17/clang issue might have been related to the problem I ran into at https://github.com/ledatelescope/bifrost/pull/173/commits/d748a9a971cc9ea011e346e58ecaf0ad1c3d8705.

I'm going to try it...

Looks like you got it… nix is picking up clang again on mac and it went through. It was unclear to me, and a little surprising, when I discovered that github's macos-latest seemed to be preconfigured to use gcc... configure on my mac laptop was also picking up clang. So definitely for the best if we support both.

I should probably verify that my fix doesn't just disable C++17 filesystem universally.

Nope, the fix universally disables support.  Back to the drawing board...

Here's a small discussion I found that pinpoints the exact problem, with an array of solutions: https://stackoverflow.com/questions/41378623/c-interface-of-c-code-how-to-avoid-mismatched-tag-warning
and it looks like gcc may be adding a similar warning, though devs seem mixed on whether it means anything at all, or maybe both clang and gcc are jumping on an MS bandwagon that goes nowhere. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61339#c6
Anyway, the choices enumerated on SO are:

disable the warning with a #pragma in the header file [I guess so]
use struct also in the cpp file, paying attention to explicitly mark all data with appropriate public/private modifiers [this is my solution]
wrap the class into a struct [blah, extra dots everywhere]
change the paradigm used to implement the C interface (using, for example, a dummy struct and reinterpret_cast) [blah]

There's some support for choice 2 in the comments, and then an answer (with no votes) for choice 3.
IMO there's nothing wrong with using struct this way in C++. Some people think of struct as a C thing (plain old struct) and class as having way more features, but in C++ they have the same features just different privacy defaults.
If you prefer to keep class that's okay, but I might suggest just turn off the warning globally with CXXFLAGS containing -Wno-mismatched-tags or a simple pragma in the relevant files (maybe don't bother with push/pop)...
71789714 seems to do the trick. GCC10 can handle these pragmas too, but the ifdefs hide them from gcc 7,8,9 which all seem to complain.


python3Packages.pymc: 5.10.4 -> 5.13.0

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@nidabdella anything else to change in the PR?

@nidabdella meanwhile pymc and it's dependency have updated already, attaching the commits here

going to bump pymc to the latest 5.13, this will require a release for https://github.com/NixOS/nixpkgs/blob/b987e0c6ad592b74332c4e3c25874a17bcfdc451/pkgs/development/python-modules/bambi/default.nix#L18
CC @tomicapretto

so far there are the following issues with upgrade
warning: Git tree '/home/ferres/nixpkgs' is dirty
error: builder for '/nix/store/c26dzd7y9xd687s7q12zfkrin387lyj9-python3.11-pymc-5.13.1.drv' failed with exit code 1;
       last 10 log lines:
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
       >   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'setuptools'
       >
       > ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
       For full logs, run 'nix log /nix/store/c26dzd7y9xd687s7q12zfkrin387lyj9-python3.11-pymc-5.13.1.drv'.

Result of nixpkgs-review pr 296665 run on x86_64-linux 1

4 packages failed to build:

python311Packages.bambi
python311Packages.bambi.dist
python312Packages.pytensor
python312Packages.pytensor.dist

4 packages built:

python311Packages.pymc
python311Packages.pymc.dist
python311Packages.pytensor
python311Packages.pytensor.dist

python311Packages.bambi fails in checkPhase which is an improvement over the current transitive failure, python312Packages.pytensor is expected to fail due to tensorflow
LGTM, but still want to see the results from ofborg
@ofborg build python311Packages.pymc python311Packages.pymc.passhtru.tests

wow unlucky, merge conflict with https://github.com/NixOS/nixpkgs/pull/307492

I had this in the loop already: https://github.com/NixOS/nixpkgs/pull/294574

I see, we'll need to wait for bambi, they are planing to cut a release quite soon to fully support pymc 5.13

Already broken on master https://hydra.nixos.org/build/257771465, hence not a blocker here. Looking forward to the update

thanks! As for bambi, it takes too long indeed

thanks! As for bambi, it takes too long indeed

Would you mind if we mark bambi as broken ?
Tracking issue: https://github.com/NixOS/nixpkgs/issues/310940


fix: update regex to allow special and umlaut characters

Description

Update central search field regex validation code to allow special characters and umlauts

Why
Companies that contained special characters or umlauts were not searchable via the search field.
Issue
#164
Checklist

[x] I have followed the contributing guidelines
[ ] I have added copyright and license headers, footers (for .md files) or files (for images)
[x] I have performed a self-review of my changes
[x] I have successfully tested my changes
[ ] I have added comments in the default values.yaml file with helm-docs syntax ('# -- ') if relevant for installation
[ ] I have commented my changes, particularly in hard-to-understand areas

@oyo could you please also review?