Use secure_compare when checking CSRF token

This is backport commit. Will merge soon.

I didn't use Rack::Utils.secure_compare intentionally.
This is because the rack-protection v1.5 isn't dependent on ruby-2.0 or higher.
It is the same reason as Sinatra, and I don't want rack-protection to be a blocker of bundle update.


Draft: feature(edit): optimistic locking of edit forms to avoid overwrites

Closes #37

@SantiagoTorres Yes thats correct, i think its enough to detect if the data has changed in the meanwhile.
we just collect current time whenever the data is really change and afterwards just rely on representing it. there should be no influence from time-drift in this scenario as we also do not rely on any client side clocks. Do you think it would be worth changing everything?

Thanks for bumping this up!
Nope, I think I'm comfortable with how things are now :)


Assert that Something can not be instantiated with a None value.

If using this library properly, this is not possible and
the assertion guarantees that we weren't.
If using this library improperly, it's now impossible to
end up with a Something of None.

Pull Request Test Coverage Report for Build 58

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 56:
0.0%

Covered Lines:
64

Relevant Lines:
64

💛  - Coveralls

Needs to be squashed before merge.


feat: add calendar dropdown

✍🏻 Description
Adds CalendarDropdown component. It's on the design page so to see it you have to navigate to that page.
For the logic I found a library very easy to use to build a URL for each calendar, so in the end each option is an anchor. Because of this, I've removed some methods we no longer need from date-utils (and their correspondent tests).
It's fully accessible by keyboard, and I've added some animation when expand and collapse. Feel free to add any suggestions in order to improve any of these two. 😄
📸 Screenshots

🔗 URLs

Task
Design
CalendarLink library

Awesome work, I love the way it feels.
Just a tiny improvement that could be implemented on a further PR:
Would be nice to trap the focus inside the option list together with the close action, so the keyboard users can loop through it.
focus-trap-vue it's been added at #58, you can take a look into its implementation at:
feat/topbar/components/TopNav.vue

Thanks! I've added a task to do it later :D


Code cleanup

Code cleanup for the Mojo "straightforward" version.

The docstring must remain. Put it back.

PR updated

Thanks, it was integrated. What happens if you add / remove var ? Do they mean the same in this case?


Current events shown at the wrong time

I live in Finland, which has the timezone GMT+2/+3 depending on the DST. If I have an event at, let's say, 16:00 - 17:00, it shows the correct time in the calendar, but it's moved to the current section at 19:00 - 20:00, as if it's GMT+0.

can i get your ics url to examine?

Sorry, that was due to my Pi having the wrong timezone. Somehow the clock on the screen had it correct. I changed the timezone and now it works!

Nice to hear it. Have a great day.


Some links (top nav, favicon, etc) don't use BASE_URL and are broken

If you go to our pyOpenSci metrics dashboard you can see that the top level navigation doesn't seem to register the base_url repo name which is the "folder" or path required to resolve the metrics dashboard -- pyopensci.org/peer-review-metrics. However the side bar on the right does resolve the base_url properly.
You can see the github action that we are using here if you wish to test the action or see the action logs.
Description
Proposed solution
Ideally the base_url should register properly for every drop down link and base link in the top nav in addition to the toctree.
Additional notes
we discussed this in discord with @agoose77 and @choldgraf and it was determined to be a bug. please let me know if you want me to test anything!!

Update - i just had a look at the raw html for our online metrics - it's not capturing the base_url for other elements too such as the favicon - (i think). the favicon for our site is in the images directory - i could move it to the root dir as well but it should be peer-review-metrics/favicon.ico (i think?)
<link rel="icon" href="/favicon.ico">

Partial fix in #1483 - the favicon was written as text not binary in the static builds. We also need to update the BASE_URL as you suggest.

Thanks, @rowanc1. I'll l switch our build to install from github to test things out in the next few days.

It is released. I don't think it will work yet!

Thank you!! I somehow thought it was fixed. I'll keep an eye on this. I realized it's not as simple as I thought to install mystmd from GitHub.

@lwasser this should be fixed relatively soon. Just put up a PR that we can deploy later this week.

thanks @rowanc1 let me know when you'd like me to test things out 🚀 i've been seeing the quite release iterations - lots of work happening here!! 🚀

This will be released with the next mystmd release, likely next week. (my first fix didn't do the trick.. ☹)


fixes #909 add possibility to set generic validation error

Fixes #909
very simple example usage:
class Person < ActiveRecord::Base
  validate do
    errors.add(:base, 'invalid attributes') if name.blank?
  end
end

class PersonResource < JSONAPI::Resource
  model 'Person'
  attributes :name

  def model_error_messages
    errors = super
    errors[nil] = errors[:base] if errors.has_key?(:base)
    errors
  end
end

request
post '/people', {data: {type: 'people', attributes: {name: ''}}}, json_api_headers

will be responded with
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/vnd.api+json

{
  "errors": [
    {
      "title": "invalid attributes",
      "detail": "invalid attributes",
      "code": "100",
      "source": {
        "pointer": "/data"
      },
      "status": "422"
    }
  ]
}

I didn't add tests for it because I don't know where I should put it.
I decide to use nil key - not :base because base is a valid attribute name for a jsonapi, and to not break existing functionality.

@dgeb @lgebhardt any thoughts about this?

I'd like to see a solution to handle the errors on :base without requiring the override of model_error_messages.
In ValidationErrors  we do know the Resource so we could check for an attribute named base. If it exists we treat  :base as an attribute, and if it doesn't we treat it as a general validation error.
Does that sound reasonable?

@lgebhardt I agree with you
PR changed and rebased

@senid231 Thanks! I added a few tests and merged this in #1104.


Rewrite walkthrough to be similar to 'basic' demo

This rewrites the walkthrough to be a recreation of the demo I have shown in the SIG a couple times.  It covers:

Adding a broker to the catalog
Provisioning a new instance
Binding to the instance
Unbinding
Deprovisioning
Deleting the broker

SGTM just a few minor asks

@duglin nits addressed


Allow accessing function annotations at runtime

Purpose
$title - fixes https://github.com/ballerina-platform/ballerina-lang/issues/18406
This PR also enables the disabled annotation balo tests - fixes https://github.com/ballerina-platform/ballerina-lang/issues/17999
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[ ] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #18407 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #18407   +/-   ##
=======================================
  Coverage   14.82%   14.82%
=======================================
  Files          48       48
  Lines        1268     1268
  Branches      201      201
=======================================
  Hits          188      188
  Misses       1066     1066
  Partials       14       14

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 ea3ca59...8cc95bf. Read the comment docs.


Apply to move this to zalando org

I'll integrate Put it to REST! into riptide directly as a riptide-spring-boot-starter module. See https://github.com/zalando/riptide/tree/feature/spring-boot-starter


Rebuild is triggered even with single replica cstor volume.

Description
Rebuild is triggered even with single replica cstor volume.
Expected Behavior
Rebuild should not happen on single replica cstor volume
Current Behavior
Rebuild is triggered even with single replica cstor volume.
Your Environment

kubectl get pv:
pvc under test: pvc-45fe1751-3fee-11e9-a23b-0050569331ce

Please find the attached cstor-pool pod logs.
cstor-pool.txt

As part of OPEN opcode, replication_factor will sent from target to replica. Based on this value, replica sets the state of volumereplica as healthy.
cstor pr#216, istgt pr#243 fixes this issue


git clone

you put the wrong git clone url for take the repository

Fixing! Thanks for the catch.


Always start the Secrets controller

The impersonation mechanism relies on the Secrets controller being
started on the user context when a proxy request is made. Before
6b2e1359, the controller was incidentally being started as part of
registering other controllers. With 6b2e1359, the certsexpiration
controller was the last to always start it on startup and now only
conditionally starts it for RKE clusters. This change adds back the
Secrets controller startup to the cluster context unconditionally so
that it is ready the first time impersonation.GetToken is called.
https://github.com/rancher/rancher/issues/35593

Requesting review from @rmweir since he reviewed the original defer PR.


SMITE Game Support

SMITE is natively supported by logitech and I want a wrapper for things like health, mana, deaths, etc.

Duplicate of #721


Fail to export to PDF

Case

BUG

Issue
Fail to export to PDF
Info

Operating System: OSX
Node-Version: node -v' 7.5.0

Log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'export' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'preexport', 'export', 'postexport' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>7 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
8 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/nrahal/Code/best-resume-ever/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS
9 verbose lifecycle<EMAIL_ADDRESS>CWD: /Users/nrahal/Code/best-resume-ever
10 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c',
10 silly lifecycle   'concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw' ]
11 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
12 info lifecycle<EMAIL_ADDRESS>Failed to exec export script
13 verbose stack Error<EMAIL_ADDRESS>export: `concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack     at emitTwo (events.js:106:13)
13 verbose stack     at EventEmitter.emit (events.js:192:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:106:13)
13 verbose stack     at ChildProcess.emit (events.js:192:7)
13 verbose stack     at maybeClose (internal/child_process.js:890:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /Users/nrahal/Code/best-resume-ever
16 verbose Darwin 16.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "export"
18 verbose node v7.5.0
19 verbose npm  v5.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error<EMAIL_ADDRESS>export: `concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>export script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Hello,
delete the node_modules folder, move the project to another directory and try again from the beginning.
Tell me if it works :smiley:

Please try a newer node version and tell us if it works.

Nope

<EMAIL_ADDRESS>dev /Code/best-resume-ever
node build/dev-server.js

Starting dev server...
events.js:182
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::8080
at Object._errnoException (util.js:1026:11)
at _exceptionWithHostPort (util.js:1049:20)
at Server.setupListenHandle [as _listen2] (net.js:1343:14)
at listenInCluster (net.js:1391:12)
at Server.listen (net.js:1474:7)
etc...

