Avoid panic when deleted object is cache.DeletionFinalStateUnknown

As reported in #5739, there are cases when the deleted object is not a Pod but cache.DeletionFinalStateUnknown.
The piece of code in this pull request handle such cases and avoid panic/crash trying to cast wrong type.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ymesika
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: kyessenov
Assign the PR to them by writing /assign @kyessenov in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ymesika: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-simpleTests.sh
5815127a78688d842b98431484fd6c4ec434b7de
link
/test e2e-simple

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

I think this is fine given that the pod IPs and names are generally stable. The bad case is when the pod gets changed right before deletion and the deletions event somehow gets dropped on the way to the cache. That can make the local pod cache inconsistent.
I think we should eventually get rid of this cache once we start using instance IDs (pod IDs) consistently and no longer need to do the reverse mapping from an IP to a pod.
/lgtm
/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: kyessenov, ymesika
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS [kyessenov]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

New changes are detected. LGTM label has been removed.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: kyessenov, ymesika
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: linsun
Assign the PR to them by writing /assign @linsun in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ymesika: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
01a532c5b98b15318962dc103c26e59614c07591
link
/test istio-pilot-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Rebased to resolve test errors (which indeed went away) but now it holds a bunch of commits from other. Sorry for the mess.

@ymesika: PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

I will re-open a new one.


[Event Change] Table 11000003 (NL) OnValidateSerialNoEntryOnBeforeValidateAmountFromCustLedgEntry

Source: https://github.com/microsoft/ALAppExtensions/issues/4436
Please changed this Event Publisher so that the IsHandled parameter is  VAR.
Now it doesn't serve any function at all
Thanks

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


AerialToggle! on buffer with no symbols closes window

Describe the bug
AerialToggle! on buffer with no symbols forcefully closes window.
AerialToggle on buffer with no symbols empties window content (buffer is intact) and sets window to close on gaining focus.
System information

OS: mac

Neovim version:
NVIM v0.9.0-dev-176+g1fe31651b
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

AerialInfo:
Aerial Info
-----------
Filetype: vim
Configured backends:
  lsp (not supported) [No LSP client found]
  treesitter (supported) (attached)
  markdown (not supported) [Filetype is not markdown]
  man (not supported) [Filetype is not man]
Show symbols: Class, Module, Constant, Constructor, Enum, Function, Interface, Method, Struct

Aerial config:
local aerial = require'aerial'

require("aerial").setup({
  -- Priority list of preferred backends for aerial.
  -- This can be a filetype map (see :help aerial-filetype-map)
  backends = {
    -- This underscore key is the default
    ['_']  = {"lsp", "treesitter", "markdown", "man"},
    ruby = {"treesitter", "lsp"},
  },

  -- A list of all symbols to display. Set to false to display all symbols.
  -- This can be a filetype map (see :help aerial-filetype-map)
  -- To see all available values, see :help SymbolKind
  filter_kind = {
    "Class",
    "Module",
    "Constant",
    "Constructor",
    "Enum",
    "Function",
    "Interface",
    "Method",
    "Struct",
  },
})

To Reproduce
Steps to reproduce the behavior:

printf 'lua <<LUA\n  local aerial = require'aerial'\n\n  require("aerial").setup({\n    -- Priority list of preferred backends for aerial.\n    -- This can be a filetype map (see :help aerial-filetype-map)\n    backends = {\n      -- This underscore key is the default\n      ['_']  = {"lsp", "treesitter", "markdown", "man"},\n      ruby = {"treesitter", "lsp"},\n    },\n\n    -- A list of all symbols to display. Set to false to display all symbols.\n    -- This can be a filetype map (see :help aerial-filetype-map)\n    -- To see all available values, see :help SymbolKind\n    filter_kind = {\n      "Class",\n      "Module",\n      "Constant",\n      "Constructor",\n      "Enum",\n      "Function",\n      "Interface",\n      "Method",\n      "Struct",\n    },\n  })\nLUA\n' > test.vim
nvim test.vim
TSInstall vim lua
:AerialToggle!

If possible, provide a minimal file that will trigger the issue:
lua <<LUA
  local aerial = require'aerial'

  require("aerial").setup({
    -- Priority list of preferred backends for aerial.
    -- This can be a filetype map (see :help aerial-filetype-map)
    backends = {
      -- This underscore key is the default
      ['_']  = {"lsp", "treesitter", "markdown", "man"},
      ruby = {"treesitter", "lsp"},
    },

    -- A list of all symbols to display. Set to false to display all symbols.
    -- This can be a filetype map (see :help aerial-filetype-map)
    -- To see all available values, see :help SymbolKind
    filter_kind = {
      "Class",
      "Module",
      "Constant",
      "Constructor",
      "Enum",
      "Function",
      "Interface",
      "Method",
      "Struct",
    },
  })
LUA

Screenshots
N/A
Additional context
Head commit of aerial.nvim in use:
❯ git log -1
Wed Oct 26 19:52:59 2022 -0700 6a8fd67 (HEAD -> master, origin/master, origin/HEAD) fix: error when centering aerial symbol in view (#165)  [Steven Arcangeli]

I'm sorry, I appear to be unable to reproduce the behavior. Could you help me figure out what I need to do to trigger it?
https://user-images.githubusercontent.com/506791/198331916-eb6ce798-d1c6-423a-ae9d-4a5bc55d5dc7.mp4
This is the init.lua I'm using:
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
local is_bootstrap = false
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
  is_bootstrap = true
  vim.fn.execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path)
  vim.cmd([[packadd packer.nvim]])
end

require("packer").startup(function(use)
  use("wbthomason/packer.nvim")
  use("nvim-treesitter/nvim-treesitter")
  use("stevearc/aerial.nvim")
  if is_bootstrap then
    require("packer").sync()
  end
end)

if is_bootstrap then
  print("==================================")
  print("    Plugins are being installed")
  print("    Wait until Packer completes,")
  print("       then restart nvim")
  print("==================================")
  return
end

require("nvim-treesitter.configs").setup({
  -- Add languages to be installed here that you want installed for treesitter
  ensure_installed = { "lua", "vim" },
})

require("aerial").setup({
  -- Priority list of preferred backends for aerial.
  -- This can be a filetype map (see :help aerial-filetype-map)
  backends = {
    -- This underscore key is the default
    ['_']  = {"lsp", "treesitter", "markdown", "man"},
    ruby = {"treesitter", "lsp"},
  },

  -- A list of all symbols to display. Set to false to display all symbols.
  -- This can be a filetype map (see :help aerial-filetype-map)
  -- To see all available values, see :help SymbolKind
  filter_kind = {
    "Class",
    "Module",
    "Constant",
    "Constructor",
    "Enum",
    "Function",
    "Interface",
    "Method",
    "Struct",
  },
})

Managed to find the minimal repro and discover my error that led to it.
Basically, my mistake in translating autocmd to vim.api.nvim_create_autocmd resulted in foldmethod=expr and foldexpr= nvim_treesitter#foldexpr() being set on every buffer.
That results in aerial doing things to the primary buffer, likely through fold sync.
Prepare new config dir

cd ~/.config/nvim
mkdir start
git clone https://github.com/nvim-treesitter/nvim-treesitter start/nvim-treesitter
git clone https://github.com/stevearc/aerial.nvim start/aerial.nvim

Config (and at the same time the file that reproduces the issue)
init.vim:
lua <<LUA
vim.cmd('packloadall')

require("nvim-treesitter.configs").setup({
  -- Add languages to be installed here that you want installed for treesitter
  ensure_installed = { "lua", "vim" },
})

vim.api.nvim_create_augroup('TreeSitterFolds', { clear = true })
-- This is what broke things. Notice how pattern sits as a part of event name.
-- This gets treated as 'FileType' without pattern as a result
vim.api.nvim_create_autocmd({ 'FileType ruby,eruby,javascript,go,elixir,vim,lua' },
  {
    group = 'TreeSitterFolds',
    callback = function()
      vim.opt_local.foldmethod = 'expr'
      vim.opt_local.foldexpr = 'nvim_treesitter#foldexpr()'
    end,
    desc = 'Set tree-sitter folding for chosen filetypes',
  }
)

-- This is a correct call that doesn't result in special effects and explosions
-- vim.api.nvim_create_autocmd({ 'FileType' },
--   {
--     pattern = 'ruby,eruby,javascript,go,elixir,vim,lua',
--     group = 'TreeSitterFolds',
--     callback = function()
--       print('test')
--       vim.opt_local.foldmethod = 'expr'
--       vim.opt_local.foldexpr = 'nvim_treesitter#foldexpr()'
--     end,
--     desc = 'Set tree-sitter folding for chosen filetypes',
--   }
-- )

require("aerial").setup({
  -- Priority list of preferred backends for aerial.
  -- This can be a filetype map (see :help aerial-filetype-map)
  backends = {
    -- This underscore key is the default
    ['_']  = {"lsp", "treesitter", "markdown", "man"},
    ruby = {"treesitter", "lsp"},
  },

  -- A list of all symbols to display. Set to false to display all symbols.
  -- This can be a filetype map (see :help aerial-filetype-map)
  -- To see all available values, see :help SymbolKind
  filter_kind = {
    "Class",
    "Module",
    "Constant",
    "Constructor",
    "Enum",
    "Function",
    "Interface",
    "Method",
    "Struct",
  },
})

vim.api.nvim_set_keymap('n', ';]', '<cmd>AerialToggle!<CR>', {})
LUA

Unfortunately, even with this config I wasn't able to reproduce the issue as stated. I'm glad you managed to get it working for yourself though! Please open another issue if you encounter any more problems.


server.user doesn't remove users if present = False

On macOS Sierra, installed with pip, pyinfra==0.1.5.
deploy.py:
from pyinfra.modules import server

meta = server.user(
  {'Delete testing user'},
  'mike.pfaffroth1',
  present = False
)

result:
### Welcome to pyinfra

--> Connecting to hosts...
    [<IP_ADDRESS>] Connected

--> Building deploy scripts...
    [<IP_ADDRESS>] Ready

--> Proposed changes:
    [<IP_ADDRESS>]	Operations: 1	    Commands: 0

--> Beginning operation run...
--> Starting operation: Delete testing user
    [<IP_ADDRESS>] No changes

--> Results:
    [<IP_ADDRESS>]	Successful: 1	    Errors: 0	    Commands: 0/0

<-- Thank you, goodbye

But if I change the deploy to be:
from pyinfra.modules import server