EADDRINUSE :::8080 means that another program is using the port I think. Same problem in a previous issue.

I think this is solved.
As @mbndr said, make sure your node-version is equal or higher than the readme recommends.
And make sure port 8080 is not used by another programm.


Add support for API version 1.5

@centromere thanks for your contribution!

You're welcome @Silvanoc. Will this change be published to pypi?

You're welcome @Silvanoc. Will this change be published to pypi?

The expectation was for this to happen automatically thanks to Github Workflows... But apparently we all forgot to update the workflow for 1.4 and 1.5 :slightly_smiling_face: I'll take care of it.

You're welcome @Silvanoc. Will this change be published to pypi?

The expectation was for this to happen automatically thanks to Github Workflows... But apparently we all forgot to update the workflow for 1.4 and 1.5  I'll take care of it.

Done! Successful run can be seen here: https://github.com/siemens/pycontainerd/runs/3475103467?check_suite_focus=true
@centromere you can get it now from https://pypi.org/project/containerd/1.5.1/

Thank you!


Request for unstable API permission for an extension

Please allow the extension Jupyter Server Proxy for InterSystems IRIS (intersystems-community.iris-jupyter-server) to use unstable API in production.

@gjsjohnmurray
Thanks for looking into this.
Please can you confirm the id of the extension is as follows intersystems-community.iris-jupyter-server
I'll add this once confirmed,
Also added a general note on using proposed API https://github.com/microsoft/vscode-jupyter/wiki/Extension-API
I'm sure you're no stranger to this.
TLDR, with the API you are planning on using, we have no plans to change this, its used in at least 2 other extensions (Jupyter Hub and another inhouse extension)
I.e. it is very safe to use this, though its not yet stable.

Yes, that is the correct id.

@gjsjohnmurray I think you should be able to use this today, npm i @vscode/jupyter-extension@proposed
Please use just the following proposed API, I believe thats all you will need
    export interface JupyterServerConnectionInformation {
        /**
         * The `fetch` method to use.
         */
        readonly fetch?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
        /**
         * The `WebSocket` object constructor.
         */
        readonly WebSocket?: typeof WebSocket;

Let me know if it doesn't work for you.
All you need is provide your own fetch implementation and the Jupyter extension will call into that for sure. similarly for websockets.

@DonJayamanne I am trying to use getKernelService
const jupyterKernelService = await jupyterApi.getKernelService();
if (!jupyterKernelService) {
	vscode.window.showErrorMessage('Cannot access jupyterApi.getKernelService() - try using VS Code Insiders');
	return;
}

Next I create a new notebook:
await vscode.commands.executeCommand('ipynb.newUntitledIpynb');
const nbEditor = vscode.window.activeNotebookEditor;

Get the kernel specifications:
const kernelConnectionMetadataArray = await jupyterKernelService.getKernelSpecifications();

I then search the array to get an id I can use as an argument to your API's openNotebook:
const kernelConnectionMetadata = kernelConnectionMetadataArray.find((item: any) => item.kind === 'startUsingRemoteKernelSpec' && item.baseUrl === myBaseUrl && item.kernelSpec.name === myKernelSpecName);
await jupyterApi.openNotebook(nbUri, kernelConnectionMetadata.id);

It's working well on VS Code Insiders, but on Stable I'm getting this notification:

AFAIK you'd need to add my extension id to a list somewhere to make this possible on Stable.

‘ getKernelService’ should not be used
Please have a look at the Jupyterhub extension
https://github.com/microsoft/vscode-jupyter-hub/blob/5d684bbee59ab8911e99e89a08a7adb4600df3b8/src/jupyterIntegration.ts#L308

At this point I'm not trying to replace my fake jupyter server with your proxy fetch and websocket mechanism (see your comment https://github.com/intersystems-community/vscode-iris-jupyter-server/issues/6#issuecomment-1899499184). Rather, having successfully migrated to the finalized JupyterServerProvider API I've been trying to add a way from our UI's tree of servers to be able to launch a new notebook using one of the kernelspecs that the target server provides.
To visualize my goal, imagine adding "Create Interactive Window" and "Create Jupyter Notebook" buttons on the Kernel Specifications rows of your Jupyter Powertoys extension:

I know the baseUrl and the kernelSpec.name but what I need to pass to your openNotebook function is the id of the matching kernelConnectionMetadata item.
Maybe a better solution than me using getKernelService is for you to make openNotebook accept this alternative object in its second argument:
{ kind: 'startUsingRemoteKernelSpec', baseUrl: 'http://localhost:50773/irislatest:USER', kernelSpecName: 'objectscript-int' }
leaving it down to you to match those values in your kernelConnectionMetadata[] array and get the id that I currently have to pass in on the openNotebook call.

Thank you for getting back
Unfortunately at this stage we’re trying to deprecate that other api completely and remove it
Just have to extensions that use that today (power toy and another)
Please can you file a new issue with your requirements so we can track and discuss that separately
Let’s start with the assumption that the old api has been removed/don’t exist
Thanks again
Going to close this issue so we can start a separate discussion on a new issue


Unable to DL sheet

Keep getting the error Unrecoverable error: The file we downloaded has content type '[text/html; charset=UTF-8]', while we expected 'text/tab-separated-values'. Are you sure you entered the right URL?
This was working fine last week. Doc URL ends with /export?format=tsv

That generally means the URL is either incorrect or the file is not shared
publicly, so docsql gets the Google doc auth page (html).
On Thu, 28 Mar, 2019, 11:35 PM hostagexii<EMAIL_ADDRESS>wrote:

Keep getting the error Unrecoverable error: The file we downloaded has
content type '[text/html; charset=UTF-8]', while we expected
'text/tab-separated-values'. Are you sure you entered the right URL?
This was working fine last week. Doc URL ends with /export?format=tsv
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/odino/docsql/issues/5, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUC5B2Gm0Bx4UTC_x-UI4fzcgHHS4f1ks5vbRmegaJpZM4cQ-03
.

Thank you for pointing me in the right direction. The G Suite admin recently made changes to block public link sharing.


[Proposal] Optimize the configuration inside flink-application.conf

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Search before asking

[X] I had searched in the issues and found no similar issues.

Describe the proposal
mail list: https://lists.apache.org/thread/w0lj2zmngt82j38gzgoyztkwyox9oy3o
StreamPark defines many configurations that have the same meaning as Flink configurations, but with different configuration names.
For example, Flink has the pipeline.auto-watermark-interval to configure the interval of the automatic watermark emission. But StreamPark defined a new configuration is flink.watermark.interval.
Flink 1.12 configuration doc
Flink 1.15 configuration doc
It has some problems:

The configuration is repeated, which brings learning costs to users.
Every time a new Flink version is released, StreamPark needs to be compatible with this configuration, which will bring a lot of repetitive code.

I propose to use Flink's official configuration to avoid these problems. It will bring some benefits:

Unified configuration, more user-friendly.
Reduce redundant code and reduce the cost of adapting to the new version of Flink (can reduce code by 25+%).

Task list

#1742
#1743
#1744
#1751

Old configuration
flink:
  deployment:
    property:
      $internal.application.main:
      pipeline.name:
      yarn.application.queue:
      taskmanager.numberOfTaskSlots: 1
      parallelism.default: 2
      jobmanager.memory:
        flink.size:
        heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        off-heap.size:
        process.size:
      taskmanager.memory:
        flink.size:
        framework.heap.size:
        framework.off-heap.size:
        managed.size:
        process.size:
        task.heap.size:
        task.off-heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        jvm-overhead.min:
        managed.fraction: 0.4
  checkpoints:
    enable: true
    interval: 30000
    mode: EXACTLY_ONCE
    timeout: 300000
    unaligned: true
  watermark:
    interval: 10000
  # state backend
  state:
    backend: # see https://ci.apache.org/projects/flink/flink-docs-release-1.12/ops/state/state_backends.html
      value: filesystem # Special note: flink1.12 optional configuration ('jobmanager', 'filesystem', 'rocksdb'), flink1.12+ optional configuration ('hashmap', 'rocksdb'),
      memory: 5242880 # Effective for jobmanager, maximum memory
      async: false    # Valid for (jobmanager, filesystem), whether to enable asynchronous
      incremental: true # Valid for rocksdb, whether to enable incremental
      # Configuration reference of rocksdb https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/config.html#rocksdb-state-backend
      # Remove the prefix of rocksdb configuration key: state.backend
      #rocksdb.block.blocksize:
    checkpoint-storage: filesystem # Special note: This parameter is only valid in flink 1.12+, and the state.backend.value is hashmap, optional: (jobmanager | filesystem)
    checkpoints.dir: file:///tmp/chkdir
    savepoints.dir: file:///tmp/chkdir
    checkpoints.num-retained: 1
  # restart strategy
  restart-strategy:
    value: fixed-delay  # Restart strategy [(fixed-delay|failure-rate|none) a total of 3 configurable strategies]
    fixed-delay:
      attempts: 3
      delay: 5000
    failure-rate:
      max-failures-per-interval:
      failure-rate-interval:
      delay:
  # table
  table:
    planner: blink # (blink|old|any)
    mode: streaming #(batch|streaming)

New configuration
flink:
  deployment:
    property: #@see: https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/config.html
      $internal.application.main:
      pipeline.name:
      yarn.application.queue:
      taskmanager.numberOfTaskSlots: 1
      parallelism.default: 2
      jobmanager.memory:
        flink.size:
        heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        off-heap.size:
        process.size:
      taskmanager.memory:
        flink.size:
        framework.heap.size:
        framework.off-heap.size:
        managed.size:
        process.size:
        task.heap.size:
        task.off-heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        jvm-overhead.min:
        managed.fraction: 0.4
      pipeline:
        auto-watermark-interval: 200ms
      # checkpoint
      execution:
        checkpointing:
          mode: EXACTLY_ONCE
          interval: 30s
          timeout: 10min
          unaligned: true
          externalized-checkpoint-retention: RETAIN_ON_CANCELLATION
      # state backend
      state:
        backend: hashmap # Special note: flink1.12 optional configuration ('jobmanager', 'filesystem', 'rocksdb'), flink1.12+ optional configuration ('hashmap', 'rocksdb'),
        backend.incremental: true
        checkpoint-storage: filesystem
        savepoints.dir: file:///tmp/chkdir
        checkpoints.dir: file:///tmp/chkdir
      # restart strategy
      restart-strategy: fixed-delay  # Restart strategy [(fixed-delay|failure-rate|none) a total of 3 configurable strategies]
      restart-strategy.fixed-delay:
        attempts: 3
        delay: 5000
      restart-strategy.failure-rate:
        max-failures-per-interval:
        failure-rate-interval:
        delay:
  # table
  table:
    planner: blink # (blink|old|any)
    mode: streaming #(batch|streaming)

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

hi 1996fanrui:
looks good,  Can you describe the format of the configuration file before and after the change completely? You'd better discuss this problem in the email.
e.g:
before:
flink:
  deployment:
    property:
      $internal.application.main:
      pipeline.name:
      yarn.application.queue:
      taskmanager.numberOfTaskSlots: 1
      parallelism.default: 2
      jobmanager.memory:
        flink.size:
        heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        off-heap.size:
        process.size:
      taskmanager.memory:
        flink.size:
        framework.heap.size:
        framework.off-heap.size:
        managed.size:
        process.size:
        task.heap.size:
        task.off-heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        jvm-overhead.min:
        managed.fraction: 0.4
  checkpoints:
    enable: true
    interval: 30000
    mode: EXACTLY_ONCE
    timeout: 300000
    unaligned: true
  watermark:
    interval: 10000
  # state backend
  state:
    backend: # see https://ci.apache.org/projects/flink/flink-docs-release-1.12/ops/state/state_backends.html
      value: filesystem # Special note: flink1.12 optional configuration ('jobmanager', 'filesystem', 'rocksdb'), flink1.12+ optional configuration ('hashmap', 'rocksdb'),
      memory: 5242880 # Effective for jobmanager, maximum memory
      async: false    # Valid for (jobmanager, filesystem), whether to enable asynchronous
      incremental: true # Valid for rocksdb, whether to enable incremental
      # Configuration reference of rocksdb https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/config.html#rocksdb-state-backend
      # Remove the prefix of rocksdb configuration key: state.backend
      #rocksdb.block.blocksize:
    checkpoint-storage: filesystem # Special note: This parameter is only valid in flink 1.12+, and the state.backend.value is hashmap, optional: (jobmanager | filesystem)
    checkpoints.dir: file:///tmp/chkdir
    savepoints.dir: file:///tmp/chkdir
    checkpoints.num-retained: 1
  # restart strategy
  restart-strategy:
    value: fixed-delay  # Restart strategy [(fixed-delay|failure-rate|none) a total of 3 configurable strategies]
    fixed-delay:
      attempts: 3
      delay: 5000
    failure-rate:
      max-failures-per-interval:
      failure-rate-interval:
      delay:
  # table
  table:
    planner: blink # (blink|old|any)
    mode: streaming #(batch|streaming)

after:
flink:
  deployment:
    property:
      $internal.application.main:
      pipeline.name:
      yarn.application.queue:
      taskmanager.numberOfTaskSlots: 1
      parallelism.default: 2
      jobmanager.memory:
        flink.size:
        heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        off-heap.size:
        process.size:
      taskmanager.memory:
        flink.size:
        framework.heap.size:
        framework.off-heap.size:
        managed.size:
        process.size:
        task.heap.size:
        task.off-heap.size:
        jvm-metaspace.size:
        jvm-overhead.max:
        jvm-overhead.min:
        managed.fraction: 0.4
  checkpoints:
    enable: true
    interval: 30000
    mode: EXACTLY_ONCE
    timeout: 300000
    unaligned: true
  # state backend
  state:
    backend: # see https://ci.apache.org/projects/flink/flink-docs-release-1.12/ops/state/state_backends.html
      value: filesystem # Special note: flink1.12 optional configuration ('jobmanager', 'filesystem', 'rocksdb'), flink1.12+ optional configuration ('hashmap', 'rocksdb'),
      memory: 5242880 # Effective for jobmanager, maximum memory
      async: false    # Valid for (jobmanager, filesystem), whether to enable asynchronous
      incremental: true # Valid for rocksdb, whether to enable incremental
      # Configuration reference of rocksdb https://ci.apache.org/projects/flink/flink-docs-release-1.12/deployment/config.html#rocksdb-state-backend
      # Remove the prefix of rocksdb configuration key: state.backend
      #rocksdb.block.blocksize:
    checkpoint-storage: filesystem # optional: (jobmanager | filesystem)
    checkpoints.dir: file:///tmp/chkdir
    savepoints.dir: file:///tmp/chkdir
    checkpoints.num-retained: 1
  # restart strategy
  restart-strategy:
    value: fixed-delay  # Restart strategy [(fixed-delay|failure-rate|none) a total of 3 configurable strategies]
    fixed-delay:
      attempts: 3
      delay: 5000
    failure-rate:
      max-failures-per-interval:
      failure-rate-interval:
      delay:
  # table
  table:
    planner: blink # (blink|old|any)
    mode: streaming #(batch|streaming)
pipeline:
  auto-watermark-interval: 200ms

diff desc:
......
why change:
...

looks good, Can you describe the format of the configuration file before and after the change completely? You'd better discuss this problem in the email.

Hi @wolfboys , thanks for your good suggestions. I have raised a mail discussion here : https://lists.apache.org/thread/w0lj2zmngt82j38gzgoyztkwyox9oy3o

looks good, Can you describe the format of the configuration file before and after the change completely? You'd better discuss this problem in the email.

Hi @wolfboys , thanks for your good suggestions. I have raised a mail discussion here : https://lists.apache.org/thread/w0lj2zmngt82j38gzgoyztkwyox9oy3o
If you have any good ideas, please share them on the mailing list, thank you~

good job. 👍


AppAuthUpdate-chrisda to Master

Docs Build status updates of commit a94d8a7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/docs-conceptual/app-only-auth-powershell-v2.md
:bulb:Suggestion
View (exchange-ps)
Details

exchange/docs-conceptual/media/exo-app-only-auth-admin-consent-granted.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-app-assigned-to-role.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-app-registration-page.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-certificate-successfully-added.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-find-add-select-app-for-assignment.PNG
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-find-and-select-supported-role.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-manage-ad-view.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-new-app-registration.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-original-permissions.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-register-app.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-role-assignments-click-add-assignments.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-role-description-page-click-assignments.PNG
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-api-permissions.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-app-registrations.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-certificates-and-secrets.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-manifest.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-roles-and-administrators.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-upload-certificate.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-upload-certificate-dialog.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/app-only-auth-powershell-v2.md

Line 268, Column 4: [Suggestion-duplicate-alt-text] Alt text 'Select Add assignments on the role assignments page' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 273, Column 4: [Suggestion-duplicate-alt-text] Alt text 'Select Add assignments on the role assignments page' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit a94d8a7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/docs-conceptual/app-only-auth-powershell-v2.md
:bulb:Suggestion
View (exchange-ps)
Details

exchange/docs-conceptual/media/exo-app-only-auth-admin-consent-granted.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-app-assigned-to-role.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-app-registration-page.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-certificate-successfully-added.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-find-add-select-app-for-assignment.PNG
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-find-and-select-supported-role.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-manage-ad-view.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-new-app-registration.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-original-permissions.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-register-app.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-role-assignments-click-add-assignments.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-role-description-page-click-assignments.PNG
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-api-permissions.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-app-registrations.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-certificates-and-secrets.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-manifest.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-roles-and-administrators.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-select-upload-certificate.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/media/exo-app-only-auth-upload-certificate-dialog.png
:white_check_mark:Succeeded
View (exchange-ps)

exchange/docs-conceptual/app-only-auth-powershell-v2.md

Line 268, Column 4: [Suggestion-duplicate-alt-text] Alt text 'Select Add assignments on the role assignments page' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 273, Column 4: [Suggestion-duplicate-alt-text] Alt text 'Select Add assignments on the role assignments page' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Tests functions called N^2 times for  a "where:" block

Tests functions called N^2 times for  a "where:" block,
where N is a size of the "where:" block.
I think spock iterates twice over "where: " block. on the client side and in a container.
Example:
when:
println i
then:
i == 1
where:
i << (1..2)
Output:
13:01:14,287 INFO  stdout 1
13:01:14,350 INFO  stdout 2
13:01:14,689 INFO  stdout 1
13:01:14,778 INFO  stdout 2

Thanks for reporting this problem. In fact it's not n^2, but 2n. Still it is weird. I'm investigating this problem at the moment.

We see the same thing in our project. This is why we had to manually duplicate test code which used to be @Unrolled Spock-style tests with where blocks. We would be glad to see this fixed. :-)

I would be super glad too :) I'm on it at this very moment.

I do not have access to the code just now, being at home, but as for n^2 versus 2n, I think I remember that with @Unroll we did have the n^2 phenomenon (4 rows in a where table, 16 test executions). I even think one of my team members prepared a test case for it. I can try to dig it up. I think it happened with white-box tests only, not with black-box tests, but I am not sure right now.

I found the test:
package my.package.system