meta = server.user(
  {'Delete testing user'},
  'mike.pfaffroth1',
  present=True
)

I get:
### Welcome to pyinfra

--> Connecting to hosts...
    [<IP_ADDRESS>] Connected

--> Building deploy scripts...
    [<IP_ADDRESS>] Ready

--> Proposed changes:
    [<IP_ADDRESS>]	Operations: 1	    Commands: 3

--> Beginning operation run...
--> Starting operation: Delete testing user
    <IP_ADDRESS>: useradd: user 'mike.pfaffroth1' already exists
    [<IP_ADDRESS>] Error

--> pyinfra error: No hosts remaining!

<-- Thank you, goodbye

@ipfaffy this is a bug in the users fact that misses users with periods in their name; fixed @ https://github.com/Fizzadar/pyinfra/commit/9c149771b8ef027c8583b3801cdf3636b42caf31 which will be released in v0.2 in the coming days :)


Tools menu support

It would be good if PaneRelief could be accessed from the tools menu as well as quick drop, for users who do not use quick drop often.

I can help with this feature, if needed.
Jim Sent from my mobile.

Yes, would love your help on this Jim!


Fit inside screen option

@Turhvjbufv Could you elaborate what you mean by this?

Wallpapers are supposed to fill the screen.

I've added an option, tapping the image will now switch between the alternate scales (the default one and the one you mentioned). This is only available in the main wallpaper screen.


Use version information from .nvmrc

Is there are any plans to support .nvmrc?

Not directly, since this is not a per-shell utility. I've long thought about a hook system though to give developers an option to support this if they like, but it has been pushed to the next edition (something I'll start working on in mid-late September).

Cool, thanks! Will be a very useful feature. Recently I migrated from Mac to Windows so looking for the ability to configure npm version on the project level.


Service

[x] id
[x] name: String
[x] duration: Time
[x] description: String
[x] cost: Number

Base Schema created. Needs QA to make sure it actually works.


Test Issue created at Mon, 14 Mar 2022 02:35:25 GMT

Test issue body  Mon, 14 Mar 2022 02:35:25 GMT

Comment on issue at Mon, 14 Mar 2022 02:35:27 GMT


NUTCH-2439 Upgrade Apache Tika dependency to 1.17

Tika really has become a behemoth of sorts !!!
+1


Add extra access methods for atomic types

This RFC adds the following methods to atomic types:

get_mut
into_inner
as_raw
from_raw

Rendered

All the other methods for loading the values of atomic types take an argument to specify the ordering. Why not these?

What is required for code to be sound while calling the unsafe from_raw? Just a valid pointer or are there more invariants? If so why not take a reference and make it a safe fn? Same question for as_raw's return value, I guess.

All the other methods for loading the values of atomic types take an argument to specify the ordering. Why not these?

Because they are accessing the value non-atomically.

What is required for code to be sound while calling the unsafe from_raw?

The pointer needs to be valid, and you need to make sure that the other thread is not accessing the integer non-atomically while you are performing atomic operations on it.
The reason a raw pointer is used here is because the value is a shared and mutable integer, which can't be expressed using a reference.

The get_mut, into_inner, and as_raw methods seem good to me, but the from_raw method would basically tie our hands into always representing AtomicT as simply UnsafeCell<T>. This is likely to always be the case anyway, but it may mean that it'd be easier to just document that the two are the same and not worry about adding a method to do what to me seems at least a relatively rare operation.

@alexcrichton I think simply documenting that AtomicT has the same representation as T would also work fine. This is going to be used in unsafe code anyways, the only thing needed is a guarantee about the layout of atomic types.

Aren't there platforms where we'd have to use AtomicUsize to emulate smaller atomics?

@Amanieu yeah I might prefer to go that route (a function from *const T to &U seems kinda weird to me) and avoid the as_raw and from_raw methods. I think both are equivalent in terms of the practical and technical implications.
@ubsan yeah but AtomicU8 can always be byte-sized regardless of that, we'd just have to use usize-sized compare-and-swap operations to update the byte we care about (while ignoring all the other bytes)

@alexcrichton ah, 'k.

@alexcrichton Hmm wouldn't that misbehave if you have like AtomicU8s in an array or such?

@glaebhoerl It isn't a problem since a modification to one AtomicU8 will simply cause a CAS on a nearby one to failed, which will just be retried.

OK, after giving this RFC some though, I'm in favor of the general idea. In particular, I've wanted something like get_mut from time to time, for cases where I'm initializing an atomic data structure.
I personally would prefer to start with just get_mut, since into_inner is expressible in terms of it, but I don't feel too too strongly about that.

@aturon The reason for adding into_inner was to be able to consume an atomic that wasn't declared with a mutable binding. In practice I expect 99% of uses of get_mut to be inside drop which gives you a &mut anyways, so it wouldn't be too much of a loss to get rid of it.

🔔 This RFC is now entering its week-long final comment period 🔔
The libs team is leaning towards merging this as is (with get_mut and into_inner), but comments are always appreciated!

Discussed during libs triage the other day, the conclusion was to merge
Thanks again for the RFC @Amanieu!
Rendered

I still get an improper_ctypes warning when I try to use an atomic for FFI. Is this expected?

Atomic* are just your average Rust struct, which have unspecified layout, so the error is expected.
What this RFC is proposing is ability to extract plain isize from your AtomicIsize, which you can then put into any of your FFI structs. Alas, the functionality in question does not exist yet, because even though this RFC is accepted, the corresponding functionality is not implemented. You can track the implementation on the tracking issue.

Actually, it has already been implemented: https://github.com/rust-lang/rust/pull/35719

@nagisa, it seems to me that with this RFC the layout of Atomic* is now specified, but the compiler just has no way of knowing this. :-)
Apologies that this wasn't clear from my earlier example, but as in the example of Linux futexes, I need to have Rust atomically manipulate a value shared with C. So it seems like the correct solution is a pointer cast, and the effect of this RFC is that this is now defined/correct? (That's another contrived example, but closer to what I need to do.)
But this is not nearly as nice as being able to use Atomic* directly in my #[repr(C)] struct. For one thing, aside from visibility (which I would certainly use in a real example), nothing forces me to manipulate the field atomically. In fact, manipulating it non-atomically (incorrectly) is easy and involves no unsafe, while manipulating it atomically (correctly) requires much more typing and use of unsafe.
I can't even use UnsafeCell<isize>, which would at least force me to use unsafe and indicate to the compiler that my struct has interior mutability, because UnsafeCell is not #[repr(C)]. Nor should it be, of course. But it would be super cool if UnsafeCell had some kind of #[repr(inherit)] or something, that would allow UnsafeCell<T> to be used in a #[repr(C)] struct iff T could be used in a #[repr(C)] struct.

My opinion is that structs with only a single member should be defined as having the same representation as that element.
As a workaround, I guess we could just mark the atomic types as #[repr(C)] for now and ignore the warning about UnsafeCell not being #[repr(C)].


[WIP][DO NOT MERGE] Search prototype

Re-opening PR so heroku link can be shared around

@vanitabarrett is this PR still needed? If not could we close it?

Closing as this PR isn't needed any more


System property to avoid test-on-load

https://github.com/marick/Midje/issues/372, while closed, remains a real issue for users of various tools e.g. tools.namespace, Eastwood, refactor-nrepl, CIDER - anything "runtime based" really which is a pretty broad spectrum of choices today!
The issue suggests touching a .midje file, however that is a global side-effect that can easily alter a given user's actual preference.
So something like a Java System property would be cleaner.
Example use case:

First, I (System/setProperty "midje.test-on-load" "false")
Then, I run Eastwood analysis
Finally, I set (System/setProperty "midje.test-on-load" ,,,) to whatever it was before.

Would you be so kind to implement this simple tweak?
Thanks - V

good idea! Would be really cool to be able to more easily use things like eastwood on codebases with midje tests.
Does https://github.com/marick/Midje/pull/483 do the trick for you?

cool, deployed as 1.10.6

This worked like a charm - I set the "-Dmidje.check-after-creation=false" property before running Eastwood and it no longer runs tests.
Thanks again!


Update the encoded path to RequestHeaders.path()

Motivation:
The path is encoded (e.g. /abc/1%202/def) but is not updated to RequestHeaders.path(), causing the following request is not encoded
public static void main(String[] args) throws ExecutionException, InterruptedException {
    final WebClient c = WebClient.of("http://localhost:8080");
    c.execute(HttpRequest.builder()
     .get("/p1/p2/p3/{name}")
     .pathParam("name", "hello world")
     .build())
     .aggregate()
     .get()
     .status();
}

Modifications:

Update the encoded path to RequestHeaders.path().

Result:

Resolve part of #3780.
Http request path is correctly encoded.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: kezhenxu94:x: armerianYou have signed the CLA already but the status is still pending? Let us recheck it.

How about adding the example in the PR description as a test?


Patch/puphpet modules

This PR deletes the contents of puphpet/puppet/modules/, because these contents are automatically downloaded on initial vagrant up and only create noise in the repository. The directory is mandatory, or Puppet will fail, so we preserve this by keeping the PuPHPet generated README and LICENSE files in the repo.
The first time you run vagrant up without the modules in the project, you will see a message similar to this:

From that point on, you will see the actual modules in the directory, but we ignore them in Git.

@ezimuel and @weierophinney, would you like to leave the initial composer install up to the user to run? Generally we like to do some post-up stuff with the a Vagrant provisioner, but maybe you'd prefer the user run composer manually to keep it consistent with the other ways of installing the skeleton app.

For 1.4.0, we've gone with a streamlined, minimalist vagrant image. Users can adopt their own methodologies using their preferred tooling if they have more complex needs.


wxc-tab-bar 底部icon图标不显示

Before you start writing a issue,Please make sure there have not the same issue.
Your development environment（weex、weex-toolkit、system and more.）

Expected behavior and actual behavior.

Steps to reproduce the problem.

请按照这个格式提issue


Fix formatting for "DMP Templates" PDF and DOCX files

related issue #712 for Public DMPs files
Content:

Delete cover page - this is only appropriate for Public DMPs, not for DMP Templates
Delete "DMP" from the template page that follows it (screenshot 1 below). The heading should be the Funder/Org name: Template name (e.g., Arts and Humanities Research Council (AHRC): AHRC Technical Plan).
Beneath the title, DMP Templates should contain Section headings, Questions, and any Guidance provided by the funder as part of the template. Currently the Guidance is missing (see screenshot for DOD template from current DMPTool compared w/DMP2 stage versions below).

Style:

Formatting style (fonts, sizes, etc) should be consistent for Public DMPs and DMP Templates PDFs (this looks to be the case already)
Formatting style should be as close as possible between PDF and DOCX files for exported DMP Templates. Sans serif font, boldface for Title, section headings, questions are good, regular text for guidance. DOCX files should not use all caps for Project title and section headings as in screenshot 3 below - please make initial caps only.
if easy to implement, insert a line below the template title for PDF and DOCX files as in screenshot 2 below (but this isn't necessary if it proves to be complicated for either format)

1 - AHRC Template exported as PDF from Roadmap stage

2 - DOD Template exported as DOCX from DMPTool

3 - DOD Template exported as DOCX from DMP2-stage/Roadmap

files look good @briri - please just remove the time from "Last modified" in the footer (screenshot below). date is sufficient.

there's a funny line in the middle of the NSF EAGER PDF but that appears to be bad/old data. downloading newly created public plans looks good. closing issue.

I'm not able to export to PDF (error thrown)

It does download to docx though and I have a small request for change here. Can the question text be aligned with the section headings and answers please. Not sure why it is inset.

I think indenting can work for the guidance text (as in your AHRC template screengrab above) but I'd like the actual question to be left-aligned with the other key elements.

formatting abilities are somewhat limited because of the gem but @briri can advise. I just wanted to follow up and request that we try to fix the hyperlinks in DOCX download too. after lots of data editing and downloading recently i noticed that they all look bad with extra long underlining (see screenshot "Datacite organisation")

We've had that url problem before. I think @xsrust may have fixed it previously so can possibly help.
The indenting should be fine to correct I think, as this will be a setting we have predefined.

@sjDCC I can't recreate indented question text you noted above. The ones I looked at were not indented. Perhaps its just bad data roadmap-stg is really out of sync.

created new issue to fix link formatting post MVP #1185 - closing this issue.


Implement classes

Added Person, Teacher and Student classes in different files.
Added age_of and can_use_services method in the Person class.
Added play_hooky in to the Student class.

Thank you! @Johnadibe ! Your kind suggestions helped me a lot to mature this way of approaching this language in the best way!!


Restrictive upper bounds on transformers and bifunctors

I wasn't able to build tracetree with GHC 8.0.1 because it requires transformers < 0.5, and transformers < 0.5 requires base < 4.9.  The build succeeded when I lifted the upper bound on transformers.

Thanks for the report! Fixed in github and edited the .cabal file on Hackage.

Thanks!


Support for multi-series files

This pull request adds support for .czi files containing multiple regions ("series"). Install with:
pip install git+https://github.com/BodenmillerGroup/napari-czifile2.git@multiregion

Please carefully check whether everything works as expected. In particular, please check whether the relative positioning of the regions looks correct (e.g. by comparing with the Zeiss software). Thanks!
Closes #1

I can now open a multi-region czi but the transformation using napping doesn't quite seem to work. I get positive coordinates after transformation from IF to .czi. The coordinates on the .czi should be negative, making them positive on the panoramas.

Did you try with napping from master or centroid-transform?

That was from the master branch

Codecov Report

Merging #2 (9f915c6) into master (75b5209) will increase coverage by 1.30%.
The diff coverage is 9.09%.

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage   18.91%   20.22%   +1.30%
==========================================
  Files           2        3       +1
  Lines          74       89      +15
==========================================
+ Hits           14       18       +4
- Misses         60       71      +11

Impacted Files
Coverage Δ

napari_czifile2/_reader.py
15.85% <9.09%> (-0.82%)
:arrow_down:

napari_czifile2/__init__.py
60.00% <0.00%> (ø)

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 75b5209...9f915c6. Read the comment docs.

should be fixed now

Any update here @nilseling?

Merging into master, please reopen issue #1 if problems still persist


Some keybinds seem to be inaccessible

What are you trying to achieve?
I'm trying to use the keybinds after the SPC w prefix:
C-S-l, C-S-j, etc.
However they seem to be impossible to use since SPC w C-S is it's own binding, so you can never complete SPS w C-S-j.
What have you tried?
Just tried using Emacs keybindings as normal. I'm aware I could change the keybindings in the relevant config.el but I'm wondering if there is actually a way to do this, or if C-S-l was intended to be a placeholder for user customisation?
Additional information
n/a
System information

emacs   version    26.3
        features   XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2
        build      Aug 29, 2019
        buildopts  (--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now)
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop, origin/develop, origin/HEAD 97a3950ec 2020-03-27 05:20:02 -0400
        dir        ~/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /bin/bash
        uname      Linux 5.5.9-arch1-2 #1 SMP PREEMPT Thu, 12 Mar 2020 23:01:33 +0000 x86_64
        path       (~/.pyenv/shims /usr/local/bin /usr/local/sbin /usr/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl ~/.emacs.d/bin /usr/lib/emacs/26.3/x86_64-pc-linux-gnu/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +defaults) vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric vc :checkers syntax :tools (eval +overlay) lookup magit :lang data emacs-lisp markdown (org +dragndrop +present) python sh :config (default +bindings +smartparens))
        packages   (n/a)
        unpin      (n/a)
        elpa       (n/a)

I'm not sure I understand the problem. By C-S I assume you mean C-S-s (ctrl+shift+s, i.e. ctrl + capital s). A SPC w C-S-s keybind does exist, but why would that block SPC w C-S-j? These are two independent key sequences that do not conflict.
Emacs doesn't allow you to bind directly to modifier keys so by C-S you couldn't have meant ctrl+shift. Could you elaborate?

Ahh I thought C-S-s meant ctrl + shift + s + s.
Thanks for sorting this!


Index out of Range Exception

i change the code of "topTwoCards" and "bottomTwoCards" to the following, to make sure it is workiing for lists with 0 or 1 element as well.
    List<SwipeCard> topTwoCards() => _cards.sublist(       (_cards.length > 1) ? (_cards.length - 2) : 0, _cards.length);

You are welcome to submit a pull request ! :)


fixed #5482

fixed #5482
The data sorting rules should have a unique key to ensure a stable sorting list.

Make sure that:

[x] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.50%. Comparing base (979dc03) to head (bbb6deb).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5483      +/-   ##
============================================
- Coverage     61.06%   60.50%   -0.57%
+ Complexity     8701     8638      -63
============================================
  Files          1265     1265
  Lines         38643    38642       -1
  Branches       3688     3685       -3
============================================
- Hits          23599    23379     -220
- Misses        12927    13197     +270
+ Partials       2117     2066      -51

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


How to change MAC ID in NRF52

hi friends am the beginner of nrf52832. i try to code for simple iBeacon i have doubt as what is the use of line " unsigned short measuredPower = -55;" ?? i find there is no change after assign values to it and how to edit device macid in that code.

SVCALL(SD_BLE_GAP_ADDRESS_SET, uint32_t, sd_ble_gap_address_set(uint8_t addr_cycle_mode, ble_gap_addr_t const *p_addr));
i see this function call in soft device library how to call this function in iBeacon example code to change my device address

i try to change device address using this function
static ble_gap_addr_t m_central_addr;
m_central_addr.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_STATIC;
m_central_addr.addr[0] = 0xfd;
m_central_addr.addr[1] = 0x71;
m_central_addr.addr[2] = 0x5f;
m_central_addr.addr[3] = 0x45;
m_central_addr.addr[4] = 0x2b;
m_central_addr.addr[5] = 0xc6; // 2MSB must be set 11
for (int i = 0; i < 5; i++)
Serial.println(m_central_addr.addr[i]);
sd_ble_gap_address_set(&m_central_addr);
but error come how can i change device address in my NRF52 board in arduino code

Could you solve it?

I can actually compile but it doesn't modify the device address, I tried calling the funcion in many places, but it just print the elements of the array.


[UI] Meshery UI not working over HTTPS from CodeSpaces

Current Behavior

Desired Behavior

Meshery UI has to work after the port is forwarded by GitHub Codespaces.
Screenshots/Logs

Environment

Browser: Chrome Safari Firefox
Host OS: Mac Linux Windows
Meshery Server Version: stable-v
Meshery Client Version: stable-v
Platform: Docker Kubernetes

Contributor Guides and Handbook

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

@sivanaikk will you open a sibling issue in the form of an enhancement for Meshery to support HTTPS?


Merge DEV

This PR has:

CWL code, moved to an dev version in order to use conditionals.
Changes for https://github.com/EBI-Metagenomics/emg-viral-pipeline/issues/13
Changes for https://github.com/EBI-Metagenomics/emg-viral-pipeline/issues/12
Fix for lenght filtering script, memory problem reported by Alex A.
Mashmap optional step in CWL and Nextflow
Travis build for CWL and python scripts. Not sure how to write tests for Nextflow, at least a validation of the code (I'll dig into this).

I've tested this locally and it's working, I'll move the code to the cluster to run some tests.

Okay, that was annoying. In the mashmap module I changed
-s ${length}

to
-s ${params.mashmap_len}

because you can directly use parameters in modules. But it was not working (it was always using the default of 2000).
I figured out that the problem seems to be if you are using
shell:
"""
-s ${params.mashmap_len}
"""

or
script:
"""
-s ${params.mashmap_len}
"""

In a script: environment params.mashmap_len is updated correctly when I change --mashmap_len 4500 but not in the shell: environment!
I will also check for other modules where shell: instead of script: is used and update this.
I don't know if this is intended or a super annoying bug.

tldr:
either use
shell:
'''
'''

or
script:
"""
"""

it seems that
shell:
"""
"""

behaves strange


Create lots of graph and query functions

Created all graphs for attributes by season. Created more queries to help create these graphs. Created a couple of grouped bar charts using benchmarking, and some donut graphs

Imports funnys


Axis Scaling

I'm wondering, is the scaling in x,y and z axis implemented or is it missing from the BoundingBoxShell? I haven't found anything referencing it directly so I started implementing it on my own but there're quite a lot of classes it has to be added.

So far we've only implemented uniform scaling, but we've left the door open for individual axis later down the line.

Alright, thanks. Took me a while but I managed to get it working decently https://my.mixtape.moe/thbryn.mp4. Mostly had issues with applying the scaling to the transformHelper as it seemed like the rotation always interfered.


Question about MVC app

Tony,
Great library - so well documented, thanks for that.  I originally was planning to do a native client app using your library, but that project got cancelled.  Now it looks like this will be an MVC app with an API behind it.  Specifically, I want to use Telerik ASP.NET controls, or maybe their Ajax controls.
Is this library still a good way to go?  Are there enough benefits in it for those platforms to warrant the added complexity?
Thanks in advance.

Hi there.  If you're going to be working in the web app space, you should be aware that it has evolved significantly.  If this is a new project, I would suggest taking a serious look at ASP.NET 5, which is currently in a late stage beta and will have a release candidate in November with a go-live license.
In terms of the UI platform, the trend these days is to build single-page apps (SPA's) using a JavaScript framework (or more than one), such as Angular.  You can find a great tutorial for using Angular with ASP.NET 5 and MVC 6 here.
Hope this helps!

It helps a lot.  I was planning on using the ASP.NET 5 / MVC 6 approach.  I heard that SPA's are not as search friendly as a standard ASP.NET page is (although now I can't tell you why).
I just really liked the way you had segmented your project space with Unit of Work projects and dependency injection and so on.
I guess TE shines on native apps more than web apps, making the additional complexity somewhat less valuable.  I guess that someday there might a native app, but the site would have to be a huge success before that ever happened and even then, I'm not sure that a responsive design wouldn't be just as well received.
There's a possibility that I'll develop a native app in the future and if so, TE might make perfect sense then.
So, thanks for a great library where I learned a lot and one of the best documented, fully complete open source offerings I've run across.
Regards...

As the question seems to have been answered, I'm closing this issue for now.


[SPARK-40930][CONNECT] Support Collect() in Python client

What changes were proposed in this pull request?

Before this PR,  the collect() call will throw an exception to recommend to use toPandas().
With this PR, we can generate a list of PySpark Row upon calling collect().
Why are the changes needed?

Improve API coverage.
Does this PR introduce any user-facing change?

No
How was this patch tested?

UT

R: @HyukjinKwon

Can one of the admins verify this patch?

Merged to master.


Can't set userAvatarBackgroundColor

The userAvatarBackgroundColor is not reflecting to the set color. It stays blue. The same is true for bot avatar background color.
Using CDN: https://cdn.botframework.com/botframework-webchat/latest/webchat.js

`styleOptions: {
  botAvatarImage: "https://static.crozdesk.com/web_app_library/providers/logos/000/003/155/original/chatbots-builder-1510149769-logo.png?1510149769",
  botAvatarInitials: "BF",
  botAvatarBackgroundColor: "#17a2b8",
  bubbleBackground: "#F0F0F0",
  bubbleTextColor: "Black",
  bubbleBorderRadius: 10,

  bubbleFromUserBorderRadius: 10,
  bubbleFromUserBackground: "#6699FF",
  bubbleFromUserTextColor: "White",
  userAvatarBackgroundColor: "#19194d",
  userAvatarInitials: "You",
  //userAvatarImage: "https://github.com/compulim.png?size=64",
}`

The userAvatarBackgroundColor style option was adding in PR #2384 which will be include in our v4.6 release towards the end of October. If you need an immediate solution, please take a look at our documentation on using the Latest Bits.

Thank you!


Update GreetingController.java

:star: PR built and available in a preview chanmi910-jx3-msa-01-pr-11


InfluxDB persistence after helm install

Could I enable InfluxDB persistence after helm install deis/workflow?
I read the docs, but what would happen?

Yes you can do that. It would create a persistent volume and bind it to the influx pod. All data currently stored in the pod would be lost though since influx would need to restart to bind the volume.

I think you should be able to do something like helm upgrade <release name> <chart path> --set influxdb.persistence=true

I've did what you said, but it's taking a long time to terminate and Grafana is not showing anything. Maybe it should be better to delete the release and reinstall it? The influxapi IP should be the same, right? It's a Service, it should discover its pods
helm upgrade amber-bobcat deis/workflow -f ./values.yaml \
--set global.storage=s3,s3.accesskey=$AWS_ACCESS_KEY_ID,s3.secretkey=$AWS_SECRET_ACCESS_KEY,s3.region=us-east-1,s3.registry_bucket=registry-deis-staging,s3.database_bucket=database-deis-staging,s3.builder_bucket=builder-deis-staging,monitor.influxdb.persistence.enabled=true,monitor.grafana.persistence.enabled=true

$ kubectl -n deis get po -w
...
deis-monitor-grafana-1790189660-jsgg8    1/1       Running       0          10m
deis-monitor-grafana-541875647-nj7vm     1/1       Terminating   0          3d
deis-monitor-influxdb-1032455162-26jft   1/1       Running       0          10m
deis-monitor-influxdb-2881701064-h821m   1/1       Terminating   0          3d
...

$ kubectl -n deis get services
...
deis-monitor-influxapi   <IP_ADDRESS>    <none>             80/TCP                                                     10d
deis-monitor-influxui    <IP_ADDRESS>   <none>             80/TCP
...

If you are ok deleting the release and reinstalling then yeah I would try that. Ive recently been working on the charts and I have done several no persistence to persistence upgrades and didnt notice that issue. But that was on a branch of some stuff I was testing so it may not work that way in master.


Fix table of contents generator

Task: #33
When merged, this PR will:

Fix generation table of contents (correctly this time)

Merged in PR#60


Support "publication" import in import DSL

Create new entry in publication table via the import DSL. Perhaps associate it with an entry elsewhere in the database based on nesting?

Since we are moving away from the DSL I'm closing this issue in favor of #341


[AKS] az aks create/az aks update: Add new parameters --enable-gmsa/--gmsa-dns-server/--gmsa-root-domain-name to support Windows gMSA v2

Description

az aks create/az aks update: Add new parameters --enable-gmsa/--gmsa-dns-server/--gmsa-root-domain-name to support Windows gMSA v2.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

AKS


Improve C2548

Gave the function argument names so as to not confuse people unfamiliar with the int = 1 syntax, and it is needed for the example explanation. The example explanation is slightly verbose to prevent it from being ambiguous or imprecise, since the default argument requirement is technically the "union" of all preceding declarations within the same scope. Happy to receive feedback on a terser method.

@TylerMSFT

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Local Logging

Warning: This PR should not be merged before PR #357.
This PR introduces Winston for local logging. Data is written out to log files in JSON format. Logs files are rotated every day and tagged with a date stamp. Log files are not allowed to be more than 1 MB in size and there are not allowed to be more that 14 days of logs.
Log files are stored in the /logs directory, which has been added to .gitignore so that that we don't have to worry about checking log files into the repo.

Pull Request Test Coverage Report for Build 1905

9 of 13 (69.23%)  changed or added relevant lines in 2 files are covered.
267 unchanged lines in 7 files lost coverage.
Overall coverage decreased (-0.1%) to 71.776%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

dist/utils/winston-logging.js
8
9
88.89%

dist/utils/gray-logging.js
1
4
25.0%

Files with Coverage Reduction
New Missed Lines
%

dist/routes/v2/transaction.js
4
80.89%

dist/routes/v2/block.js
6
85.87%

dist/routes/v2/route-utils.js
6
79.22%

dist/routes/v2/rawtransactions.js
14
83.4%

dist/routes/v2/blockchain.js
29
77.25%

dist/routes/v2/address.js
74
78.36%

dist/routes/v2/slp.js
134
51.19%

Totals

Change from base Build 1896:
-0.1%

Covered Lines:
2029

Relevant Lines:
2633

💛  - Coveralls


Update Composer dependencies (2021-06-11-00-03)

Visual regression test passed!
View the visual regression test report


Don't leave sshlockout_pf process orphans when restarting syslogd (Bug #7984)

Also remove redundant checks while here, since they are already done by sigkillbypid().

Removed the usleep() calls after SIGKILL from both files since they were equally useless before and now. Waiting for the outcome won't terminate the sshlockout_pf process regardless of sleeping or not.

I agree it wont matter for sshlockout_pf. i do wonder why they were made put there in the first place.. Is it guaranteed that the process immediately gone and OS sockets cleaned up when the SIGKILL is executed? So a new syslogd can startup without any issue.?
It still seems the first sleep is sill useless if syslogd wasn't running at that time the original isvalidpid() check was not 'redundant' for that part imho, even though most of the time syslogd would be running, during bootup it will add at 100ms of doing nothing.. though small it can be better with little effort. actually it seems you put effort in to make it worse by removing good working code, that is what surprises me.
Probably only adding the sigkillbyname("sshlockout_pf", "TERM"); would have been enough to 'fix' my reported issue. But was wondering if that is the proper fix or syslogd maybe should keep track if its children or something different..
Nonetheless thanks for the PR. Ill leave it at that, and see what the official devs think about it.

Well, IMHO doing isvalidpid() which in turn calls sigkillbyname() which in turn does isvalidpid() yet again is just braindead. The entire overhead is probably very much close to those 100ms that noone cares about anyway. YMMV.

In case you are wondering why this PR is closed, see https://github.com/doktornotor/pfsense-closedsource
I'm not willing to contribute to closed-source projects that are falsely advertising themselves as open-source any more.


Introduce a different database for each microservice ?

All three Villain, Hero and Fight microservices use a Postgres database. What about having a different database type for each microservice?
We could use Postgres, MySQL and MariaDB, for example.

We certainly could. It would have an effect on running the system via docker compose though. Right now only 1 DB instance is started and 3 schemas are created. That would have to change.

Or maybe have a simpler setup when using docker compose (only one instance of Postgres) and a more complex one when doing K8s ?

But then the apps would have to have each of the extensions. Isn't that a Quarkus anti-pattern?
By anti-pattern I mean it would be ok to have more than one datasource extension present if the app communicated with more than 1 datasource, but to switch datasource types between environments? Some of the datasource config is fixed at build time.

BTW I'm not against the idea, just playing devil's advocate and thinking out loud about the repercussions.

You're right. We could use Quarkus profiles but that could be cumbersome. I'll give it a try and submit a PR is I come up with something that ends up easy to run on docker compose and no too difficult on K8s

Let me know if you have any questions about the setup and how the k8s/docker compose files are generated. I tried to be detailed in the documentation, but if something doesn't make sense or the documentation needs to be updated I'm happy to modify the docs (or take PRs :) ).

Looking at eShopOnContainers project from Microsoft might give some ideas, they have implemented a full set of microservices with different databases as well (I believe their older versions of the repo used an even wider range of different db)