import org.jboss.arquillian.container.test.api.Deployment
import org.jboss.arquillian.container.test.api.OperateOnDeployment
import org.jboss.arquillian.spock.ArquillianSputnik
import org.jboss.shrinkwrap.api.ShrinkWrap
import org.jboss.shrinkwrap.api.spec.WebArchive
import org.junit.runner.RunWith
import spock.lang.Specification
import spock.lang.Unroll

@RunWith(ArquillianSputnik)
class ArquillianUnrollIT extends Specification {

    def setup() { /* TODO: remove dummy method when arquillian-spock-* is fixed */ }

    @Deployment(testable = false, name = "NotTestable")
    public static WebArchive createNotTestableWarArchive() {
        final WebArchive testWar = ShrinkWrap.
                create(WebArchive.class, "ArquillianUnrollITNotTestable.war").
                addClass(ArquillianUnrollIT.class)
        testWar
    }

    @Deployment(testable = true, name = "Testable")
    public static WebArchive createTestableWarArchive() {
        final WebArchive testWar = ShrinkWrap.
                create(WebArchive.class, "ArquillianUnrollITTestable.war").
                addClass(ArquillianUnrollIT.class)
        testWar
    }

    static int counterTestableUnroll
    static int counterTestable
    static int counterNotTestable
    static int counterNotTestableUnroll

    @Unroll
    @OperateOnDeployment(value = "NotTestable")
    def "Test #test NotTestable with Unroll"() {
        when:
        counterNotTestableUnroll++

        then:
        println "++ counterNotTestableUnroll : " + counterNotTestableUnroll
        test == name

        where:
        test | name
        1    | 1
        2    | 2
        3    | 3
    }

    @OperateOnDeployment(value = "NotTestable")
    def "Test #test NotTestable without Unroll"() {
        when:
        counterNotTestable++

        then:
        println "++ counterNotTestable : " + counterNotTestable
        test == name

        where:
        test | name
        1    | 1
        2    | 2
        3    | 3
    }

    @Unroll
    @OperateOnDeployment(value = "Testable")
    def "Test #test Testable with Unroll"() {
        when:
        counterTestableUnroll++

        then:
        println "++  counterTestableUnroll : " + counterTestableUnroll
        test == name

        where:
        test | name
        1    | 1
        2    | 2
        3    | 3
    }

    @OperateOnDeployment(value = "Testable")
    def "Test #test Testable without Unroll"() {
        when:
        counterTestable++

        then:
        println "++ counterTestable : " + counterTestable
        test == name

        where:
        test | name
        1    | 1
        2    | 2
        3    | 3
    }

    def cleanupSpec() {
        println "### counterTestableUnroll : " + counterTestableUnroll
        println "### counterTestable : " + counterTestable
        println "### counterNotTestable : " + counterNotTestable
        println "### counterNotTestableUnroll : " + counterNotTestableUnroll
    }

    def cleanup() {
        println "## counterTestableUnroll : " + counterTestableUnroll
        println "## counterTestable : " + counterTestable
        println "## counterNotTestable : " + counterNotTestable
        println "## counterNotTestableUnroll : " + counterNotTestableUnroll
    }

}

Here is the log output:
Running my.package.system.ArquillianUnrollIT
2015-11-23 12:07:40,738 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014900: Content added at location /opt/.jenkins/jobs/my-job/workspace/server/wildfly-8.2.1.Final/standalone/data/content/76/fc6b7751e68c67dc49d5842c469b6b92ed1c0e/content
2015-11-23 12:07:40,739 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "ArquillianUnrollITNotTestable.war" (runtime-name: "ArquillianUnrollITNotTestable.war")
2015-11-23 12:07:40,773 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /ArquillianUnrollITNotTestable
2015-11-23 12:07:40,786 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "ArquillianUnrollITNotTestable.war" (runtime-name : "ArquillianUnrollITNotTestable.war")
2015-11-23 12:07:43,461 INFO  [org.jboss.as.repository] (management-handler-thread - 3) JBAS014900: Content added at location /opt/.jenkins/jobs/my-job/workspace/server/wildfly-8.2.1.Final/standalone/data/content/18/8f49407f9139edba3a591e1f23de0d51a9bd1f/content
2015-11-23 12:07:43,462 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "ArquillianUnrollITTestable.war" (runtime-name: "ArquillianUnrollITTestable.war")
2015-11-23 12:07:44,037 WARN  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016012: Deployment deployment "ArquillianUnrollITTestable.war" contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations).
2015-11-23 12:07:44,047 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /ArquillianUnrollITTestable
2015-11-23 12:07:44,105 INFO  [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "ArquillianUnrollITTestable.war" (runtime-name : "ArquillianUnrollITTestable.war")
++ counterNotTestableUnroll : 1
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 0
## counterNotTestableUnroll : 1
++ counterNotTestableUnroll : 2
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 0
## counterNotTestableUnroll : 2
++ counterNotTestableUnroll : 3
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 0
## counterNotTestableUnroll : 3
++ counterNotTestable : 1
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 1
## counterNotTestableUnroll : 3
++ counterNotTestable : 2
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 2
## counterNotTestableUnroll : 3
++ counterNotTestable : 3
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
2015-11-23 12:07:44,286 INFO  [org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer] (default task-61) BeanManager not found.
2015-11-23 12:07:44,622 INFO  [stdout] (default task-61) ++  counterTestableUnroll : 1
2015-11-23 12:07:44,671 INFO  [stdout] (default task-61) ## counterTestableUnroll : 1
2015-11-23 12:07:44,672 INFO  [stdout] (default task-61) ## counterTestable : 0
2015-11-23 12:07:44,672 INFO  [stdout] (default task-61) ## counterNotTestable : 0
2015-11-23 12:07:44,672 INFO  [stdout] (default task-61) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,674 INFO  [stdout] (default task-61) ++  counterTestableUnroll : 2
2015-11-23 12:07:44,675 INFO  [stdout] (default task-61) ## counterTestableUnroll : 2
2015-11-23 12:07:44,675 INFO  [stdout] (default task-61) ## counterTestable : 0
2015-11-23 12:07:44,675 INFO  [stdout] (default task-61) ## counterNotTestable : 0
2015-11-23 12:07:44,675 INFO  [stdout] (default task-61) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,677 INFO  [stdout] (default task-61) ++  counterTestableUnroll : 3
2015-11-23 12:07:44,678 INFO  [stdout] (default task-61) ## counterTestableUnroll : 3
2015-11-23 12:07:44,678 INFO  [stdout] (default task-61) ## counterTestable : 0
2015-11-23 12:07:44,678 INFO  [stdout] (default task-61) ## counterNotTestable : 0
2015-11-23 12:07:44,678 INFO  [stdout] (default task-61) ## counterNotTestableUnroll : 0
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
2015-11-23 12:07:44,697 INFO  [org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer] (default task-21) BeanManager not found.
2015-11-23 12:07:44,701 INFO  [stdout] (default task-21) ++  counterTestableUnroll : 4
2015-11-23 12:07:44,702 INFO  [stdout] (default task-21) ## counterTestableUnroll : 4
2015-11-23 12:07:44,702 INFO  [stdout] (default task-21) ## counterTestable : 0
2015-11-23 12:07:44,702 INFO  [stdout] (default task-21) ## counterNotTestable : 0
2015-11-23 12:07:44,703 INFO  [stdout] (default task-21) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,705 INFO  [stdout] (default task-21) ++  counterTestableUnroll : 5
2015-11-23 12:07:44,705 INFO  [stdout] (default task-21) ## counterTestableUnroll : 5
2015-11-23 12:07:44,706 INFO  [stdout] (default task-21) ## counterTestable : 0
2015-11-23 12:07:44,706 INFO  [stdout] (default task-21) ## counterNotTestable : 0
2015-11-23 12:07:44,706 INFO  [stdout] (default task-21) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,708 INFO  [stdout] (default task-21) ++  counterTestableUnroll : 6
2015-11-23 12:07:44,709 INFO  [stdout] (default task-21) ## counterTestableUnroll : 6
2015-11-23 12:07:44,709 INFO  [stdout] (default task-21) ## counterTestable : 0
2015-11-23 12:07:44,709 INFO  [stdout] (default task-21) ## counterNotTestable : 0
2015-11-23 12:07:44,709 INFO  [stdout] (default task-21) ## counterNotTestableUnroll : 0
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
2015-11-23 12:07:44,719 INFO  [org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer] (default task-38) BeanManager not found.
2015-11-23 12:07:44,722 INFO  [stdout] (default task-38) ++  counterTestableUnroll : 7
2015-11-23 12:07:44,723 INFO  [stdout] (default task-38) ## counterTestableUnroll : 7
2015-11-23 12:07:44,723 INFO  [stdout] (default task-38) ## counterTestable : 0
2015-11-23 12:07:44,723 INFO  [stdout] (default task-38) ## counterNotTestable : 0
2015-11-23 12:07:44,723 INFO  [stdout] (default task-38) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,726 INFO  [stdout] (default task-38) ++  counterTestableUnroll : 8
2015-11-23 12:07:44,726 INFO  [stdout] (default task-38) ## counterTestableUnroll : 8
2015-11-23 12:07:44,727 INFO  [stdout] (default task-38) ## counterTestable : 0
2015-11-23 12:07:44,727 INFO  [stdout] (default task-38) ## counterNotTestable : 0
2015-11-23 12:07:44,727 INFO  [stdout] (default task-38) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,728 INFO  [stdout] (default task-38) ++  counterTestableUnroll : 9
2015-11-23 12:07:44,729 INFO  [stdout] (default task-38) ## counterTestableUnroll : 9
2015-11-23 12:07:44,729 INFO  [stdout] (default task-38) ## counterTestable : 0
2015-11-23 12:07:44,729 INFO  [stdout] (default task-38) ## counterNotTestable : 0
2015-11-23 12:07:44,729 INFO  [stdout] (default task-38) ## counterNotTestableUnroll : 0
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
2015-11-23 12:07:44,740 INFO  [org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer] (default task-7) BeanManager not found.
2015-11-23 12:07:44,744 INFO  [stdout] (default task-7) ++ counterTestable : 1
2015-11-23 12:07:44,744 INFO  [stdout] (default task-7) ## counterTestableUnroll : 9
2015-11-23 12:07:44,744 INFO  [stdout] (default task-7) ## counterTestable : 1
2015-11-23 12:07:44,744 INFO  [stdout] (default task-7) ## counterNotTestable : 0
2015-11-23 12:07:44,744 INFO  [stdout] (default task-7) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,746 INFO  [stdout] (default task-7) ++ counterTestable : 2
2015-11-23 12:07:44,746 INFO  [stdout] (default task-7) ## counterTestableUnroll : 9
2015-11-23 12:07:44,747 INFO  [stdout] (default task-7) ## counterTestable : 2
2015-11-23 12:07:44,747 INFO  [stdout] (default task-7) ## counterNotTestable : 0
2015-11-23 12:07:44,747 INFO  [stdout] (default task-7) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,749 INFO  [stdout] (default task-7) ++ counterTestable : 3
2015-11-23 12:07:44,749 INFO  [stdout] (default task-7) ## counterTestableUnroll : 9
2015-11-23 12:07:44,750 INFO  [stdout] (default task-7) ## counterTestable : 3
2015-11-23 12:07:44,750 INFO  [stdout] (default task-7) ## counterNotTestable : 0
2015-11-23 12:07:44,750 INFO  [stdout] (default task-7) ## counterNotTestableUnroll : 0
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
2015-11-23 12:07:44,760 INFO  [org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer] (default task-64) BeanManager not found.
2015-11-23 12:07:44,762 INFO  [stdout] (default task-64) ++ counterTestable : 4
2015-11-23 12:07:44,763 INFO  [stdout] (default task-64) ## counterTestableUnroll : 9
2015-11-23 12:07:44,763 INFO  [stdout] (default task-64) ## counterTestable : 4
2015-11-23 12:07:44,763 INFO  [stdout] (default task-64) ## counterNotTestable : 0
2015-11-23 12:07:44,763 INFO  [stdout] (default task-64) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,764 INFO  [stdout] (default task-64) ++ counterTestable : 5
2015-11-23 12:07:44,765 INFO  [stdout] (default task-64) ## counterTestableUnroll : 9
2015-11-23 12:07:44,765 INFO  [stdout] (default task-64) ## counterTestable : 5
2015-11-23 12:07:44,765 INFO  [stdout] (default task-64) ## counterNotTestable : 0
2015-11-23 12:07:44,765 INFO  [stdout] (default task-64) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,768 INFO  [stdout] (default task-64) ++ counterTestable : 6
2015-11-23 12:07:44,769 INFO  [stdout] (default task-64) ## counterTestableUnroll : 9
2015-11-23 12:07:44,769 INFO  [stdout] (default task-64) ## counterTestable : 6
2015-11-23 12:07:44,769 INFO  [stdout] (default task-64) ## counterNotTestable : 0
2015-11-23 12:07:44,769 INFO  [stdout] (default task-64) ## counterNotTestableUnroll : 0
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
2015-11-23 12:07:44,778 INFO  [org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer] (default task-32) BeanManager not found.
2015-11-23 12:07:44,783 INFO  [stdout] (default task-32) ++ counterTestable : 7
2015-11-23 12:07:44,785 INFO  [stdout] (default task-32) ## counterTestableUnroll : 9
2015-11-23 12:07:44,785 INFO  [stdout] (default task-32) ## counterTestable : 7
2015-11-23 12:07:44,785 INFO  [stdout] (default task-32) ## counterNotTestable : 0
2015-11-23 12:07:44,785 INFO  [stdout] (default task-32) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,787 INFO  [stdout] (default task-32) ++ counterTestable : 8
2015-11-23 12:07:44,787 INFO  [stdout] (default task-32) ## counterTestableUnroll : 9
2015-11-23 12:07:44,787 INFO  [stdout] (default task-32) ## counterTestable : 8
2015-11-23 12:07:44,787 INFO  [stdout] (default task-32) ## counterNotTestable : 0
2015-11-23 12:07:44,788 INFO  [stdout] (default task-32) ## counterNotTestableUnroll : 0
2015-11-23 12:07:44,789 INFO  [stdout] (default task-32) ++ counterTestable : 9
2015-11-23 12:07:44,789 INFO  [stdout] (default task-32) ## counterTestableUnroll : 9
2015-11-23 12:07:44,789 INFO  [stdout] (default task-32) ## counterTestable : 9
2015-11-23 12:07:44,790 INFO  [stdout] (default task-32) ## counterNotTestable : 0
2015-11-23 12:07:44,790 INFO  [stdout] (default task-32) ## counterNotTestableUnroll : 0
## counterTestableUnroll : 0
## counterTestable : 0
## counterNotTestable : 3
## counterNotTestableUnroll : 3
### counterTestableUnroll : 0
### counterTestable : 0
### counterNotTestable : 3
### counterNotTestableUnroll : 3
2015-11-23 12:07:44,796 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017535: Unregistered web context: /ArquillianUnrollITNotTestable
2015-11-23 12:07:44,808 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment ArquillianUnrollITNotTestable.war (runtime-name: ArquillianUnrollITNotTestable.war) in 12ms
2015-11-23 12:07:44,821 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014901: Content removed from location /opt/.jenkins/jobs/my-job/workspace/server/wildfly-8.2.1.Final/standalone/data/content/76/fc6b7751e68c67dc49d5842c469b6b92ed1c0e/content
2015-11-23 12:07:44,821 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018558: Undeployed "ArquillianUnrollITNotTestable.war" (runtime-name: "ArquillianUnrollITNotTestable.war")
2015-11-23 12:07:44,825 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017535: Unregistered web context: /ArquillianUnrollITTestable
2015-11-23 12:07:44,840 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment ArquillianUnrollITTestable.war (runtime-name: ArquillianUnrollITTestable.war) in 15ms
2015-11-23 12:07:44,858 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014901: Content removed from location /opt/.jenkins/jobs/my-job/workspace/server/wildfly-8.2.1.Final/standalone/data/content/18/8f49407f9139edba3a591e1f23de0d51a9bd1f/content
2015-11-23 12:07:44,859 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018558: Undeployed "ArquillianUnrollITTestable.war" (runtime-name: "ArquillianUnrollITTestable.war")
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.137 sec - in my.package.system.ArquillianUnrollIT

Anything new here? On the Spock 1.0 ticket you wrote 3 weeks ago:

I have some more insights about n^2 issue. Will try to come up with reasonable solution in the next few days. At this point we only managed to hack something with @aslakknutsen which shouldn't be shown in the open ;)

Thank you. :-)