I was thinking about Mongo and/or Cassandra? Although Cassandra doesn't yet have a Dev Service (see datastax/cassandra-quarkus#199) so I'd be hesitant to use it.

So MongoDB it is then. I will see if I can find the time to create a PR
this week.
tor. 24. feb. 2022 13.43 skrev Eric Deandrea @.***>:

I was thinking about Mongo and/or Cassandra? Although Cassandra doesn't
yet have a Dev Service (see datastax/cassandra-quarkus#199
https://github.com/datastax/cassandra-quarkus/issues/199) so I'd be
hesitant to use it.
—
Reply to this email directly, view it on GitHub
https://github.com/quarkusio/quarkus-super-heroes/issues/6#issuecomment-1049821949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHNY2NH5JZ6ASHGTNGIZRUTU4YRXNANCNFSM5NGYDBZQ
.
You are receiving this because you commented.Message ID:
@.***>

Awesome! Thanks for taking an interest @Jenriksen!
@agoncal / @cescoffier thoughts?

Maybe the fight service makes the most sense/is the least invasive?

I like the idea of having several types of databases, APIs and so on. As @edeandrea mentioned, MongoDB has DevServices (which makes lives easier in dev). So, if Cassandra does not have DevServices (yet?), Mongo is a good choice

I would go for a noSQL DB. Mongo is fine, Redis might be interesting too.
Mongo is closer to what we did in the other microservices (we have a Panache layer). So, I would go mongo.


Feature suggestion: enable scroll memory for non-document elements

The current implementation only works if the top HTML element (body) is used as the scrollable container. The project that I'm working on uses a child div as the main scrollable container. I suggest adding an optional property (e.g. elementID) to ScrollMemory that targets the main scrollable div. I'll open a PR for this feature.

ok, you want just id="..." attribute on the main div.

ok, merged. 👍


Unfortunatelly can't see the sensor on 64-bit system

System raspberry pi 8GB (64bit version of OS )
/config/configuration.yaml
...
hacs:
token: !secret HACS_github
appdaemon: true
python_script: true
theme: true
...
sensor: !include_dir_merge_list includes/sensor
...
/config/includes/sensor/system.yaml
...

platform: rpi_power
text_state: true
...

yeah i wont be fixing this, wait for it to be merged into ha core


Add the image_size.

Signed-off-by: Ming Tan<EMAIL_ADDRESS>

@tanminger Instead of having this article as a separate tutorial, I'd proposed to add the content to the Build from Source guide. If you are ok with it, I can edit the doc to incorporate these information.

@ttzeng  Do you mean the "getting_started/build-source.rst" file?

@ttzeng Do you mean the "getting_started/build-source.rst" file?

@tanminger Yes, I think the customization of partition size can be extended to that page. If you are ok, I plan to add your context there.

@ttzeng I think the "getting_started/build-source.rst" should be simple, and let the developer can simple compile it and try. How to modify some default setting should be advanced feature.

@ttzeng  Maybe you can add some content about live boot to the 'getting_started/build-source.rst'


openblas compilation errors

Hi,
While installing Julia on Ubuntu 17.04, i ran into some compilation errors: https://github.com/JuliaLang/julia/issues/13842#issuecomment-295333554
Tried to overcome it by not using the system openblas but installing from source failed too: https://gist.github.com/svaksha/037cb9776737d103383b9fa742d2a25a

Seems you had a spelling error (missing "n") in your first attempt:

make FC=gfortra
OpenBLAS: Detecting fortran compiler failed. Cannot compile LAPACK. Only compile BLAS.

and you did not do "make clean" before the second attempt (with make TARGET=NEHALEM) which may have led to a mixed build with some parts of the code expecting lapack functions to be present.
What is your CPU ? I would expect anything from two years ago (when that julia issue was new) to be detected correctly by a recent OpenBLAS so a TARGET option should not be necessary.

You can plant very fresh OpenBLAS as system libblas.so.3 at disposal of julia, numpy and friends:
https://github.com/xianyi/OpenBLAS/wiki/Faq#debianlts
Or do nothing as long as both products are recent from distribution (they know their ways with compilers better)

Thanks Martin and Andrew. I will try these and report.
Aside, right after filing this bug, I cloned a fresh dev-version of julia
and compiled it - voila, no openblas errors. This strange behaviour
perplexed me. Any idea what is going on?
SVAKSHA ॥  http://about.me/svaksha  ॥
On Thu, May 11, 2017 at 1:10 PM, Andrew<EMAIL_ADDRESS>wrote:

You can plant very fresh OpenBLAS as system libblas.so.3 at disposal of
julia, numpy and friends:
https://github.com/xianyi/OpenBLAS/wiki/Faq#debianlts
Or do nothing as long as both products are recent from distribution (they
know their ways with compilers better)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/xianyi/OpenBLAS/issues/1183#issuecomment-300784351,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEvIiXMiLAnyr-fdkl4uPZMMKOU0r4rks5r4wjjgaJpZM4NXrbc
.

That would seem to fit my speculation that the build system should be able to figure out the CPU type (and the fortran compiler) automatically. If OpenBLAS is built as part of the Julia installation, either someone had the foresight to issue a make clean at the start of the build process "just in case", or the checkout also fetched a fresh copy of OpenBLAS, oblitterating any broken bits that may have been left over from your previous attempt.

On Wed, May 17, 2017 at 1:55 PM, Martin Kroeker<EMAIL_ADDRESS>wrote:

That would seem to fit my speculation that the build system should be able
to figure out the CPU type (and the fortran compiler) automatically. If
OpenBLAS is built as part of the Julia installation, either someone had the
foresight to issue a make clean at the start of the build process "just
in case", or the checkout also fetched a fresh copy of OpenBLAS,
oblitterating any broken bits that may have been left over from your
previous attempt.

well, when ever the julia src build fails for openblas I do a combination
of the following and build it for the NEHALEM arch till the openblas error
goes away.
make clean
make distclean
make -C deps clean-uv
make -C deps distclean
git clean -fdx
make -C deps distclean-libgit2 && make
that day, none of these worked so i got rid of the system openblas and
tried to compile from source.
SVAKSHA ॥  http://about.me/svaksha  ॥

The i7-7600U (as you mentioned in the julia issue comment) should be recognized by the current git "develop" source tree, though not yet by the 0.2.19 release. (HASWELL target should be more appropriate for that cpu rather than the much older and less advanced NEHALEM, unless you intend to use the same library build on older machines as well). Not sure about the earlier issues but glad that they appear to have gone away :-)

You can export OPENBLAS_CORETYPE=Haswell with ububtu-supplied OpenBLAS or supplant it with develop OpenBLAS. Either will be significantly quicker than old cpu architecture builds.

@svaksha was this sufficient to solve your problem(s), or would you like further assistance ?

@brada4, thanks. " make OPENBLAS_TARGET_ARCH=HASWELL" fixed the build failures. (<-- for folks having similar issues).
@martin-frbg, solved now, thanks!


Possible bug in attention seq2seq

source file is seq2seq.py
def attention(query):
  """Put attention masks on hidden using hidden_features and query."""
  ds = []  # Results of attention reads will be stored here.
  for a in xrange(num_heads):
    with vs.variable_scope("Attention_%d" % a):
      y = rnn_cell.linear(query, attention_vec_size, True)
      y = array_ops.reshape(y, [-1, 1, 1, attention_vec_size])
      # Attention mask is a softmax of v^T * tanh(...).
      s = math_ops.reduce_sum(
          v[a] * math_ops.tanh(hidden_features[a] + y), [2, 3])
      a = nn_ops.softmax(s)
      # Now calculate the attention-weighted vector d.
      d = math_ops.reduce_sum(
          array_ops.reshape(a, [-1, attn_length, 1, 1]) * hidden,
          [1, 2])
      ds.append(array_ops.reshape(d, [-1, attn_size]))
  return ds

at line 440, you compute the energies, ok… then at line 441 you normalize the energies… you need to do a -FLT_MAX mask on only the part of the encoder sequence (i.e., you don’t want to pay attention to “empty” part of the sequence)... I don't see the masking op? Or am i missing something?
I can wrap an op patch for this if nobody is working on this (let me know).
Thanks all!

I was thinking about it and there were 2 things that stopped me from working on it. The first and most important one is that I get good results without any special handling for masks, just as it is. Are you sure that a -FLT_MAX really helps, did you try without it? (I think the net just learns to never attend to the padding easily.) The second reason was that one day, when "while" works ok, we might not need to pad at all -- and I did not want to add complexity to the API that is not applicable to that case.
That said, if you find it important and want to do it -- by all means, send a patch :).

I get good results without any special handling for masks, just as it is

I too have been using this for about a month, and I also get good results just as it is. I think it learns to never attend to padding as that is a simple if statement. In keras, we also talked about this, and concluded that masking was not necessary because the network learns to ignore padding.

But for sequence with a lot of padding, this will result in an increase in the softmax attention temperature. I think this equivalent to having an additional implicit hyperparameter that changes for different input sequence lengths. The network might be somewhat robust to it as long as the input sequences do not vary too much but it is probably misleading for the user to have something that does not follow the mathematical description of most papers in the literature. That might be the source of hard to debug confusion when trying to reproduce the results of experiments done by other researchers with other tools.

Indeed, it's a good argument. Still, as said before, the right solution to be close to the formalism is probably to use "while" (i.e., make the graph dynamically unroll) and then avoid padding altogether. We're working on this and did not want to polute the API with elements that will not be used then (as the padding symbol). But it will take a while before it's ready...

@lukaszkaiser even w/ While, wouldnt this still be an issue? esp if the sequences in the minibatch have high variances in sequence length.

The network might be somewhat robust to it as long as the input sequences do not vary too much  @ogrisel , if you apply enough different types of bucket sizes then you wouldn't really run into this problem. All the sequences would roughly be within 5 or 7 timesteps (assuming you're doing NLP seq2seq).