Please @bartoszmajsak, find someone who can fix it because you are obviously too busy. We have been using workarounds for more than a year now, even for OSS this is unacceptable. I do not say that you need to fix it, I accept that you are busy. But if this project is still maintained - I think Spock and Arquillian is not such an exotic combination anymore - someone should solve these severe problems. A colleague of mine just discovered another one with Spock 1.0, he will create a ticket soon.

Yes, in fact I am  quite busy with my daily work, which is a lame excuse, but that's reality. The most tricky part, as you can imagine, is to find time during the night shifts (as it's my open source project, not a professional one), especially for something not as trivial as this problem.
I really appreciate your patience and your contributions. I will sort it out.

Is there any way you can enable me, not knowing anything about Arquillian or the Spock runner, to (help you) fix the problem?

Hi all.
We are experiencing same issue with our test suite. If there are any suggesstions/hacks/code samples - I would like to see them.
Thanks!

The problem boils down to arquillian-core, as we were able to spot the same problem for TestNG. There is no workaround I'm aware of for this moment, but I am working on this problem.

Fixed on the spock_1.0 branch.
Before the release (which will happen this week, as I'm fully working on Arquillian now) I need to fix one more thing which I've just discovered. This however shouldn't take long :)

I built the current snapshot and now the testable = true test cases run correctly, with or without @Unroll. So far, so good. But now the testable = false cases do not run anymore:
java.lang.IllegalArgumentException: wrong number of arguments

	at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:153)
	at org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:84)
	at org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:88)
	at org.jboss.arquillian.spock.ArquillianInterceptor$1.invoke(ArquillianInterceptor.java:108)
	at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
	at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:136)
	at org.jboss.arquillian.spock.ArquillianInterceptor.interceptFeatureMethod(ArquillianInterceptor.java:91)
	at org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:40)
	at org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:87)
	at org.jboss.arquillian.spock.ArquillianSputnik.run(ArquillianSputnik.java:135)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Any ideas?
P.S.: By removing the parent and relative path declarations in your examples project, you broke the build again. I had to re-add it.

I think I've seen very similar problem while working on follow-up issue yesterday, so might be that it's already "fixed" with my ongoing work. I have opened issue for it anyway #30.

P.S.: By removing the parent and relative path declarations in your examples project, you broke the build again. I had to re-add it.

Which build? :) I don't think I would push anything without running the build but I believe it's causing you problems in your local environment. Which version of Maven are you using? Never had problem with it. Also, it's now self-contained module so there is no need for inheriting anything from the parent.
As for the failing test - is there anything else you are using which might be good for adding to test suite for the runner itself? (drone, rest tests et al).

Sorry, Bartosz, my POM was invalid after the merge with my local changes in the <version> tag (we have to build RC versions instead of snapshots in order to enable us to use Maven Release plugin every other week when building our sprint release. The merge killed the version tag, so the build failed and I re-added the parent declaration. Adding the version instead also fixes the build problem. My bad. #-) I use Maven 3.3.9, BTW.

As for the failing test - is there anything else you are using which might be good for adding to test suite for the runner itself? (drone, rest tests et al).

I do not understand the question. Can you elaborate, please? Looking at the stacktrace, I see that some magic is done via reflection there. So maybe Spock wants to call some functionality which is not present or has changed its signature due to runtime dependencies you changed in the Spock runner while our build still dependency-manages it to another version which used to work before. Any ideas what it might be?

It's very basic issue I believe (at least from what is manifested in the stacktrace).
What I wanted to know from you is how your 'as client' test look like. Having some more real-life like test suite would help harden the extension. But I can easily think about rest-assured or drone tests. Will need to give it more love anyway I believe, as we should really get rid off examples in favor of more comprehensive functional test suite. Having said that - contributions to it would be more than awesome :) Even now when it's all falling apart.

The test code I posted above was basically created by one of my developers and explicitly tries to avoid polluting the test by anything fancy. We did want to isolate the problem as such. By the way, I refactored the test a bit so as to really make it fail and not just print something to the console:
import org.jboss.arquillian.container.test.api.Deployment
import org.jboss.arquillian.container.test.api.OperateOnDeployment
import org.jboss.arquillian.container.test.api.RunAsClient
import org.jboss.arquillian.spock.ArquillianSputnik
import org.jboss.shrinkwrap.api.ShrinkWrap
import org.jboss.shrinkwrap.api.spec.WebArchive
import org.jboss.shrinkwrap.resolver.api.maven.Maven
import org.jboss.shrinkwrap.resolver.api.maven.PomEquippedResolveStage
import org.junit.runner.RunWith
import spock.lang.Specification
import spock.lang.Unroll

@RunWith(ArquillianSputnik)
class ArquillianUnrollIT extends Specification {

  @Deployment(testable = false, name = "NotTestable")
  public static WebArchive createNotTestableWarArchive() {
    Class<?> thisClass = new Object() {}.class.enclosingClass
    String thisClassName = thisClass.simpleName

    WebArchive testWar = ShrinkWrap
      .create(WebArchive.class, thisClassName + "NotTestable.war")
      .addClass(thisClass)
    println testWar.toString(true)
    testWar
  }

  @Deployment(testable = true, name = "Testable")
  public static WebArchive createTestableWarArchive() {
    Class<?> thisClass = new Object() {}.class.enclosingClass
    String thisClassName = thisClass.simpleName

    WebArchive testWar = ShrinkWrap
      .create(WebArchive.class, thisClassName + "Testable.war")
      .addClass(thisClass)
    println testWar.toString(true)
    testWar
  }

  static int zaehlerNotTestable
  static int zaehlerNotTestableUnroll
  static int zaehlerTestable
  static int zaehlerTestableUnroll

  @Unroll
  @OperateOnDeployment(value = "NotTestable")
  def "Test #test NotTestable with Unroll"() {
    given:
    println "++zaehlerNotTestableUnroll = $zaehlerNotTestableUnroll"
    expect:
    ++zaehlerNotTestableUnroll == test
    where:
    test << [1, 2, 3]
  }

  @OperateOnDeployment(value = "NotTestable")
  def "Test #test NotTestable without Unroll"() {
    given:
    println "++zaehlerNotTestable = $zaehlerNotTestable"
    expect:
    ++zaehlerNotTestable == test
    where:
    test << [1, 2, 3]
  }

  @Unroll
  @OperateOnDeployment(value = "Testable")
  def "Test #test Testable with Unroll"() {
    given:
    println "++zaehlerTestableUnroll = $zaehlerTestableUnroll"
    expect:
    ++zaehlerTestableUnroll == test
    where:
    test << [1, 2, 3]
  }

  @OperateOnDeployment(value = "Testable")
  def "Test #test Testable without Unroll"() {
    given:
    println "++zaehlerTestable = $zaehlerTestable"
    expect:
    ++zaehlerTestable == test
    where:
    test << [1, 2, 3]
  }

  @RunAsClient
  def cleanup() {
    printCounters "cleanup"
  }

  @RunAsClient
  def cleanupSpec() {
    printCounters "cleanupSpec"
  }

  @RunAsClient
  def printCounters(String heading) {
    println heading
    println "  zaehlerNotTestable       = $zaehlerNotTestable"
    println "  zaehlerNotTestableUnroll = $zaehlerNotTestableUnroll"
    println "  zaehlerTestable          = $zaehlerTestable"
    println "  zaehlerTestableUnroll    = $zaehlerTestableUnroll"
  }

}

I even factored out our own Spock specification base class for you so as to help you run the test independent of us. It still fails.

Thanks a lot. I'm on it.

Still on it?

Sure, just scattered around. Need a bit more time.
On Wed, Jul 27, 2016 at 11:38 AM, Alexander Kriegisch <
<EMAIL_ADDRESS>wrote:

Still on it?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/arquillian/arquillian-testrunner-spock/issues/17#issuecomment-235537107,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAr7AKhTsvJwhDQwcVFmAG9eSlMPrFqTks5qZyclgaJpZM4DYTh3
.

Ping. This issue is closed since July, but the problem is not solved. Would you mind to either reopen or fix it? Thank you.

It seems it was autoclosed  when pushing to non master branch with commit containing Fixes #.... Sorry for the confusion. Anyway - it's now fixed in master 334f5e8228fa1ba29b55ad6f1890cf5b25d42b4a. Cheers!

1.0.0.CR1 has been released. Hopefully arrives in Maven Central tonight.

I have been out of this project for years and no longer have access to a pom.xml enabling me to run this test. I know next to zero about Arquillian and just tried to add a few dependencies to my existing Spock sample project, but something is always missing. Maybe I am using the wrong container (Weld Embedded) or something is wrong in my arquillian.xml. The tutorials I found are not helpful, they are full of snippets but no coherent project setups. Can you point me to a resource, please? I still would like to give feedback.


[buildmgr] IAR single precision FPU error

Reported by @RobertRostohar.
When the Cortex-M55 device attribute Dfpu is set to SP_FPU the IAR build leads to an error due to this mapping introduced in https://github.com/Open-CMSIS-Pack/devtools/pull/798:
set(FPU_FLAGS    "none" "ERROR" "VFPv5_d16" "VFPv5_d16")
It seems it works with VFPv5_sp.
@jlonnberg @mario-pi Can you please advise?
And what about Cortex-M85? Thanks

Hello! I am currently looking into this from @IARSystems side. What behavior would be expected?
The hardware is double or nothing.
an in our IDE/Debugger that's what we support.
If VFPv5_sp works in the compiler would be OK, but that support could break since the rest of our software don't support it right now.
If we would point it to VFPv5_d16 would that break someone's use case or be unexpected?

See pull request:
Since hardware is double or nothing:

Selecting SP_FPU should map onto DP hardware on Cortex-M55 and M85.
Did not change the behavior for A-series processors. Here ARMCLANG maps SP_FPU -> NO_FPU which hardly seems correct, so throwing error here does not seem too bad.
R52 and R52+ Does not support SP_FPU yet, it's a known issue EWARM-9425

Fixed in https://github.com/Open-CMSIS-Pack/devtools/pull/1180


Unittest: swap

Current coverage is 34.22% (diff: 100%)

No coverage report found for master at f5928ad.

Powered by Codecov. Last update f5928ad...1ec9882


fix: removed build step

fix: removed build step

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


jspdf function fromHTML

don't have function fromHTML ?
^_^

doc.fromHTML is not a function

doc.fromHTML does not work. Anyone can help?
I include all js files under "plugins" folder. But nothing happen.


Single column read failed

Describe the bug
CREATE TABLE test (
k1 tinyint(4) NOT NULL COMMENT "",
k2 smallint(6) NOT NULL COMMENT "",
k3 int(11) NOT NULL COMMENT "",
k4 bigint(20) NOT NULL COMMENT "",
k5 decimal(9, 3) NOT NULL COMMENT "",
k6 char(5) NOT NULL COMMENT "",
k10 date NOT NULL COMMENT "",
k11 datetime NOT NULL COMMENT "",
k7 varchar(20) NOT NULL COMMENT "",
k8 double MAX NOT NULL COMMENT "",
k9 float SUM NOT NULL COMMENT ""
) ENGINE=OLAP
AGGREGATE KEY(k1, k2, k3, k4, k5, k6, k10, k11, k7)
COMMENT "OLAP"
PARTITION BY RANGE(k1)
(PARTITION p1 VALUES [("-128"), ("-64")),
PARTITION p2 VALUES [("-64"), ("0")),
PARTITION p3 VALUES [("0"), ("64")),
PARTITION p4 VALUES [("64"), (MAXVALUE)))
DISTRIBUTED BY HASH(k1) BUCKETS 1
PROPERTIES (
"storage_type" = "COLUMN",
"replication_num" = "1"
);
load several data into test.
query:
select k1 from  test;
but the result is empty.

The reason is k1 is tinyint type, and the query will be split by ScanKey,[-128, -128],[-127,-127]...[127,127].
For [14, 14], it will be converted to (14, 14] in BE reader.cpp and the lookup_oridinal will return invalid row range[14,14) because it found wrong lower bound. I dive into the reason and found that when lookup lower_bound, encode_key_with_padding will encode key with maximum of null field.


I need load old data by scroll up

When I use to prepend some old data to the list
list.unshift('old msg')
the current position is change. How to keep it at old position?