You're right Will - if there is variance in minibatches this might always be a problem. And let's not forget there is another problem with padding - we start the encoder from the first batch element, so the state goes through a bunch of pad symbols before the real sentence starts. Both could be corrected if the padding symbol was passed to the function and it constructed appropriate masks - we should probably do that. Are you guys willing to take a shot at it? (I'll probably not manage to do it before leaving for Christmas.)

fyi, i wrote a simple op for this ... needs to be refactored and polished up before a patch can be submitted.
impl can be found here for those who need it before its pushed upstream:
https://github.com/wchan/tensorflow/blob/master/tensorflow/core/kernels/attention_mask_op_test.cc

FYI, I've added "MedianMask" and "WindowMask" (same path as above github path); see: http://arxiv.org/pdf/1508.04395.pdf
however, I still haven't been able to reduce their results.

@lukaszkaiser: Can this issue be closed?

Yes - let's close this and leave the seq2seq attention model as is (many people are using it successfully). We might implement another attention model with more features at some point, but that's a different issue.

I have to say that fixing this bug helped my results a lot!
I train a model of cnn + attention for OCR, and after adding a change to fix this bug my word error rate improved noticeably.
I know that you are implementing a new dynamic attention mechanism, but until it is stable (documented and tested) many people will probably stay with the old mechanism, so it can be nice if you could write a documentation of the bug in your API.


breezy: init at 3.0.2

Motivation for this change
See https://github.com/NixOS/nixpkgs/issues/80740
cc: @rnhmjoj
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[X] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

but it might be useful to do a pythonImportsCheck = [ "lazr.package" ];

I've added it tolazr.restfulclient. I tried to add to lazr.uri, but it fails; I'm not sure why.

i would do:
$nix-shell ./nixpkgs/default.nix -A python3Packages.lazr-restfulclient
[nixshell] $ python
>>> import lazr
>>> lazr

it should show you the file it imported (if there is one), this file will need to be removed for the pep420 namespacing to work correctly
it will say something like <namespace> if it loaded correctly

because https://github.com/NixOS/nixpkgs/pull/80595 hasn't found it's way into master yet

for now, I would just do the pythonImportsCheck on expressions that you're not testing. Eventually we will be able to do tests + pythonImportsCheck

Updated. Thank you for explain it

@GrahamcOfBorg build breezy

@marsam Thank you!


We have verified that debug mode only toggles DEBUG log levels

AC:

[x] The Secretless logger has been reviewed to ensure that the debug flag only toggles the DEBUG log levels, and all other levels are printed by default
[x] If the Secretless logger does not work as described above, it is updated to only print DEBUG level warnings when the debug flag is on and prints everything else by default
[ ] Log messages that are shown when the debug flag is on without using the Secretless logger are either updated to use the logger or are removed

this was resolved with the changes in #1139


pip_url: -e <path> does not work with plugins that use pyproject.toml, like taps built using the SDK

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2653
Originally created by @DouweM on 2021-03-16 23:46:29

As mentioned in https://gitlab.com/meltano/meltano/-/issues/2580, pip does not allow local installs to utilize PEP-517, which means that pip_url: -e <path> does not work with plugins that use pyproject.toml instead of setup.py. pip_url: <path> works, but that way the plugin isn't in editable/development mode.
Since the SDK's [cookiecutter template uses pyproject.toml](https://gitlab.com/meltano/singer-sdk/-/blob/development/cookiecutter/tap-template/'Reference to deleted milestone 7'B%7Bcookiecutter.library_name%7D%7D/pyproject.toml), this complicates development of taps using the SDK, since they cannot easily be tested with Meltano (meltano invoke, meltano elt) without constantly running meltano install extractor <tap> between changes.

View 9 previous comments from the original issue on GitLab


a gcc problem of pip install in alpine and slim

first, it's ok in 3.7.0-stretch<PHONE_NUMBER>4e. even i upgrade pip 10 => 18.
docker_py_about_gcc_promblem.txt
and it appear in alpine 4ba354cfad11 and slim 721e295edabf.
error is :
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-yu7dnntc/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-lqpautx_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-yu7dnntc/greenlet/
my dockerfile is
FROM python:3.7.0-stretch WORKDIR /usr/mabo/ COPY ./requirements.txt ./ RUN pip install -r requirements.txt \ 	&& rm requirements.txt
and requirements is :
zope.interface constantly incremental attrs Automat twisted pymodbus3 pendulum redis influxdb msgpack-python toml python-etcd falcon waitress greenlet gevent logbook
in alpine,it's error in install greenlet.
in slim ,it's same.
and in alpine, only pip greenlet, also error.
but when i change dockerfile ,and use it in slim
RUN pip install greenlet RUN pip install -r mabopython_requirements_alpine.txt \ 	&& rm mabopython_requirements_alpine.txt
error is different:
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_xu8ni82/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-_yicobwz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-_xu8ni82/twisted/
not greenlet is twisted..Orz

more info:
【run in python:3.7.0-alpine】
Running setup.py clean for greenlet
Failed building wheel for greenlet
Successfully built logbook zope.interface pymodbus3 pendulum msgpack-python toml python-etcd
Failed to build gevent twisted greenlet
Installing collected packages: greenlet, gevent, logbook, zope.interface, constantly, incremental, attrs, six, Automat, idna, hyperlink, PyHamcrest, twisted, pyserial, pymodbus3, python-dateutil, pytzdata, pendulum, redis, pytz, certifi, chardet, urllib3, requests, influxdb, msgpack-python, toml, dnspython, python-etcd, python-mimeparse, falcon, waitress
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-yu7dnntc/greenlet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-lqpautx_/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c greenlet.c -o build/temp.linux-x86_64-3.7/greenlet.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------

Command "/usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-yu7dnntc/greenlet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-lqpautx_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-yu7dnntc/greenlet/
The command '/bin/sh -c pip install -r mabopython_requirements.txt 	&& rm mabopython_requirements.txt' returned a non-zero code: 1
【run in alpine，and just greenlet】
Running setup.py clean for greenlet
Failed building wheel for greenlet
Failed to build greenlet
Installing collected packages: greenlet
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-ouipj7nz/greenlet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-587ux85p/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c greenlet.c -o build/temp.linux-x86_64-3.7/greenlet.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------

Command "/usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-ouipj7nz/greenlet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-587ux85p/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ouipj7nz/greenlet/
【run in slim，first install greenlet，then other】
copying src/twisted/names/test/test_util.py -> build/lib.linux-x86_64-3.7/twisted/names/test
copying src/twisted/names/test/test_server.py -> build/lib.linux-x86_64-3.7/twisted/names/test
copying src/twisted/names/test/test_tap.py -> build/lib.linux-x86_64-3.7/twisted/names/test
copying src/twisted/names/test/test_rfc1982.py -> build/lib.linux-x86_64-3.7/twisted/names/test
copying src/twisted/names/test/test_resolve.py -> build/lib.linux-x86_64-3.7/twisted/names/test
copying src/twisted/names/test/test_examples.py -> build/lib.linux-x86_64-3.7/twisted/names/test
running egg_info
writing src/Twisted.egg-info/PKG-INFO
writing dependency_links to src/Twisted.egg-info/dependency_links.txt
writing entry points to src/Twisted.egg-info/entry_points.txt
writing requirements to src/Twisted.egg-info/requires.txt
writing top-level names to src/Twisted.egg-info/top_level.txt
reading manifest file 'src/Twisted.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '.misc' found under directory 'src/twisted'
warning: no previously-included files matching '.bugfix' found under directory 'src/twisted'
warning: no previously-included files matching '.doc' found under directory 'src/twisted'
warning: no previously-included files matching '.feature' found under directory 'src/twisted'
warning: no previously-included files matching '.removal' found under directory 'src/twisted'
warning: no previously-included files matching 'NEWS' found under directory 'src/twisted'
warning: no previously-included files matching 'README' found under directory 'src/twisted'
warning: no previously-included files matching 'newsfragments' found under directory 'src/twisted'
warning: no previously-included files found matching 'src/twisted/topfiles/CREDITS'
warning: no previously-included files found matching 'src/twisted/topfiles/ChangeLog.Old'
warning: no previously-included files found matching 'pyproject.toml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching '.circleci'
warning: no previously-included files matching '' found under directory '.circleci'
no previously-included directories found matching 'bin'
no previously-included directories found matching 'admin'
no previously-included directories found matching '.travis'
no previously-included directories found matching '.github'
warning: no previously-included files found matching 'docs/historic/2003'
warning: no previously-included files matching '*' found under directory 'docs/historic/2003'
writing manifest file 'src/Twisted.egg-info/SOURCES.txt'
copying src/twisted/python/twisted-completion.zsh -> build/lib.linux-x86_64-3.7/twisted/python
creating build/lib.linux-x86_64-3.7/twisted/python/_pydoctortemplates
copying src/twisted/python/_pydoctortemplates/common.html -> build/lib.linux-x86_64-3.7/twisted/python/_pydoctortemplates
copying src/twisted/python/_pydoctortemplates/index.html -> build/lib.linux-x86_64-3.7/twisted/python/_pydoctortemplates
copying src/twisted/python/_pydoctortemplates/summary.html -> build/lib.linux-x86_64-3.7/twisted/python/_pydoctortemplates
copying src/twisted/test/cert.pem.no_trailing_newline -> build/lib.linux-x86_64-3.7/twisted/test
copying src/twisted/test/key.pem.no_trailing_newline -> build/lib.linux-x86_64-3.7/twisted/test
copying src/twisted/test/server.pem -> build/lib.linux-x86_64-3.7/twisted/test
copying src/twisted/python/test/_deprecatetests.py.3only -> build/lib.linux-x86_64-3.7/twisted/python/test
copying src/twisted/internet/test/_awaittests.py.3only -> build/lib.linux-x86_64-3.7/twisted/internet/test
copying src/twisted/internet/test/_yieldfromtests.py.3only -> build/lib.linux-x86_64-3.7/twisted/internet/test
creating build/lib.linux-x86_64-3.7/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/chain.pem -> build/lib.linux-x86_64-3.7/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/not-a-certificate -> build/lib.linux-x86_64-3.7/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/thing1.pem -> build/lib.linux-x86_64-3.7/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/thing2-duplicate.pem -> build/lib.linux-x86_64-3.7/twisted/internet/test/fake_CAs
copying src/twisted/internet/test/fake_CAs/thing2.pem -> build/lib.linux-x86_64-3.7/twisted/internet/test/fake_CAs
copying src/twisted/internet/iocpreactor/notes.txt -> build/lib.linux-x86_64-3.7/twisted/internet/iocpreactor
copying src/twisted/mail/test/rfc822.message -> build/lib.linux-x86_64-3.7/twisted/mail/test
copying src/twisted/words/im/instancemessenger.glade -> build/lib.linux-x86_64-3.7/twisted/words/im
copying src/twisted/words/xish/xpathparser.g -> build/lib.linux-x86_64-3.7/twisted/words/xish
running build_ext
building 'twisted.test.raiser' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/twisted
creating build/temp.linux-x86_64-3.7/src/twisted/test
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.7m -c src/twisted/test/raiser.c -o build/temp.linux-x86_64-3.7/src/twisted/test/raiser.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------

Command "/usr/local/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-_xu8ni82/twisted/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-_yicobwz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-_xu8ni82/twisted/
The command '/bin/sh -c pip install -r mabopython_requirements_alpine.txt 	&& rm mabopython_requirements_alpine.txt' returned a non-zero code: 1

unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

You should install build required packages.

https://pip.pypa.io/en/stable/reference/pip_wheel/#options
I'm not very familiar with python, it seems it doesn't have an option for accepting a file as a list of packages. -i, -f, -r, do not process the file as you want them to. However putting them in the Dockerfile directly will work.
FROM python:3.7.0-stretch

RUN pip install zope.interface constantly incremental attrs Automat twisted pymodbus3 pendulum redis influxdb msgpack-python toml python-etcd falcon waitress greenlet gevent logbook

 docker build
$ docker build . -t python_test
Sending build context to Docker daemon  3.072kB
Step 1/2 : FROM python:3.7.0-stretch
 ---> 638817465c7d
Step 2/2 : RUN pip install zope.interface constantly incremental attrs Automat twisted pymodbus3 pendulum redis influxdb msgpack-python toml python-etcd falcon waitress greenlet gevent logbook
 ---> Running in 3e97bb30b380
Collecting zope.interface
  Downloading https://files.pythonhosted.org/packages/ac/8a/657532df378c2cd2a1fe6b12be3b4097521570769d4852ec02c24bd3594e/zope.interface-4.5.0.tar.gz (151kB)
Collecting constantly
  Downloading https://files.pythonhosted.org/packages/b9/65/48c1909d0c0aeae6c10213340ce682db01b48ea900a7d9fce7a7910ff318/constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental
  Downloading https://files.pythonhosted.org/packages/f5/1d/c98a587dc06e107115cf4a58b49de20b19222c83d75335a192052af4c4b7/incremental-17.5.0-py2.py3-none-any.whl
Collecting attrs
  Downloading https://files.pythonhosted.org/packages/41/59/cedf87e91ed541be7957c501a92102f9cc6363c623a7666d69d51c78ac5b/attrs-18.1.0-py2.py3-none-any.whl
Collecting Automat
  Downloading https://files.pythonhosted.org/packages/a3/86/14c16bb98a5a3542ed8fed5d74fb064a902de3bdd98d6584b34553353c45/Automat-0.7.0-py2.py3-none-any.whl
Collecting twisted
  Downloading https://files.pythonhosted.org/packages/90/50/4c315ce5d119f67189d1819629cae7908ca0b0a6c572980df5cc6942bc22/Twisted-18.7.0.tar.bz2 (3.1MB)
Collecting pymodbus3
  Downloading https://files.pythonhosted.org/packages/9e/e4/e1c1b243203891e76bd0af519cabc9fb0df5dac1e36074a3e3aa62ec2efb/pymodbus3-1.0.0.tar.gz (80kB)
Collecting pendulum
  Downloading https://files.pythonhosted.org/packages/4a/97/c288b8c98e49b9e1ec67b28ada3f39b7bd786be11ca119244e2aca3a5cf4/pendulum-2.0.2.tar.gz (75kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
Collecting redis
  Downloading https://files.pythonhosted.org/packages/3b/f6/7a76333cf0b9251ecf49efff635015171843d9b977e4ffcf59f9c4428052/redis-2.10.6-py2.py3-none-any.whl (64kB)
Collecting influxdb
  Downloading https://files.pythonhosted.org/packages/3b/62/462d9b3675d9df3255d317d36076cfb1ae83042920a9b79e3b14d752f511/influxdb-5.2.0-py2.py3-none-any.whl (71kB)
Collecting msgpack-python
  Downloading https://files.pythonhosted.org/packages/8a/20/6eca772d1a5830336f84aca1d8198e5a3f4715cd1c7fc36d3cc7f7185091/msgpack-python-0.5.6.tar.gz (138kB)
Collecting toml
  Downloading https://files.pythonhosted.org/packages/f5/f9/044110c267e6408013b85166a7cfcd352cf85275aa8ce700aa5c0eb407ba/toml-0.9.4.tar.gz
Collecting python-etcd
  Downloading https://files.pythonhosted.org/packages/a1/da/616a4d073642da5dd432e5289b7c1cb0963cc5dde23d1ecb8d726821ab41/python-etcd-0.4.5.tar.gz
Collecting falcon
  Downloading https://files.pythonhosted.org/packages/e8/d0/20bb807dee65f1f163754670557b128eafce1710f6c9c363a38e357f3783/falcon-1.4.1-py2.py3-none-any.whl (159kB)
Collecting waitress
  Downloading https://files.pythonhosted.org/packages/ee/af/ac32a716d64e56561ee9c23ce45ee2865d7ac4e0678b737d2f5ee49b5fd6/waitress-1.1.0-py2.py3-none-any.whl (114kB)
Collecting greenlet
  Downloading https://files.pythonhosted.org/packages/e9/95/4c9d2be16c124cb8e1b19b1b5c9811b5e43c3a60d2f4355e42d30813bda4/greenlet-0.4.14-cp37-cp37m-manylinux1_x86_64.whl (42kB)
Collecting gevent
  Downloading https://files.pythonhosted.org/packages/59/cc/11c0962cfef3ce807f9964b5f4621de3b1d1ed28e07fb5244333d477ac55/gevent-1.3.5-cp37-cp37m-manylinux1_x86_64.whl (4.5MB)
Collecting logbook
  Downloading https://files.pythonhosted.org/packages/36/4b/b610bee18d5cfc4cec7dde056639994e9b34991e4c57816bfff0f3d0ac33/Logbook-1.4.0.tar.gz (84kB)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/site-packages (from zope.interface) (40.0.0)
Collecting six (from Automat)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting hyperlink>=17.1.1 (from twisted)
  Downloading https://files.pythonhosted.org/packages/a7/b6/84d0c863ff81e8e7de87cff3bd8fd8f1054c227ce09af1b679a8b17a9274/hyperlink-18.0.0-py2.py3-none-any.whl
Collecting PyHamcrest>=1.9.0 (from twisted)
  Downloading https://files.pythonhosted.org/packages/9a/d5/d37fd731b7d0e91afcc84577edeccf4638b4f9b82f5ffe2f8b62e2ddc609/PyHamcrest-1.9.0-py2.py3-none-any.whl (52kB)
Collecting pyserial>=2.6 (from pymodbus3)
  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB)
Collecting python-dateutil<3.0,>=2.6 (from pendulum)
  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
Collecting pytzdata>=2018.3 (from pendulum)
  Downloading https://files.pythonhosted.org/packages/2b/b8/a007eedc118838b27247da7c31f25c2b9e68e68ed2ffafed3d340d379e84/pytzdata-2018.5-py2.py3-none-any.whl (981kB)
Collecting pytz (from influxdb)
  Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)
Collecting requests>=2.17.0 (from influxdb)
  Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
Collecting urllib3>=1.7.1 (from python-etcd)
  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
Collecting dnspython>=1.13.0 (from python-etcd)
  Downloading https://files.pythonhosted.org/packages/a6/72/209e18bdfedfd78c6994e9ec96981624a5ad7738524dd474237268422cb8/dnspython-1.15.0-py2.py3-none-any.whl (177kB)
Collecting python-mimeparse>=1.5.2 (from falcon)
  Downloading https://files.pythonhosted.org/packages/26/2e/03bce213a9bf02a2750dcb04e761785e9c763fc11071edc4b447eacbb842/python_mimeparse-1.6.0-py2.py3-none-any.whl
Collecting idna>=2.5 (from hyperlink>=17.1.1->twisted)
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.17.0->influxdb)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting certifi>=2017.4.17 (from requests>=2.17.0->influxdb)
  Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)
Building wheels for collected packages: zope.interface, twisted, pymodbus3, pendulum, msgpack-python, toml, python-etcd, logbook
  Running setup.py bdist_wheel for zope.interface: started
  Running setup.py bdist_wheel for zope.interface: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/c6/b2/d2/be6785a207eaa58d76debc10c9d5c66196b40a88abb61d6af7
  Running setup.py bdist_wheel for twisted: started
  Running setup.py bdist_wheel for twisted: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a9/85/24/fc82998fb686cb31e65a26c027a20120fd1219c9f1e925913a
  Running setup.py bdist_wheel for pymodbus3: started
  Running setup.py bdist_wheel for pymodbus3: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/52/a0/72/5317456c51d8b81978e8cd6c23f5e5fe7aefebd2732744ddc7
  Running setup.py bdist_wheel for pendulum: started
  Running setup.py bdist_wheel for pendulum: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/06/6d/9e/7ff661dff4df0ee3783bd032f6ea28f1ec78271e0711941dd4
  Running setup.py bdist_wheel for msgpack-python: started
  Running setup.py bdist_wheel for msgpack-python: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/d5/de/86/7fa56fda12511be47ea0808f3502bc879df4e63ab168ec0406
  Running setup.py bdist_wheel for toml: started
  Running setup.py bdist_wheel for toml: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/60/a0/8a/eaebd461aa0abf3d38546b12f3b3234de0a39de13374dad39e
  Running setup.py bdist_wheel for python-etcd: started
  Running setup.py bdist_wheel for python-etcd: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/65/07/b7/da66f9ca9985154db8940f616e15f06e1c7fbfeed0e8fc8354
  Running setup.py bdist_wheel for logbook: started
  Running setup.py bdist_wheel for logbook: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/3a/50/0d/b67da0bb2a56061970cdf37a5e95fb07d9106200f33044616e