This is a little tricky. You could try using a combination of onRowsRendered (to monitor which row the user has recently scrolled to) and scrollToIndex (to ensure that that row is still visible after you've unshifted. But in general I don't try to support this because a change in rowsCount could mean entirely new data.

I'll leave this issue open for discussion for now. Let me know if that approach has any promising results.

This will bad on UX, it's not smooth
I recommend we need to have a config to display As A Chat or Message Box (displayBottomUpwards mode) to get the old msg.

Fair enough. But realistically I don't think I'll have the bandwidth to get to this any time too soon.
I'll leave the ticket open, tagged as "help wanted", in case anyone else feels more inclined to implement this though. :)

Hi how about we have a config to prepend on the DOM like jQuery prepend a div?
Check this demo:
http://musician-peggy-71735.bitballoon.com/

I don't see how that would work with a library like react-virtualized. Allowing external code to modify the DOM in any way would make the virtualization too fragile.

Closing for now due to lack of a response and/or a clear path forward.


Non-horizontal form-group using fieldset renders legend font-size different than label

When using a <fieldset> as the root element of a non-horizontal .form-group (i.e. no .form-row or .row), the <legend> element renders differently than a  (specifically the font-size being set to 1.5rem via reboot)

  Label
  <input type="text" class="form-control">

<fieldset class="form-group">
  <legend>Foobar</legend>

      <input id="check1" class="form-check-input" type="checkbox" name="checks" value="A">
      Radio A

      <input id="check2" class="form-check-input" type="checkbox" name="checks" value="B">
      Radio B

</fieldset>

Renders:

Manually adding a style font-size: inherit; or font-size:  1rem; to the <legend> appears to fix this issue, but it would be preferential not to have to add the additional styling.
Proposed solution (to mimic  default) in /scss/_forms.scss before the .col-form-label rule definition:
.form-group legend {
  font-size: inherit;
}

Which renders the following (using the same above HTML):

Every <legend> has that font-size though, it's not a matter of being in a particular form layout. See https://codepen.io/anon/pen/BvKwNV for an example. I don't think this is something we'd change.
Thoughts @MartijnCuppens or @andresgalante?

When creating a non-horizontal form composed of multiple inputs and, say, a group of radios or checkboxes, the checkboxes and radios should be placed in a fieldset for proper semantic markup (and for screen readers).  Labels cant be associated with fieldsets, so one uses a legend.
The default behaviour breaks the cadence of the form "labels" as the <legend> pops out visually at 50% larger font size than a .

Oh I agree it should be improved, but overriding like that could cause issues for folks who've built around this existing behavior.

Since it is suggested it can be used on fieldsets, the form-group component should probably treat labels and legends the same stylistically.

Eh, just because a particular HTML element can have a class doesn't mean something nested within that element should change. Again, I agree there should be some control here, just not in the solution offered here thus far.
In all likelihood, we should move from general label { ... } rulesets to .form-label { ... } to help avoid issues like this as we could just apply that class. Perhaps for now v4 should have label, .form-label { ... } or something akin?

This is already merged https://github.com/twbs/bootstrap/pull/28450 but would a follow-up PR that includes the above decision make sense @mdo ?

@tmorehouse looks like a $legend-font-size variable was added to allow theming the default <legend> element: https://github.com/twbs/bootstrap/commit/855d763ae57fd1dea1c26af1f197d3d84002dc55#diff-d8ee409a461718bfb6240710c8c73382R345
Can this be backported to v4?

As the v4 reached the end of support is this still a thing ? Should Bootstrap default to $legend-font-size: null/inherit/$form-label-font-size !default; in v5? Imo, since it is a value to change it shouldn't be breaking for folks so it might be a thing to think about.

Going to close this out as stale. If there's still desired effort here, we could see about a new class or something for the legend, but that's probably covered already by our font-size utilities.


Blockchainafrica - Week - 4

📝 Weekly Report For TNB Projects
Basic Details
🧪 Name of the Project: [Blockchainafrica]
📅 Report Date: [03-12-2021]
📜 Team Work Report
✅ Accomplishments this week

[Performed SEO analysis and improved on it]
[Had a meeting with hired team members on ways to promote TNBC with blockchainafrica]
Set up a page for TNBC on Blockchainafrica
Set up a youtube channel for interviews

🚩 Goals for next week

Set up ads page for receiving TNBC
Write contents on TNBC 101 on blockchainafrica page

🔭 Long term goals

Write articles on crypto, startup projects like TNBC and blockchain.
Improve on all the social media channels.

❗❓ Concerns
[ANSWER]
👨💻👩💻 Team Members Contribution Details

[ ] Name: Pere123
GitHub url:
Account number: 6f67a259361dab800edb1ee61a7ab921250aa1c2b05681f3a099f7b6d290f3bc
Task: Blockchainafrica Writer
Proof of work:  https://blockchainafrica.io https://docs.google.com/document/d/1sbpCbWUulT8F5D13ek6PdBuA4mWGkOKQ1Bnz4qngpkI/edit?usp=sharing

[x] Name: Francisca
GitHub url: @francaolisa
Account number: 07207e9881c3c5d28fbd79802f09d0a10e7a636107ca5802ab4af6324e0915a5
Task: SEO Analyst and Project manager
Proof of work:  https://blockchainafrica.io

[ ] Name: Nick
GitHub url: Niikky122
Account number:<PHONE_NUMBER>2b93fc5a031062a95866fc3d9dbf2ce6e6c0786d691cb5c6666ea8
Task: Social media manager (Twitter)
Proof of work:  https://twitter.com/blockchainaf

[ ] Name: Mickeal
GitHub url:
Account number: 83b78435dbf090fc90e51d6de67e958fdd1a837c7a505ac45a1fde7462acfd3a
Task: Social Media Manager (Facebook )
Proof of work:  https://facebook.com/blockchainaf

🖹 Any Additional Notes (Optional)
[Your Notes]

Need to Fix:

Only @Francaolisa is in the team of this project. Rest are unknown. Please make a PR with team details HERE. LinkedIn is important either add to the mentioned file or send me on slack.

https://facebook.com/blockchainaf has its last post on 24 Feb 2019

Ya my focus is increasing page Facebook and Twitter at the moment after meeting target next week then we can start posting that's why am still looking for a graphic designer and video editor. If you have anyone pls refer to me, For now, we are setting up things, so from next week, you will be seeing updates that's if am able to get a good graphic designer.
So the work done is increasing Facebook page likes, we won't post for now


switch to sqlalchemy 1.4

Supporting custom functions (#8 #34) is difficult with asyncpg because it doesn't support named parameters, making it hard to forward query parameters to the custom function.  Sqlalchemy 1.4 supports asyncio (via asyncpg) but also has a DBAPI integration which allows for named parameters.

Expanding my thoughts a little.
Custom functions are a really important thing to get right.  pg_tileserv/martin both provide a nice interface where functions accept params of x y z, and **query_params.  This provides a lot of flexibility and is trivial to implement with anything that supports PEP 249.  Without a PEP249 implementation (ex. asyncpg) it becomes not so trivial because we need to be concerned with ordering of the query params.
The downside of course is that timvt will be very slightly slower.  But I think as long as we use sqlalchemy core and stick to native SQL the performance loss should be minimal, as we only care to take advantage of the named parameters/tokenization provided by sqlalchemy.
When I think of the tradeoffs between supporting more complex custom functions and performance I lean towards the former.

my experience with PG is somehow inexistant so I'll defer to @bitner and maybe @sharkinsspatial ;-)

Yeah, named parameters are definitely great. I don't think we want to rely on the ORM functionality of SQLAlchemy since we really want tight control of our SQL here. A lighter weight option that uses asyncpg and provides named parameter support is https://github.com/samuelcolvin/buildpg (build by Samuel Colvin of pydantic fame). I've been using that library quite a bit just for the named parameter support.

closing in favor of #37


When re-creating a new session, need to re-sample

If a user goes idle and we need to re-create a new session, we want to re-sample. Right now, once sampled, it will always be sampled.
There are other stateful items we will need to consider when re-sampling, e.g. this.waitForError.

For now, we're going to leave it as-is meaning that a sampled session will remain sampled until the page session ends


Checksequenceverify from genesis

This is relatively straightforward:

Remove SCRIPT_VERIFY_CHECKSEQUENCEVERIFY.
Always enforce OP_NOP3 to be OP_CHECKSEQUENCENCEVERIFY.
Fix script tests.
Remove CHECKSEQUENCENCEVERIFY script flag from tests.
Fix test/txvalidationcache_tests.cpp.
Fix activation tests, now check previously valid txs are invalid even before the upgrade.

Last commit looks good.


[BUG]ImportError: DLL load failed

loading error
I've installed the module on Win11 by cloning it through pip, the installation was done successfully but  I can't load the module because of Import Error: DLL load failed.

Can you show how you installed the repo?
FYI this is how we install it in our CI
https://github.com/pytorch/rl/blob/aad668410b345032cf3571ac23708a797585604a/.circleci/unittest/windows_optdepts/scripts/install.sh

In the attached photo I tried again, but unfortunately got the same error after successfully installed the package.
I tried installing it the same way on a windows 10 system, and it worked without a problem.
could it be because of installing it in the base mambaforge environment?
Although it worked this way on the windows 10 system.

@osalpekar Do we have a windows 11 CI? I guess ours is windows 10

@vmoens Our CI uses Windows 10. Looks like the windows wheels are built on Windows Server 2022. We don't have Windows 11 in the CI atm.

So as I understand it we support windows 10 but there is no real plan on supporting 11 yet :/
I wish I could help but since I do not have access to a windows 11 machine there is very little I can do

Thanks for your time anyways, I'll  try a possible bypass by installing the package on WSL.


Crashing when closing apps

Note: I'm using the Hyprland-nvidia-git package from the AUR
Steps to reproduce: Close any window (tested with alacritty, firefox and mpv)
Expected outcome: Closing the window
Noted outcome: hyprland crash and logout to SDDM
I could not adquire the hyprland log as the crash logs me out.
Crash reports:
hyprlandCrashReport8965.txt
hyprlandCrashReport4982.txt
hyprlandCrashReport2382.txt
hyprlandCrashReport56195.txt
hyprlandCrashReport54019.txt
hyprlandCrashReport50862.txt
hyprlandCrashReport46983.txt
hyprlandCrashReport2432.txt
My config:
hyprland.conf.txt
All of the relevant coredumps apear as "missing" on coredumpctl
The issue started after updating hyprland yesterday, updating hyprland today did not fix the issue, returning to a snapshot from before has fixed the issue.

This is also happening to me, but only happens after a few minutes of using hyprland. I am able to close apps right after launch.
@patrulhasirius Do you know what commit you reverted to?

I've been having the same problem with rofi-wayland and sometimes alacritty and reverting to #5bfd5a9 also fixed it for me

Same issue here, also with rofi-wayland

#2404


Websocket error in notebook

The Node-RED flow is deployed and connection nodes shows 'connected'.  However, when I ran the notebook in Watson Studio, the Websocket (last line) reports:
start_websocket_listener()
--- request header ---
GET /ws/orchestrate HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: nao-cognitive-robot-flow.us-south.cf.appdomain.cloud
Origin: http://nao-cognitive-robot-flow.us-south.cf.appdomain.cloud
Sec-WebSocket-Key: otyk73u0X4BJDO5jCPto0w==
Sec-WebSocket-Version: 13

--- response header ---
HTTP/1.1 101 Switching Protocols
Connection: Upgrade
Sec-WebSocket-Accept: lmUag2UMAEb9gr6U9lP8i0RAT4U=
Date: Thu, 28 Feb 2019 20:02:03 GMT
X-Global-Transaction-ID: 126384467
Upgrade: websocket
error from callback <function on_open at 0x7fb1923aa950>: name 'thread' is not defined
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_app.py", line 345, in _callback
callback(self, *args)
File "", line 66, in on_open
thread.start_new_thread(run, ())
send: b'\x81\x8e\xb9Y\x89B\xfd\n\xd1b\xf50\xfa6\xdc7\xa9\x07\xd7='
error from callback <function on_close at 0x7fb1923aaea0>: socket is already closed.
Connection is already closed.
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_app.py", line 345, in _callback
callback(self, *args)
File "", line 57, in on_close
ws.send("DSX Listen End")
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_app.py", line 153, in send
if not self.sock or self.sock.send(data, opcode) == 0:
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_core.py", line 253, in send
return self.send_frame(frame)
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_core.py", line 278, in send_frame
l = self._send(data)
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_core.py", line 448, in _send
return send(self.sock, data)
File "/opt/conda/envs/DSX-Python35/lib/python3.5/site-packages/websocket/_socket.py", line 132, in send
raise WebSocketConnectionClosedException("socket is already closed.")

I get the same error. How to handle it? Where do I need to change to "_thread" ?
Please help me @hayday100
I need this for my Bachelor Thesis. I would be so thankful!

Did you find a fix to it? Where to change "_thread" at?


Papercut

Vendor Name
PaperCut
Product Name
PaperCut NG and PaperCut MF
Version(s) affected:
21.0 and later
Status:
Affected
Update Available:
Yes
Notes:
Versions 21.0 and later are impacted. Versions 20 and earlier are NOT impacted by this.
Workaround manual steps available in reference.
Upgrade to PaperCut NG/MF version 21.2.3 Now Available to resolve.
References:
Vendor response page: https://www.papercut.com/support/known-issues/?id=PO-684#ng
Last Updated:
12/16/2021

Issue addressed by PR #243

@Darkfox7133 thank you for the submission.


Repo owners profile picture is too beautiful!

Can't focus on your middleware proto/example, I am overwhelmed with stunning beauty!

I'm truly sorry, but the repo owner's profile picture is immutable 🔒
Profile pic is implemented as read-only:

No write permissions available
Strictly enforced access controls
Beauty level exceeds Int32.MaxValue


No camera supports on Windows in the packaged version

The previous windows version were having videocapture extension to support Camera on Windows. This is not the case anymore :)
I guess it might need to be added in https://github.com/kivy/kivy-sdk-packager/blob/master/win/kivy_win_sdk.py, but unsure where.
Latest version: http://videocapture.sourceforge.net/VideoCapture-0.9-5.zip

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23461989-no-camera-supports-on-windows-in-the-packaged-version?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).