Successfully built zope.interface twisted pymodbus3 pendulum msgpack-python toml python-etcd logbook
Installing collected packages: zope.interface, constantly, incremental, attrs, six, Automat, idna, hyperlink, PyHamcrest, twisted, pyserial, pymodbus3, python-dateutil, pytzdata, pendulum, redis, pytz, chardet, urllib3, certifi, requests, influxdb, msgpack-python, toml, dnspython, python-etcd, python-mimeparse, falcon, waitress, greenlet, gevent, logbook
Successfully installed Automat-0.7.0 PyHamcrest-1.9.0 attrs-18.1.0 certifi-2018.4.16 chardet-3.0.4 constantly-15.1.0 dnspython-1.15.0 falcon-1.4.1 gevent-1.3.5 greenlet-0.4.14 hyperlink-18.0.0 idna-2.7 incremental-17.5.0 influxdb-5.2.0 logbook-1.4.0 msgpack-python-0.5.6 pendulum-2.0.2 pymodbus3-1.0.0 pyserial-3.4 python-dateutil-2.7.3 python-etcd-0.4.5 python-mimeparse-1.6.0 pytz-2018.5 pytzdata-2018.5 redis-2.10.6 requests-2.19.1 six-1.11.0 toml-0.9.4 twisted-18.7.0 urllib3-1.23 waitress-1.1.0 zope.interface-4.5.0
Removing intermediate container 3e97bb30b380
 ---> db0d53dad558
Successfully built db0d53dad558
Successfully tagged python_test:latest

If you have further questions you should ask the Docker Community Forums, the Docker Community Slack, or Stack Overflow. As these repositories are for issues with the image and not necessarily for questions of usability

And this seems relevant for your alpine build problem https://github.com/docker-library/python/issues/312#issuecomment-405326705

thanks for your help,i`ll try it.
thanks again.

@wglambert #312 (comment)
the way of intall gcc,is very usefully thanks.
RUN apk add --no-cache --virtual .build-deps gcc musl-dev
RUN pip install cython
RUN apk del .build-deps gcc musl-dev

I also needed python3-dev to install the psycopg2 package

@ziserendexin I got a problem :(
Step 4/9 : RUN apk add --no-cache --virtual .build-deps gcc musl-dev
 ---> Running in 62db2ecfbaca
/bin/sh: 1: apk: not found
The command '/bin/sh -c apk add --no-cache --virtual .build-deps gcc musl-dev' returned a non-zero code: 127

@wglambert #312 (comment)
the way of intall gcc,is very usefully thanks.
RUN apk add --no-cache --virtual .build-deps gcc musl-dev
RUN pip install cython
RUN apk del .build-deps gcc musl-dev

@ziserendexin I got a problem :(
Step 4/9 : RUN apk add --no-cache --virtual .build-deps gcc musl-dev
 ---> Running in 62db2ecfbaca
/bin/sh: 1: apk: not found
The command '/bin/sh -c apk add --no-cache --virtual .build-deps gcc musl-dev' returned a non-zero code: 127

@nvlong198 what's your base image?  The above example is for alpine-based image.

@ziserendexin I got a problem :(
Step 4/9 : RUN apk add --no-cache --virtual .build-deps gcc musl-dev
 ---> Running in 62db2ecfbaca
/bin/sh: 1: apk: not found
The command '/bin/sh -c apk add --no-cache --virtual .build-deps gcc musl-dev' returned a non-zero code: 127

@wglambert #312 (comment)
the way of intall gcc,is very usefully thanks.
RUN apk add --no-cache --virtual .build-deps gcc musl-dev
RUN pip install cython
RUN apk del .build-deps gcc musl-dev

apk is alpine's Package manager. Maybe you should choose the package management command based on your base image.

This is wrong!
RUN apk add --no-cache --virtual .build-deps gcc musl-dev
RUN pip install cython
RUN apk del .build-deps gcc musl-dev
this is ok
RUN apk add --no-cache --virtual .build-deps gcc musl-dev
&& pip install cython
&& apk del .build-deps gcc musl-dev
Reason
If you don't remove the packages in the same step, the packages will end up in a docker layer and your images will not get smaller as the third step implies.

while doing pip install psutil  I was further getting following error:
Building wheel for psutil (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_763xihh/psutil_bbcbd5b81232414e8ec0d3c2b44aea9f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_763xihh/psutil_bbcbd5b81232414e8ec0d3c2b44aea9f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9jsekpz8
       cwd: /tmp/pip-install-_763xihh/psutil_bbcbd5b81232414e8ec0d3c2b44aea9f/
  Complete output (50 lines):
  /tmp/tmpvcecgzj9.c:1:10: fatal error: linux/ethtool.h: No such file or directory
      1 | #include <linux/ethtool.h>

resolved by :
RUN apk add linux-headers

before pip install psutil


Dead lock of my account

hi,  my  account has 10 EOS, but no resouces. So I cannot buy ram or stake for cpu and bandwidth. Actually ,I almost can do nothing. Is there any solution?   In reality, i cannot find any other account to do this instead.

Please run ./cleos system delegatebw with --buyram. This allows you to delegate CPU, NET and buyram in one transaction. You may need to run it multiple times until one of the producer accept your transaction.


Fix/interpreter/fault injection action

Description
Abstract
Fixed a bug where only one fault injection would occur when multiple fault injections were attempted in a short period of time using FaultInjectionAction.
Background
None.
Details
The following two changes were made:

Changed history_depth of rclcpp::Publisher's QoS used by FaultInjectionAction internally from 1 to KeepLast(10).
Changed rclcpp::Publisher used internally by FaultInjectionAction to instantiate earlier than its use (This is because rclcpp::Publisher ignores any publish for a while after it is instantiated and pretends it never existed.).

References
None.
Destructive Changes
None.
Known Limitations
None.

Checklist for reviewers ☑
All references to "You" in the following text refer to the code reviewer.

[ ] Is this pull request written in a way that is easy to read from a third-party perspective?
[ ] Is there sufficient information (background, purpose, specification, algorithm description, list of disruptive changes, and migration guide) in the description of this pull request?
[ ] If this pull request contains a destructive change, does this pull request contain the migration guide?
[ ] Labels of this pull request are valid?
[ ] All unit tests/integration tests are included in this pull request? If you think adding test cases is unnecessary, please describe why and cross out this line.
[ ] The documentation for this pull request is enough? If you think adding documents for this pull request is unnecessary, please describe why and cross out this line.


v2 HA install is not highly available

Rancher versions:
2.0.4
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
qemu virtualized nodes under Proxmox VE 5.2.
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Followed these instructions
Results:
After following the above, I have a working v2 installation with RKE. It works fine until I try to do anything HA with it. If I shut down one of the nodes, I can no longer reach the WebUI, (I get a 503 from the ingress controller), and none of the workloads restart on the other nodes.  CPU utilization on the remaining two nodes goes to 100% and load begins to climb. The machines become sluggish.
If I power the downed node back up, everything starts working again. During the outage, workloads on the other two nodes continue to function, but the cluster behaves as though it needs all three to be online in order to work. I'm unable to talk to the cluster with kubectl, either directly or through the load balancer - requests to :6443 time out.
I have two separate RKE/Rancher v2 installations that show the same behavior.
Has anyone tested that the HA instructions result in something that is actually HA? Can the instructions include steps for testing HA and expected results? What do you recommend for troubleshooting this, since I can't talk to the cluster unless all three nodes are online?

@oskapt The answer in this SO question gives more explanation about rescheduling of Pod in k8s: https://stackoverflow.com/questions/41926177/kubernetes-rescheduling-of-pods-after-a-node-becomes-unreachable

hi, guys. thanks for responding. i suppose i was just lucky in always choosing the node where the rancher pod was running, and i didn't realize i needed to wait 6+ minutes for the pod to relaunch.
i don't want to get into a discussion about redefining "highly available" to be "eventually available," but i do think it's worth pointing out that a multi-minute outage of a critical component is not HA.
it might be worthwhile to frame expectations in the referenced installation guide, since every other system that purports to be HA can almost instantly survive the destruction of one of its nodes. it's okay that Rancher v2 cannot do so yet, or that you're hampered by k8s not handling failovers in a timely fashion. being clear about that will prevent users like myself shooting nodes in the head and then wondering why everything collapsed.
keep up the good work, though. rancher is still, hands-down, the most awesome thing in the space.


Version name

May i know which version number i have to use it in dependencie.i have tried <IP_ADDRESS>. But its showing Failed to resolve error. Thanks

@Vibinreji Do you add jitpack in repositories?

Is current version is <IP_ADDRESS> is right? it will be good if README.md have latest version specifications. Thanks!


API Management - Create/Update API  - Make fields editable with variables

When I want to use this task in a Task group then I'll have to work with variables. Once I've used one variable in the Subscription field I'm not able to use others in for instance the Resource Group field.
The following fields should be editable with variables:

Subscription
Resource group
API Portal
Product

The others work just fine. Thanks in advance. If you need anything please ask me.

Hi @DibranMulder ,
Ok I get it, it is simply because I didn't make the picklists editable. It's not a big change but I'll probably do it in a few days. I'm right now quite busy at a conference so I'm running out of time.
Best Regards

Hi @DibranMulder,
I've updated the extension.
Best Regards

Ok thanks! When will the marketplace be updated?

Ah I see the extension is updated, thanks for the super fast response!

Hi @DibranMulder ,
I'll fix this over the week-end and basically, I'll review all the tasks just to be sure.
Thanks


Solution files

Codecov Report

Merging #399 (7e8fcee) into master (bc46d2f) will decrease coverage by 0.05%.
The diff coverage is 62.16%.

@@            Coverage Diff             @@
##           master     #399      +/-   ##
==========================================
- Coverage   71.70%   71.64%   -0.06%
==========================================
  Files         462      462
  Lines       15436    15513      +77
==========================================
+ Hits        11069    11115      +46
- Misses       4367     4398      +31

Impacted Files
Coverage Δ

...e/security/Policies/AssignmentPermissionPolicy.php
40.00% <0.00%> (-13.34%)
:arrow_down:

...1Module/security/Policies/UserPermissionPolicy.php
16.00% <0.00%> (ø)

app/helpers/FileStorage/IImmutableFile.php
100.00% <ø> (ø)

app/model/entity/Group.php
77.48% <0.00%> (-2.07%)
:arrow_down:

app/model/entity/UploadedFile.php
90.47% <ø> (+28.57%)
:arrow_up:

app/model/entity/SolutionZipFile.php
6.25% <11.11%> (-6.25%)
:arrow_down:

app/V1Module/presenters/UploadedFilesPresenter.php
57.59% <36.36%> (-3.69%)
:arrow_down:

...security/Policies/UploadedFilePermissionPolicy.php
46.29% <50.00%> (ø)

...ty/Policies/AssignmentSolutionPermissionPolicy.php
82.60% <75.00%> (-4.06%)
:arrow_down:

...Module/presenters/AssignmentSolutionsPresenter.php
82.98% <85.71%> (+0.21%)
:arrow_up:

... and 9 more

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 bc46d2f...7e8fcee. Read the comment docs.