"How you install it
To make use of VideoCapture just copy the files from the 'PythonXX' folder to the corresponding folders of your 'PythonXX' installation, where XX must match with the version of Python you have installed on your system."
There is no videocapture on pypi, and cannot be installed via pip.

We should also document the dependencies needed for this widget on every platform, there's no mention of them.
http://kivy.org/docs/api-kivy.uix.camera.html

VideoCapture only works for py2. Since we don't make a dist anymore we don't need to dist this directly. We should just mention in the docs how to install it. Also, I'm working on cam support in ffpyplayer for max/linux/windows.


marathon-haproxy-bridge breaks when an app without ports is scaled to 0 instances

We have had this come up in a production cluster several times showing up as externally visible outages.
Some snippets from our marathon slightly-anonymized (app name replaced, changed hostnames) from when this happened last:
curl -sSfLk -m 10 -H 'Accept: text/plain' https://marathon:8080/v2/tasks
appA 10029
appB
appC  10030
appD    srv7.example.com
appE 19080 srv5.example.com:31697  srv4.example.com:31482
appF 19443 srv5.example.com:31698  srv4.example.com:31483
appG frontend-foosball 10019 srv7.example.com:31927
appH  10005

The appB breaks marathon-haproxy-bridge with the error: /usr/local/bin/haproxy-marathon-bridge: line 178: $2: unbound variable
Some options I see:

Try to fix marathon-haproxy-bridge to be more stable: I see this as not a great cause, the bash is fairly hard to read / maintain, and debug / fix when this issue comes up. Easiest fix is to just delete the problem app.
Migrate all users to servicerouter.py: This structurally changes so instead of parsing the little-documented text/plain output, we instead are parsing the much more stable JSON output.

Nevermind, this is an old marathon-haproxy-bridge fork not applicable to the service currently in Marathon. Sorry for the noise


Fixed empty symbol declared pdb.

(Pre discover input F# source code and got AST.)
I'm applying "pdbFile" argument in SimpleSourceCodeServices.Compile function with AST, created pdb file specified path, but no symbol entries containing in pdb file.
The "pdbPath" handled main1OfAst function, but no affected tcConfigB and tcConfig debuginfo property.
PR contains if pdbPath is applied, set debuginfo is true by SetDebugSwitch.

Does it work if you pass a --debug+ argument explicitly?

Thx reply, I'm trying with add "--debug+" option, but symbol empty too.
Test codes:
https://gist.github.com/kekyo/a39cac521df12d6c9d762af3e30c0bd6

@dsyme Any idea?

@kekyo Could you edit the issue so the steps are using ISSUE_TEMPLATE.md format please?

Thank you and sorry issue report too late...


threadpool: fix initialization of idle_threads

In some platforms,  without initialization , value is random.
Here, may cause thread blocked.  :)
@bnoordhuis @saghul

idle_threads is declared as static, so the compiler will initialize it to
0. What problem are you experiencing?
On Sep 7, 2015 10:02, "Jianghua.yjh"<EMAIL_ADDRESS>wrote:

In some platforms, without initialization , value is random.
Here, may cause thread blocked. :)
@bnoordhuis https://github.com/bnoordhuis @saghul
https://github.com/saghul
You can view, comment on, or merge this pull request online at:
https://github.com/libuv/libuv/pull/514
Commit Summary

threadpool: fix initialization of idle_threads

File Changes

M src/threadpool.c
https://github.com/libuv/libuv/pull/514/files#diff-0 (4)

Patch Links:

https://github.com/libuv/libuv/pull/514.patch
https://github.com/libuv/libuv/pull/514.diff

—
Reply to this email directly or view it on GitHub
https://github.com/libuv/libuv/pull/514.

In some arm platform, I meat some unexpected problem without initialization.
refer to :  http://stackoverflow.com/questions/1294772/does-gcc-automatically-initialize-static-variables-to-zero

I don't think this is the problem. We do rely on this heavily as it's part of the standard. The link you pasted doesn't clarify why any of this would be needed on ARM, for that matter.
Some people say it's good practice, some say the opposite, but the value is always initialized to zero.

since gcc3.3.1 ,

GCC 3.3.1 automatically places zero-initialized variables in the .bss section on some operating systems. Versions of GNU Emacs up to (and including) 21.3 will not work correctly when using this optimization; you can use -fno-zero-initialized-in-bss to disable it.

-fno-zero-initialized-in-bss

If the target supports a BSS section, GCC by default puts variables that are initialized to zero into BSS. This can save space in the resulting code. This option turns off this behavior because some programs explicitly rely on variables going to the data section. E.g., so that the resulting executable can find the beginning of that section and/or make assumptions based on that.
The default is -fzero-initialized-in-bss.
And someone may turn off the flag, I think it much better to initialize. :)

/cc @bnoordhuis

@yjhjstz That flag doesn't do what you think it does.  -fno-zero-initialized-in-bss puts an int x = 0 in the .data section of the executable instead of the .bss.  The variable is still zero in either case.

Closing since this is not a correct fix.


zoneminder: declarative camera support

Issue description
Zoneminder manages cameras in a database. On NixOS it would be more natural to configure it in configuration.nix.
Since Zoneminder has an API, using https://zoneminder.readthedocs.io/en/stable/api.html#add-a-monitor would be an alternative to direct database access (mentioned at https://github.com/NixOS/nixpkgs/pull/53495#issuecomment-454520965).

I am also wishing ZM could be configured declaratively (monitors, zones, etc).

zoneminder is effectively unmaintained in nixpkgs/nixos. Any of you interested in taking it on?