Fix gradle syntax errors in setting versions

Purpose

$title

Fixes #41451
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

[x] Read the Contributing Guide
[ ] 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

There is a "${project.jacksonCoreVersion}"' in ballerina-lang/misc/ballerinalang-data-mapper/build.gradle. Shall we fix that too


Method to pull latest goss release, not hard-coded release

Right now the goss release to be pulled in the verify.yml is hard-coded to 0.3.16

molecule_goss/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/verify.yml

---
{% raw -%}
- name: Verify
  hosts: all
  become: true
  vars:
    goss_version: v0.3.16
    goss_arch: amd64
    goss_bin: /usr/local/bin/goss
    goss_sha256sum: 827e354b48f93bce933f5efcd1f00dc82569c42a179cf2d384b040d8a80bfbfb.
    goss_test_directory: /tmp/molecule/goss
    goss_format: documentation
    goss_vars: "{{ goss_test_directory }}/vars"
    copy_defaults_vars: false
  tasks:
    - name: Download and install Goss
      get_url:
        url: "https://github.com/aelsabbahy/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"
        dest: "{{ goss_bin }}"
        checksum: "sha256:{{ goss_sha256sum }}"
        mode: 0755

A cleaner method would be to find the latest release from the goss repo and pull that down.  For example, this is a method I use a lot in my ansible stuff
# https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64
# https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64.sha256

- name: Get latest release
  uri:
    url: "https://api.github.com/repos/aelsabbahy/goss/releases/latest"
    method: GET
    return_content: true
    status_code: 200
    body_format: json
    validate_certs: false
    user: "{{ lookup('env', 'GH_USER') | default(omit) }}"
    password: "{{ lookup('env', 'GH_TOKEN') | default(omit) }}"
  register: _latest_release
  until: _latest_release.status == 200
  retries: 5

- name: "Set goss_version to {{ _latest_release.json.tag_name[1:] }}"
  set_fact:
    goss_version: "{{ _latest_release.json.tag_name[1:] }}"
  when: _latest_release is defined

# Can do some magic here to handle multiple architectures
- name: Get checksum for amd64
  set_fact:
    goss_checksum: "{{ item.split(' ')[0] }}"
  with_items:
    - "{{ lookup('url', 'https://github.com/aelsabbahy/goss/releases/download/v' + goss_version + '/goss-linux-amd64.sha256', wantlist=True) | list }}"

- name: Download and install Goss
   get_url:
     url: "https://github.com/aelsabbahy/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"
     dest: "{{ goss_bin }}"
     checksum: "sha256:{{ goss_sha256sum }}"
     mode: 0755

Here's a sample run

PLAY [all] ******************************
TASK [Gathering Facts] ******************
ok: [test2.local]
TASK [Get latest release] ***************
ok: [test2.local]
TASK [Set goss_version to 0.3.16] *******
ok: [test2.local]
TASK [Get checksum for amd64] ***********
ok: [test2.local] => (item=827e354b48f93bce933f5efcd1f00dc82569c42a179cf2d384b040d8a80bfbfb  goss-linux-amd64)
TASK [debug] ****************************
ok: [test2.local] =>
goss_version: 0.3.16
TASK [debug] ****************************
ok: [test2.local] =>
goss_checksum: 827e354b48f93bce933f5efcd1f00dc82569c42a179cf2d384b040d8a80bfbfb

Nice @Halfwalker
It seems like we should allow for specifying a version in vars, otherwise we default to latest.


Dashboard management

We want to have a unified layout and shared set of tooling, documented to empower user to manage and deploy their dashboards and sync their mixins with upstream.
### Tasks
- [ ] https://github.com/giantswarm/roadmap/issues/998
- [ ] https://github.com/giantswarm/giantswarm/issues/22481
- [ ] https://github.com/giantswarm/giantswarm/issues/28011
- [ ] https://github.com/giantswarm/roadmap/issues/3401
- [ ] https://github.com/giantswarm/giantswarm/issues/23553
- [ ] https://github.com/giantswarm/giantswarm/issues/21578

Related

Improve dashboard development workflow/structure https://github.com/giantswarm/dashboards/pull/48

@Rotfuks i was looking through dashboards on a CAPA installation. A few ideas/nitpicks:

There are still dashboards that aren't owned by a team
To get a better overview we should start thinking about a folder structure - it's a long alphabetical list by now already
Some dashboards seems to be broken
There are useful dashboards in "private" that should get promoted to public imo.

Dashboards without team

API Audit
AWS Load Balancer
CAPI overview
Cilium performance
Karpenter
Kong ingress controller
etc

Dashboards that should get promoted to public

Crossplane
etcd health
Persistent Volumes
All Kubernetes dashboards
All Mimir dashboards
All Loki dashboards
etc

Obviously this involves nudging teams to clean up their dashboards, properly tag them and help them to find a good overall structure. But this would greatly help with the overall experience for the customers.
Some further ideas:
I'd rename "public" and "private" to something like "stable" and "experimental" and consider making both public. Imo we shouldn't have private dashboards that are only internal. All this information can educate customers too and while we need to make sure that we have a proper way to handle multi-tenancy, we should rather have stages that indicate the quality of the dashboards to the customer than hiding potentially good dashboards from the customers.

Thanks Timo! Great ideas.
For the broken dashboards I guess a lot of them boil down to the capi migration and that capi has some metrics different then vintage where we have to adapt the recording rules. We're on it with https://github.com/giantswarm/roadmap/issues/3634
The rest and the general dashboard experience improvements is coming in a later milestone.


feat: add lock in the global session interner for parallel parser.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

feat: add lock in the global session interner for parallel parser.

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

kclvm/runner/src/tests.rs

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 89.313%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2106

Relevant Lines:
2358

💛  - Coveralls


Capture black screen

import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamResolution;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class cam {

    public static void main(String args[]) throws IOException {
        Webcam webc =Webcam.getDefault();
        // Get default camera

        if (webc == null) // Can't find camera
            return;

        webc.close();
        webc.setViewSize(WebcamResolution.VGA.getSize());
        webc.open(); // Open the camera
        try { // save the picture captured
            ImageIO.write(webc.getImage(), "PNG", new File("F:/hello.png"));
        } catch (IOException ioe) {
            ioe.printStackTrace();
        }
        webc.close(); // Close the camera

    }
}

Please help me to fix this problem, i am getting a black screen at the given location and also getting few errors.
Please find attached.

please check your camera, probably VGA is not proper for your hardware


Gulp src not matching nested directories

I posted this on Stack Overflow also, please let me know if I should only post here or only on SO for this kind of question in the future. I can't tell if this is a bug or (more likely) my lack of a clue.
gulp: v4.0.0
gulp-cli: v2.1.0
gulp-debug: v4.0.0
glob: v7.1.6
node: v10.16.0
OS: Ubuntu 18.04

I have these two functions in the same gulpfile:
function debugGulpSrc() {
  ['/var/abc/scss/**/*.scss'].forEach( (globPattern) => {
  return src( globPattern )
    .pipe( debug({minimal: true}) )
  })
}

function debugNodeGlob() {
  ['/var/abc/scss/**/*.scss'].forEach( (globPattern) => {
    glob( globPattern, {}, function (err, files) {
      if (err) {
        console.log('Error: ' + err);
        return;
      }

      files.forEach( (file) => {
        console.log(file);
      });
    })
  })
}

The single entry in the glob array is intentional. I've been testing with just one but once it works I will add more glob patterns from the project root. I'm using the forEach because Gulp's src() function errors with no warning (even with stricton and silent off) if there are no matches to the pattern. It's a large project and I have some folders that will not match a pattern until later on.
The file structure I'm trying to glob looks like this:
/var/abc/scss/style.scss
/var/abc/scss/folder1/style.scss
/var/abc/scss/folder1/index.html
/var/abc/scss/folder1/nested_dir/index.scss
/var/abc/scss/folder2/style.scss
/var/abc/scss/folder2/index.html
... many other folders and files

My debugNodeGlob() function (using glob) returns all of the files I expect. However debugGulpSrc() returns the files in the root directory and the root of folder1, but nothing else. It does not get the files in nested directories. The Gulp src documentation says that it should with the double-star (**) glob pattern, and glob on its own does so normally.
I diff'd the debug output set as an option in both approaches, and everything was identical except the output.
The only difference I can see (except for many files not returned by Gulp src) is that the files returned by glob have absolute paths, and those returned by src have relative paths to the project root:
/var/abc/scss/folder1/style.scss

vs.
../abc/scss/folder1/style.scss

I am running the script file from here from the command line:
/var/abc/scripts/gulpfile.js

I use the same glob patterns as input to gulp-watch, and it works fine and handles nested subdirectories correctly.
I have a feeling that Gulp src is doing something where it expands my double-star wildcard to every directory actually on the block device, finds one without a match, and dies silently, but I have no idea how to fix that or get the functionality that I need. It's not reasonable to add a new glob pattern to the array every time I add a subdirectory. The double-star glob pattern should handle that (including subfolders that don't have matching files), just like Isaac's glob library does (the documentation says src is a wrapper around glob).
I haven't grasped why Gulp doesn't offer an option to continue with the next glob pattern in an array of globs after one doesn't match, and instead chooses to die without emitting an event I could do something with. If it does emit an event, it's not in the documentation and isn't caught with .on(error, fn). If anyone has insight into that design decision I'd appreciate it.

Hey @calligraphic, it's fine to post questions in the gulp repo, but we have Discussions enabled now so I'm going to move this over there.
As for your question, gulp.src() is a stream and you aren't draining it so I wouldn't expect you to be getting everything.


Android 12 backgroud service not working when turn off screen

Hello, very good library, I wanted you to help me with the following problem, it turns out that when I am debugging my application connected with the usb to my computer, the service always works in the background, even when the screen is off, but when I use the application without my cell phone being connected to the electric current, after 5 minutes since the screen is off, the service stops and is only restored when I unlock the cell phone again.
PS: My application consists of creating a timer that throws alerts every certain interval of time, this service can last up to 48 hours and it is only for android.
PD2: I only managed to make the service work at all times when I disable the energy saving of the application that comes by default as shown in the image below:

@GiuseppeEpifani, sadly this is out of the scope of this module as the OS decides whether or not to allow a background job to keep running in the background. However, for alerts, I highly recommend using other libraries that setup background timers or intervals.


Evaluating the change from semantic-release to changelogen

As a Pillarbox developer, I'd like to know if changelogen can be used instead of semantic-release to potentially remove a number of development dependencies.
Acceptance Criteria

use changelogen
remove all semantic-release dependencies

This what a changelog looks like without any customization:
CHANGELOG.md

I've made a test in a forked project, it seems that is working fine with no configuration, see the Release that it generated.
By default it also generates and commits a CHANGELOG in the project, the changelog can be disabled by adding the option --no-output if desired.

@jboix the issue that I have is how the SemVer is handled and its consistency, a few examples:

Git test only ! is used to create a breaking change version, you can't have a body with BREAKING CHANGE
If the version is less than 1.x.x the breaking change doesn't seem to work well
It's also strange that, let's say the last hash commit is cafebabe which is available on HEAD and on the latest tag. Running npx changelogen@latest --release shouldn't create a new version if nothing has changed. However it generates a new version with a new tag. GetGitDiff seems to behave as expected and returns an empty array when there is no diffs. In the code I see multiple issues starting from https://github.com/unjs/changelogen/blob/382eda92d13918fa5e5a354eaac04592a3fb873d/src/commands/default.ts#L44, https://github.com/unjs/changelogen/blob/382eda92d13918fa5e5a354eaac04592a3fb873d/src/git.ts#L112

That said, I absolutely love this project and how easy it is to configure and I would love to use it. Maybe we could help them fixing these minor issues. What do you think?


Swift5 adaptation

Proposal to adapt the source code to swift 5

@artemkrachulov please merge this changes. It would be good if you also merge request with swift 4.2 support and make different releases to allow other developers use appropriate version


boolean result of expect() api

Hi guys thank you for making such an amazing test framework for react-native.
I have certain situations in my react-native app when i want to check if particular element is visible I want to perform certain action else some other action.
It would be great if we have boolean expression like  " if (expect(element).isVisible() == true  ) ".
Thanks

Hello,
I don't think it is a good idea to have branching in your tests. You should always strive to have a deterministic state in your tests. Asking the if question means you are not testing all UI states of your app. If you app's state is dependent on external resources, you should mock those to ensure determinism.

Got it. Thanks. I am new to using detox so don't know all test strategies.

Happy coding!


EOFException without attempting a connection if the previous connection closed at the end

What kind of issue is this?

[ ] Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use Stack
Overflow. https://stackoverflow.com/questions/tagged/okhttp

[X] Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests
get fixed. Here’s an example: https://gist.github.com/swankjesse/981fcae102f513eb13ed

[ ] Feature Request. Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.

I have created a unit test for this here:
https://gist.github.com/ktchernov/fa5f6e16d128571bf9dfad7e7258512e
The test whenRetryOnConnectionFailureIsTrue_getAfterDisconnectAtEndShouldSucceed succeeds, while whenRetryOnConnectionFailureIsFalse_getAfterDisconnectAtEndShouldSucceed fails. Both should pass - there should be no need to retry the second connection as it should not fail.
I spotted this in my app when debugging with Charles Proxy. When the socket is closed after the response is sent, the call succeeds but the next call fails with java.io.EOFException: \n not found: size=0 content=... without even attempting to make a network request. (In Charles Proxy: this is the "Abort" button on a breakpoint).
I have tried this on 3.2.0 and 3.3.0-SNAPSHOT with the same result.

Not succeeding here is kind of the entire point of retryOnConnectionFailure(false). We can’t efficiently detect that the socket has been closed (the FIN packet might not have even arrived yet!) and so we attempt and retry.
The warning on that method makes your obligations as the caller clear:
     * Set this to false to avoid retrying requests when doing so is destructive. In this case the
     * calling application should do its own recovery of connectivity failures.

It is strange though, the first call (where the socket is closed) succeeds. It is the next call that fails. Is that the correct behaviour?

Yes. Because we reuse connections. More details here: https://github.com/square/okhttp/wiki/Connections


Suggestion: increase discoverability, shareability

Similarly to bl.ocks.org, it would be useful to (optionally) incorporate the user ID in the URL of the main page and perhaps the New page as a query parameter. It motivates makers to add more pieces, and share existing ones without mixing in other pieces, since currently, they can't review their own stuff like they can on bl.ocks.org or comparable sites.

https://t.d3fc.io/user/monfera
😄

Rad, thank you :-)


Moving Optimizely to Marketplace

This moves Optimizely into marketplace. I will follow up with another PR adding tests to keep the diff easy to read.
Follow up TODOS

[ ] Improve Test Coverage
[ ] Store Project ID in configuration

LGTM, merge once CI is green

Thanks! Going to hold off for now until I can get the tests in there too.


Fix profiler for apple silicon

Currently the profiler is compiled WITHOUT hw aes acceleration for apple silicon.
That should fix it.

@poszu I checked profiler that was built in the action, and it works fine.

{
  "time_s": 10.555179583,
  "speed_gib_s": 1.4211032490777094
}


Picture decode failed: e00002d1

Describe the bug
When running it on real device, first it's laggy, and after a few second app crashes with this error.
JPEGDecompressSurface : Picture decode failed: e00002d1
* thread #38, queue = 'com.apple.root.default-qos', stop reason = EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2098 MB, unused=0x0)
    frame #0: 0x00000001d771f64c libsystem_platform.dylib`_platform_memmove + 76
libsystem_platform.dylib`_platform_memmove:
->  0x1d771f64c <+76>: stnp   q0, q1, [x3]
    0x1d771f650 <+80>: add    x3, x3, #0x20             ; =0x20
    0x1d771f654 <+84>: ldnp   q0, q1, [x1]
    0x1d771f658 <+88>: add    x1, x1, #0x20             ; =0x20
Target 0: (Runner) stopped.

Seems your image might be broken when transferring? Is it an iCloud image?

Is this issue still reproducible in the latest version (1.2.7)?


⚠ File access (beta) has degraded performance

In c2149b1, File access (beta) (https://beta.fyle.uk/file/fish) experienced degraded performance:

HTTP code: 200
Response time: 4912 ms

Resolved: File access (beta) performance has improved in 922dd96.


New notebook/folder

Create notebook/folder

Click add notebook from drawer
Enter name(length limitation 24)
Save to database

Should be shown in file tree view when saved

Done


bind a variable to username

I tried
 <avatar                      :rounded="false"                      :size="100" class="picture card border-white rounded shadow" :username="data.name"></avatar>
but it does not work.
how to solve this?

I'm sorry but this is clearly not a vue-avatar problem. I suggest you to search for help in vue discord or stackoverflow

Try this v-bind:username="data.name"


question regarding alex maker for markdown

Hi, I'm working on adding a new maker for markdown using alexjs
So far, testing locally before making a PR. Right now I have this .
  let g:neomake_markdown_alex_maker = {
                \ 'errorformat':
                \ '%W%f:%l:%c: warning: %m'
                \}
  let g:neomake_markdown_enabled_makers = ['alex']

But using the verbose output, it seems that neomake is removing the message as "invalid entry"?
Expected behavior
Errors/warning pop up, of course 😄
Steps to reproduce
npm install -g alex
touch test.md

I copied the sample text from the alex site and used that as the content for test.md
Output of the ":verb NeomakeInfo" command
Neomake [2.392]: [1] Running makers: ['alex']
Neomake [2.393]: [1] Starting async job: ['alex', '/Users/mhartington/test.md']
Neomake [3.170]: [1.6] stderr: alex: ['test.md', '   1:5-1:14  warning  `boogeyman` may be insensitive, use `boogey` instead boogeyman-boogeywoman  retext-equality', '  1:42-1:48  warning  `master` / `slaves` may be insensitive, use `primary` / `replica` instead  master-slave retext-equality', '  2:52-2:54  warning  `he` may be insensitive, use `they`, `it` instead he-she retext-equality', '  2:61-2:68  warning  `cripple` may be insensitive, use `person with a limp` instead cripple retext-equality', '', '⚠ 4 warnings', '']
Neomake [5.994]: [1.6] exit: alex: 1
Neomake [5.995]: [1.6] alex: processing 7 lines of output.
Neomake [5.995]: [1.6] Removing invalid entry: test.md ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex', 'pattern': ''})
Neomake [9.610]: [1.6] Removing invalid entry:    1:5-1:14  warning  `boogeyman` may be insensitive, use `boogey` instead boogeyman-boogeywoman  retext-equality ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex', 'pattern': ''})
Neomake [12.306]: [1.6] Removing invalid entry:   1:42-1:48  warning  `master` / `slaves` may be insensitive, use `primary` / `replica` instead  master-slave           retext-equality ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex', 'pattern': ''})
Neomake [13.161]: [1.6] Removing invalid entry:   2:52-2:54  warning  `he` may be insensitive, use `they`, `it` instead he-she retext-equality ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex', 'pattern': ''})
Neomake [13.713]: [1.6] Removing invalid entry:   2:61-2:68  warning  `cripple` may be insensitive, use `person with a limp` instead cripple retext-equality ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex', 'pattern': ''})
Neomake [14.362]: [1.6] Removing invalid entry:  ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex','pattern': ''})
Neomake [15.217]: [1.6] Removing invalid entry: ⚠ 4 warnings ({'lnum': 0, 'bufnr': 0, 'col': 0, 'valid': 0, 'vcol': 0, 'nr': -1, 'type': '', 'maker_name': 'alex', 'pattern': ''})
Neomake [15.849]: [1.6] alex: completed with exit code 1.
Neomake [15.849]: File-level errors cleaned in buffer 1

The output seems to not include the filename for each line.  Please provide some sample output when running it directly.
Maybe you can configure the output format also?
See https://github.com/neomake/neomake/blob/4c4a2dd0623cdd6d34e0e00a1eab3c62d738da17/doc/neomake.txt#L487 for developing the errorformat.  Also :h errorformat of course.

When calling alex directly from the command line, it returns
$ alex test.md
test.md
     1:5-1:14  warning  `boogeyman` may be insensitive, use `boogey` instead                       boogeyman-boogeywoman  retext-equality
    1:42-1:48  warning  `master` / `slaves` may be insensitive, use `primary` / `replica` instead  master-slave           retext-equality
  1:127-1:129  warning  `he` may be insensitive, use `they`, `it` instead                          he-she                 retext-equality
  1:136-1:143  warning  `cripple` may be insensitive, use `person with a limp` instead             cripple                retext-equality

⚠ 4 warnings

And can you specify the format?
If not, it needs some more advanced errorformat string.

Sadly no, this is the only output it provides.
Alright, I'll work on the formatting for the error message.

FWIW, I ended up with a errorformat that looks like this.
let g:neomake_markdown_alex_maker = {
                 \ 'errorformat': '%P%f,' .
                 \ '%-Q,' .
                 \ '%*[ ]%l:%c-%*\d:%n%*[ ]%tarning%*[ ]%m,' .
                 \ '%-G%.%#'
                 \}

Do you want to create a PR for it or should we add it?

Good question.
There seems to be a spring of nodejs based checkers, that are not really mature?! - see write-good at https://github.com/neomake/neomake/pull/794.
Getting this in optionally would be good nonetheless.
But I wondered also for proselint/writegood if those should be enabled by default - given that the base it text files, and text is often uses as a fallback.

@mhinz yeah alex's README is a bit off...inline html and such...
yeah I'll get a PR together, one sec


Receiving Network Error

Unable to upload a roster through the tool proper. Tried with multiple rosters, as seen here. Affecting multi-unit and single-unit armies. Tried multiple browsers and clearing cache and cookies. Unfortunately whatever the dev tried doing to fix it didn't work.
Warhammer Armies.zip

The upload is currently working for me with these rosters. I know you said you cleared the cache, but could you try one more cache-related thing - try clicking the page reload button in the browser while holding the Shift key, then re-try the upload. I can't be sure they're you, but I'm seeing requests that are still going to the wrong backend address (which was the issue I fixed earlier).

Yup, that did it. Sorry. Had some stuff going so I wasn't able to do a com reset, didn't think to do a hard page reset since I did the browser clear and reset.

Glad it all worked in the end!


HBASE-28895 Bump Avro dependency version to 1.11.4

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 33s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

_ master Compile Tests _

+1 :green_heart:
mvninstall
3m 14s

master passed

+1 :green_heart:
compile
7m 56s

master passed

+1 :green_heart:
spotless
0m 45s

branch has no errors when running spotless:check.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m  4s

the patch passed

+1 :green_heart:
compile
7m 55s

the patch passed

+1 :green_heart:
javac
7m 55s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
xmllint
0m  0s

No new issues.

+1 :green_heart:
hadoopcheck
12m 50s

Patch does not cause any errors with Hadoop 3.3.6 3.4.0.

+1 :green_heart:
spotless
1m 11s

patch has no errors when running spotless:check.

_ Other Tests _

+1 :green_heart:
asflicense
0m 16s

The patch does not generate ASF License warnings.

45m 33s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6332/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6332

Optional Tests
dupname asflicense javac codespell detsecrets xmllint hadoopcheck spotless compile

uname
Linux 1813334ba32d 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / ed5338b89cfb29a97b6ea3d6696ef8120d5935b4

Default Java
Eclipse Adoptium-17.0.11+9

Max. process+thread count
188 (vs. ulimit of 30000)

modules
C: . U: .

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
3m  4s

the patch passed

+1 :green_heart:
compile
2m 11s

the patch passed

+1 :green_heart:
javac
2m 11s

the patch passed

+1 :green_heart:
javadoc
2m  5s

the patch passed

+1 :green_heart:
shadedjars
5m 22s

patch has no errors when building our shaded downstream artifacts.

_ Other Tests _

+1 :green_heart:
unit
301m 20s

root in the patch passed.

334m 48s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6332/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/6332

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 0b9b0fb15853 5.4.0-195-generic #215-Ubuntu SMP Fri Aug 2 18:28:05 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / ed5338b89cfb29a97b6ea3d6696ef8120d5935b4

Default Java
Eclipse Adoptium-17.0.11+9

Test Results
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6332/1/testReport/

Max. process+thread count
8700 (vs. ulimit of 30000)

modules
C: . U: .

Console output
https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6332/1/console

versions
git=2.34.1 maven=3.9.8

Powered by
Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.


Auto-fill db on launch with fake data depending on env

Closed in https://github.com/OrganIA/organia-server/commit/522e3cad03e6b8c0421873eec615c7233d9106d3


Update developer guide

Adds information about Job and Employment

Codecov Report

Merging #84 (1cf9506) into master (d1fa73d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #84   +/-   ##
=========================================
  Coverage     71.01%   71.01%
  Complexity      492      492
=========================================
  Files            84       84
  Lines          1856     1856
  Branches        181      181
=========================================
  Hits           1318     1318
  Misses          485      485
  Partials         53       53

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 d1fa73d...1cf9506. Read the comment docs.


DeleteOne crash the app on some cases

I tried something like :
await db.collection('todos').deleteOne({ _id: { $oid: "a" }});

And got my program to crash with the following error :
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: FromHexError(OddLength)', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/bson-0.14.1/src/bson.rs:575:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

An object ID must be a hexadecimal string made up of couples of the characters<PHONE_NUMBER>abcdef. The amount of characters must thus be even. If this is not the case deno_mongo will panic.

await db.collection('todos').deleteOne({ _id: { $oid: "a" }});

You should try to use ObjectId("id") instead of {$oid:"id"}
TS does a check on it and throws a catchable exception to avoid panic in rust

Alright, I'll try that 👍
Though I think it would be better to throw an Error than crash the program here.

import { ObjectId } from<EMAIL_ADDRESS>
 if (ObjectId("a")) {
await db.collection('todos').deleteOne({ _id: { $oid: "a" }});
}

First check the $oid with ObjectId function then proceed your operation.
ObjectId function returns if it is a valid Object ID
false if it is invalid
Its worked for me. I hope it works you too!


[fix] No wordwrap will no longer cause cowthink to read from stdin

The command echo foo | cowthink "" bar will say foo, not bar (at least on my cowsay). The emptiness of the first argument decides which source of input cowsay will use. By default pokemonsay will pass in a "$word_wrap" which by default evaluates to "". This causes cowsay to read from stdin, even if a message is provided via program arguments.
This change uses bash arrays to properly expand the $word_wrap into arguments. This necessitated a change of the shebang, but pokemonsay was not posix-shell compliant anyway due to the ^ on line 50.

Thanks for the contribution, haven't notice this one!

Would you consider tagging a new release, including this fix?


KAFKA-4827: Porting fix for KAFKA-4827 to v0.10 and v0.11

Back porting the fix in this PR (https://github.com/apache/kafka/pull/4205) to v0.10 and v0.11.

retest this please

@ewencp, @rhauch this is the backport for the PR for KAFKA-4827 (https://github.com/apache/kafka/pull/4205/files)

retest this please

retest this please

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/3778/
Test FAILed (JDK 7 and Scala 2.10).


Account::new_unchecked() performs checks?

I'd expect by the name Account::new_unchecked to not do any checks.
But it does in this line - https://github.com/near/near-sdk-rs/blob/master/near-sdk/src/types/account_id.rs#L53
Is that a mistake?  Because it does the same thing as AccountId::try_from

Ok I think I realise that in release mode, debug_assert will not run. So only runs during development.

Yeah, it's just a method so that it will check during tests, but checking the validity of the account id will not be compiled into your contract. This is for those who are sure it will always be correct and want to skip the checks.
Is there anything that can be made more clear by docs?

I had the same line of thought but overlooked the debug! macro. Definitely clear enough.


Missing GitHub link on the website

Add a link to this GitHub org in the footer of the website.

There's already a link to the github in the footer and another in the header.

Ah, correct, it's "Code". I think it's better to change it to "GitHub". Maybe at least change only the one in the footer? Or, add the GitHub icon like how it's done here: https://gitbutler.com

Could be cool. Would you like to make a mockup of the design? :)

Sure 😸. What do you mean by mockup? Do you mean a PR/Demo?

Just some way of seeing what the new design might look like so we can decide which and any design to go with.

Dude, never mind.  I can't deal with it. Sorry 🌸.


Acrolinx quality improvements: slb-gateway-performance.md

Learn Build status updates of commit fc0c187:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

WindowsServerDocs/administration/performance-tuning/subsystem/software-defined-networking/slb-gateway-performance.md
:white_check_mark:Succeeded

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 the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@robinharwood, @Xelu86
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@gswashington, a few updates but looks good. Merging now.


Adds option to open article links in NetNewsWire or in the default browser.

Adds BrowserManager, Browser, BrowserConfigurationViewController, and appropriate browser glyphs.
The default behaviour will allow a user to to select NetNewsWire (in-app, default) or Default Browser.
If we want to override the default browser, it can be enabled by setting BrowserManager's enableExtendedBrowserPreferences to true. This then opens up options for Brave, Chrome, Edge, Firefox, Opera and 1Password.
The Article section in Settings has been rearranged so that on iPad the second row displays the browser preference instead of the Enable Full Articles option.

Fixes #3029

I’d like for this to be simplified to only what we need to give users a choice between in-app and default browser. Let’s not include extra code for specifying some other browser — we may not ever want to do that feature.

@brentsimmons fixed in 3bc18e2.


Table header in Step 6

The table header in Step 6 is confusing.  The column header labeled "Elements" contains names of what are mostly parameters with one element in XML jargon.  Perhaps a word like "fields", or "names", or some such, would be less confusing for the column header.
[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a8eaba31-3cfa-ae46-75e8-867cade59cba
Version Independent ID: 683121d9-c160-f05d-accf-f155049050b9
Content: Create an App Installer file manually - MSIX
Content Source: msix-src/app-installer/how-to-create-appinstaller-file.md
Product: msix
GitHub Login: @dianmsft
Microsoft Alias: diahar

@TimMangan  thank you for your feedback. I have made a note to look into this and make docs changes accordingly. Tracking the work internally


non_zero op for Mixtral8x7b bringup

Need an op with the following functionality:
batch_ids_b = ttnn.non_zero( batch_ids_B)
batch_ids_B is a 1-D tensor of size B (for the initial bringup, B=32)
batch_ids_b is a 1-D tensor of size b (<=B)
ttnn.non_zero returns the indices of a tensor where the value is not zero.
Eg, ttnn.non_zero([1.9, 7.2, 0, -2.3, 0]) should return [0, 1, 3]
PyTorch equivalent: https://pytorch.org/docs/stable/generated/torch.nonzero.html#torch.nonzero

@sraizada-tt I'm closing this for now (as there is a version in main), but we can re-open it or make a new issue if the current implementation is not sufficient.
I brought up in slack that with the current infra I don't think it's possible to do a dynamic shaped output based on the data of the tensor. The output shapes are set on the host, so the host needs data to figure this out.


Component's name and request version in response when failure

As per #272
(It actually adds name and request version not only for POST endpoint)

Excellent, thank you @jankowiakmaria


Please add support for InnocentGrey engine (.s files)

Can you add support for .s files from Innocentgrey engine? As far I seen, that's the extension of the scripts in titles like Flowers.

For reference: This tool can already extract and insert strings from these files.


[FLINK-5246] Don't discard checkpoint messages if they are unknown

This is the case if the savepoint coordinator has triggered a checkpoint. The corresponding
checkpoint messages are not known to the checkpoint coordinator and thus should not be
discarded. Instead, the JobManager will now discard all messages which have not been accepted
by neither the CheckpointCoordinator nor the SavepointCoordinator.

Failing test cases are unrelated. Merging this PR.


[PT] add chapter 8.3

#51

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Hey @johnnv1 due to the merge of #265 we now have a few merge conflicts - would you mind fixing them so we can merge this PR too?  Thanks!

Done! 😄


Install both old and new WWDR certificates

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Closes #17328
Description
Modified CertChecker to install both the older WWDR certificate and the new one.
Testing Steps

updated unit tests
tested the patch against my private project, which has recently had a new enterprise certificate generated, causing build failures in CI due to the missing WWDR certificate.

@rogerluan I've done all the necessary steps for the fix, I think.


[New Feature]: Create a tool to update opera-disp-s1-consistent-burst-ids-with-datetimes.json with most recent CMR data

Checked for duplicates
Yes - I've already checked
Alternatives considered
Yes - and alternatives don't suffice
Related problems
No response
Describe the feature request
opera-disp-s1-consistent-burst-ids-with-datetimes.json is a central ancillary file in the DISP-S1 processing workflow. It was generated by ADT in Sept 2023. Since then, we've had another year of processing CSLC data in OPS and will continue to do so.
Create a cli tool that takes in an existing json file and updates the sensing_time_list field for every frame based on data returned from CMR. All the dates in sensing_time_list are the acquisition datetime of the first burst for that frame in the acquisition cycle that contains all bursts according to burst_id_list of the frame.

commit f3696ebd31b65a6f4ba1b4493274840ede916f0a
commit 457101e49123de0b84d885c49511ec8d674ccbe7


fix scratch image

adding the examples dir resulted in the scratch image failing:
$ CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main `glide novendor`
go build: cannot use -o with multiple packages

cc @kriskowal

ty


Replay is broken in master

Description of the bug:
When trying to replay a logfile with one of the latest versions of master (b104b55ceccf7b), I get the following:

There is the line: Replay done (published 0 msgs, 0.000 s)
The resulting file took 0.000 s to replay, and then when I plot the replayed file, the topics are empty.
When I try to replay the same file in stable (V1.8.2), I get:

which is normal behaviour. I can read the output file normally.
With some other files I even get some messages published but still 0.000 s:

When trying to replay a logfile with one of the latest versions of master (b104b55), I get the following:

As the warning shows you the message format changed, and it's not possible to replay that file. You need to replay it with the same (or similar) version as it was recorded with, or add a compatibility layer in https://github.com/PX4/Firmware/blob/master/src/modules/replay/replay_main.cpp#L364.

With some other files I even get some messages published but still 0.000 s:

Have you looked at the log file? 0 would mean it was just very fast (small log?).


Fix predict_proba for random forrest

Currently there is an issue with the predict_proba method on the branch rf_main_merge branch. This does not take into account that the trees might have different values in the .classes attribute when it gathers the predict_proba from the trees. They might have different values when doing bootstrapping.
E.G.
Tree1 might have classes: [1, 2] and predict_proba: [0.75, 0.25]
While Tree2 might have classes: [1, 3, 4] and predict_proba: [0.33, 0.33, 0.33]
Which will result in two errors:

The values for index 1 will have different meaning for Tree1 and Tree2.
We stack the predict_proba values which results in an error when the lists has different lenghts

We could solve this by padding with zeros appropiately.

This issue was merged with the rf_main_branch to development


Fixes typo in inspect command help

Thank you so much for the effort you have put into this PR!
However, since we completely re-worked the entire codebase of Now CLI, I'm not closing your Pull Request. Feel free to re-open it based on the new code, though!
You can read more about our biggest release yet here: https://zeit.co/blog/now-2


Animate zooming in on mouse cursor

🤓 Question
I asked on stack overflow and spectrum but didn't get any replies, so I'll ask here as well 🙏
Reproducing the Issue
I'm trying to animate zooming in on the cursor in images (can be raster or SVG). The code can be found in this repository. I've set up the minimal failing case. Just npm install, followed by npm run start and it should open your browser. Requires node to be available.
Steps
Move mouse cursor over image and scroll. The image zooms in or out smoothly. Now do the same thing again, but try to zoom in on a different point just before the animation is about to finish. The image jumps. Also see this gif The problem does not occur when spamming the mouse wheel, even if the cursor is moved in between wheel events. It appears to only happen if consecutive wheel events happen at the end of the preceding animation.
What I've Tried
I've tried two things:

Read the currently applied transforms from the useSpring hook (see 3597d2c36cf2ff63266e07a5dabe714d8bb7c233 in the repository)
Read the currently applied transforms from the image directly (most recent commit).

Zooming in and out on the cursor works. The animation works if you let the animation finish. I'm "just" trying to iron out that last quirk.
The core part is this
  // props contains the current values we can use for interpolation
  const [props, set] = useSpring(() => ({
    translateX: 0,
    translateY: 0,
    scale: 1
  }));

  // Store a reference to the DOM node holding the actual iamge
  const imgRef = React.useRef(null);

  const handleOnWheel = ({
    deltaY,
    clientX,
    clientY,
    target,
    currentTarget
  }) => {
    // The handleOnWheel function is attached to the *container*
    // of the image. We therefore need to translate the coordinates
    // of the mouse into the coordinates of the image *within the
    // container*. That's done by the getBoundingClientRect() call
    // together with the calculation for nextCoords
    const { left, top } = target.getBoundingClientRect();

    const nextCoords = {
      x: clientX - left,
      y: clientY - top
    };

    // Nothing fancy, just getting the currently applied transforms
    // so that the value is up to date
    const [_, translateStr, scaleStr] = imgRef.current.style.transform.match(
      /translate\((.*)\)\sscale\((.*)\)/
    );

    const [translateX, translateY] = translateStr
      .split(",")
      .map(str => str.replace("px", "").trim())
      .map(Number);

    const scale = Number(scaleStr);

    // Calculate the next transform value to zoom in on cursor. Works
    // just fine, minus the image jump when zooming in at the end of the
    // animation
    const nextValues = getNextTransformValues({
      scale,
      translateX,
      translateY,
      ...nextCoords,
      getNextScale: deltaY > 0 ? () => 1 / (1 + 0.6) : () => 1 + 0.6
    });

    set(nextValues);
  };

@cideM I actually just implemented something like this with react-spring-lightbox
Since I use this logic in a few places, I broke out the translateX/Y calc into a function
ImageStage/utils/getTranslateOffsetsFromScale
And you can see where I'm calling it here
ImageStage/components/Image.js
It's surprisingly tricky to get it just right. Here's a demo, double-click or two-finger pinch to zoom in
codesandbox demo

Thanks for the comment! Your use case is a bit different from mine though. Note that my zoom in on cursor logic works just fine with one exception. In your app if I double click then it zoom in and if I double click again it zooms out. But my bug only appears if the user triggers another zoom while the first one is still animating. Also if I pinch zoom it just zooms in on the top right corner, at least on my Firefox on MacOS. So I can't really compare if your app actually supports zooming in repeatedly.

If I were to leave out the reset code here, you could keep zooming in indefinitely on double click
ImageStage/components/Image/index.js#L119
As for the pinch zooming, it works properly on my end with the latest firefox. Codesandbox can be a little finicky ime, you can see it running in prod on my blog if you click the images
operating-system-dark-mode-in-your-css

Sorry for the very late reply but here we go. I copy & pasted the relevant bits of your code to my playground and eventually it started working. But here's the interesting thing: it only works for onPinch, but not for onWheel (using react-use-gesture with exactly the same code and style props as in your example).
If I console.log the deltaDist value in onPinch, I notice that it's 0 for the first 2 events that are triggered, if I use the mouse wheel. So on my machine, a single mouse wheel movement triggers 2 events, which both have deltaDist 0. Only if I move the mouse wheel twice in a row do I start to see non-zero deltas. And that seems to somehow use the correct X Y values for determining the next transform values.
If I simply use onWheel rather than onPinch I get exactly the same buggy animation at the very end of an animation as in my initial problem description.
The next question would be to figure out how onPinch with a non-zero delta differs from onWheel. Not sure if I'm motivated enough to dig into this though.


Add BTCL

Team background:
The BTClite team is located in Singapore, Canada, India and South Africa.  The core members have more than 10 years of experience in Internet product development. They are the technical team and continuous entrepreneurs in the early research blockchain field. BTCL token is currently being traded on more than five exchanges.
Basic information of the project:
BTClite promises to bring advantages of Bitcoin on the ethereum blockchain. It has same total supply as bitcoin but is lighter, faster and cheaper.
More about BTCL

Official website: http://btclite.org/
Medium: https://medium.com/@btclite
Telegram: http://t.me/BTCLITE
Twitter: https://twitter.com/BTCliteofficial

Media coverage

CryptoCoinDaddy BTC Lite Brings Faster, Cheaper Transactions
Gadgetmix BTC Lite (BTCL) Is ERC20 Version Of Bitcoin
EthereumFAQ BTC Lite Bridges Gap Between Ethereum And Bitcoin

Recommended gas limit: 60000

Incorrect information submitted, please go through our guide and check again.

There is nothing incorrect. We have double checked and everything mentioned
is correct.
Please recheck.
On Wed, Oct 31, 2018, 13:36 Weli<EMAIL_ADDRESS>wrote:

Incorrect information submitted, please go through our guide and check
again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/consenlabs/token-profile/pull/2923#issuecomment-434595322,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Agmv76Gc65BPOE_VOE-zvFVyQAPfy-q-ks5uqVl5gaJpZM4X-2X1
.


odo link does not work for openshift 4.2.2

/kind bug
What versions of software are you using?
Operating System: windows 10 pro
Output of odo version: odo v1.0.0 (4e3175e6f)
Actual behavior
When linking frontend  to backend I am getting this error:
Failed to link component with error 'Error: Command failed: "/home/mdunnett/.vs-openshift/odo" link backend --project crc-demo --app demoapp --component frontend --wait --port 8080
✗ waited 4m0s but couldn't find running pod matching selector: 'deploymentconfig=frontend-wildwest''
Expected behavior
Linking is successful.
Any logs, error output, etc?
N/A
Downstream issue https://github.com/redhat-developer/vscode-openshift-tools/issues/1266.

/priority medium

@dgolovin This is a flake and has been tracked in #2244. Can you please try it again

@dgolovin This is a flake and has been tracked in #2244. Can you please try it again

It is not a flaky test if it can be reproduced outside of our test suite.
/priority high
/remove-priority medium
/kind bug

@dgolovin This is a flake and has been tracked in #2244. Can you please try it again

It is not a flaky test if it can be reproduced outside of our test suite.
/priority high
/remove-priority medium
/kind bug

I am saying it as a flake because in my recent test activities while pushing the java component i have seen the same error (✗ waited 4m0s but couldn't...) atleast 3 times out of my 20 test run against 4.3 cluster on aws.
AFAIU once link does change to frontend dc then build followed by a deployment happens. In this process it hit the same issue of  ...couldn't find running pod matching selector...

@amitkrout for me it is always the same experience,

I create two components wildwest backend and frontend.
I try to link them and linking fails with message about not being able to search pod using selector
I see DeploymentConfig is being updated by adding secret with component host and port, but not redeployed.
Wildwest frontend is not functional at this moment
If I kick deployment form devconsole frontend starts working as expected

Hey @dgolovin can you produce any verbose logs to help diagnose it? I'm trying to reproduce it but to no avail :(
Using -v 4 of course.

@cdrage
"C:\Users\dgolo\.vs-openshift\odo.exe" link backend --project pipelines --app wildwest --component frontend --wait --port 8080 -v 4
I1118 11:01:15.861125   16416 occlient.go:2556] Getting DeploymentConfig: frontend-wildwest
I1118 11:01:15.882095   16416 common_link.go:46] Unable to determine if backend is a service. This most likely means the service catalog is not installed. Proceesing to only use components
I1118 11:01:15.882095   16416 occlient.go:2556] Getting DeploymentConfig: backend-wildwest
 V  Component backend has been successfully linked to the component frontend

The below secret environment variables were added to the 'frontend' component:

· COMPONENT_BACKEND_HOST
· COMPONENT_BACKEND_PORT

You can now access the environment variables from within the component pod, for example:
$COMPONENT_BACKEND_HOST is now available as a variable within component frontend
I1118 11:01:15.983794   16416 occlient.go:1745] Waiting for deploymentconfig=frontend-wildwest pod
 -  Waiting for component to redeploy  ...
I1118 11:01:15.996792   16416 occlient.go:1769] Status of frontend-wildwest-1-9xqrj pod is Running
 X  Waiting for component to redeploy [4m]
I1118 11:05:15.998034   16416 cmdutils.go:48] Error:
waited 4m0s but couldn't find running pod matching selector: 'deploymentconfig=frontend-wildwest'
 X  waited 4m0s but couldn't find running pod matching selector: 'deploymentconfig=frontend-wildwest'

@cdrage
"C:\Users\dgolo\.vs-openshift\odo.exe" link backend --project pipelines --app wildwest --component frontend --wait --port 8080 -v 8
I1118 11:17:42.654252    4792 loader.go:359] Config loaded from file C:\Users\dgolo/.kube/config
I1118 11:17:42.657267    4792 round_trippers.go:383] GET https://api.crc.testing:6443/apis/project.openshift.io/v1/projects/pipelines
I1118 11:17:42.659454    4792 round_trippers.go:390] Request Headers:
I1118 11:17:42.661254    4792 round_trippers.go:393]     Accept: application/json, */*
I1118 11:17:42.663264    4792 round_trippers.go:393]     User-Agent: odo.exe/v0.0.0 (windows/amd64) kubernetes/$Format
I1118 11:17:42.665255    4792 round_trippers.go:393]     Authorization: Bearer sGzdreLBsG4PxiTPqFUw1-PuRYg_5pQzmQOAMHFSW3s
I1118 11:17:42.834920    4792 round_trippers.go:408] Response Status: 200 OK in 169 milliseconds
I1118 11:17:42.834920    4792 round_trippers.go:411] Response Headers:
I1118 11:17:42.841920    4792 round_trippers.go:414]     Content-Length: 597
I1118 11:17:42.842940    4792 round_trippers.go:414]     Audit-Id: b567defc-d966-4615-8033-8d9615b0fed0
I1118 11:17:42.845934    4792 round_trippers.go:414]     Cache-Control: no-cache, private
I1118 11:17:42.846940    4792 round_trippers.go:414]     Cache-Control: no-store
I1118 11:17:42.849953    4792 round_trippers.go:414]     Content-Type: application/json
I1118 11:17:42.850920    4792 round_trippers.go:414]     Date: Mon, 18 Nov 2019 19:17:42 GMT
I1118 11:17:42.852923    4792 request.go:897] Response Body: {"kind":"Project","apiVersion":"project.openshift.io/v1","metadata":{"name":"pipelines","selfLink":"/apis/project.openshift.io/v1/projects/pipelines","uid":"afe1ab2e-0a32-11ea-926b-00155d009446","resourceVersion":"234440","creationTimestamp":"2019-11-18T18:39:00Z","annotations":{"openshift.io/description":"","openshift.io/display-name":"","openshift.io/requester":"developer","openshift.io/sa.scc.mcs":"s0:c24,c19","openshift.io/sa.scc.supplemental-groups":"1000590000/10000","openshift.io/sa.scc.uid-range":"1000590000/10000"}},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}
I1118 11:17:42.857922    4792 occlient.go:2556] Getting DeploymentConfig: frontend-wildwest
I1118 11:17:42.861928    4792 round_trippers.go:383] GET https://api.crc.testing:6443/apis/apps.openshift.io/v1/namespaces/pipelines/deploymentconfigs/frontend-wildwest
I1118 11:17:42.862922    4792 round_trippers.go:390] Request Headers:
I1118 11:17:42.863932    4792 round_trippers.go:393]     Accept: application/json, */*
I1118 11:17:42.864922    4792 round_trippers.go:393]     User-Agent: odo.exe/v0.0.0 (windows/amd64) kubernetes/$Format
I1118 11:17:42.869931    4792 round_trippers.go:393]     Authorization: Bearer sGzdreLBsG4PxiTPqFUw1-PuRYg_5pQzmQOAMHFSW3s
I1118 11:17:42.879925    4792 round_trippers.go:408] Response Status: 200 OK in 6 milliseconds
I1118 11:17:42.880933    4792 round_trippers.go:411] Response Headers:
I1118 11:17:42.880933    4792 round_trippers.go:414]     Content-Length: 2722
I1118 11:17:42.881923    4792 round_trippers.go:414]     Audit-Id: bfc149c3-18cd-4f77-a9b8-a0950f7b8a65
I1118 11:17:42.883921    4792 round_trippers.go:414]     Cache-Control: no-cache, private
I1118 11:17:42.887923    4792 round_trippers.go:414]     Cache-Control: no-store
I1118 11:17:42.889011    4792 round_trippers.go:414]     Content-Type: application/json
I1118 11:17:42.889926    4792 round_trippers.go:414]     Date: Mon, 18 Nov 2019 19:17:42 GMT
I1118 11:17:42.890926    4792 request.go:897] Response Body: {"kind":"DeploymentConfig","apiVersion":"apps.openshift.io/v1","metadata":{"name":"frontend-wildwest","namespace":"pipelines","selfLink":"/apis/apps.openshift.io/v1/namespaces/pipelines/deploymentconfigs/frontend-wildwest","uid":"86449de6-0a37-11ea-a050-0a580a8000a4","resourceVersion":"240809","generation":2,"creationTimestamp":"2019-11-18T19:13:38Z","labels":{"app":"wildwest","app.kubernetes.io/instance":"frontend","app.kubernetes.io/managed-by":"odo","app.kubernetes.io/managed-by-version":"v1.0.1","app.kubernetes.io/name":"nodejs","app.kubernetes.io/part-of":"wildwest","app.openshift.io/runtime-version":"10"},"annotations":{"app.kubernetes.io/component-source-type":"git","app.openshift.io/vcs-uri":"https://github.com/openshift-evangelists/Wild-West-Frontend"}},"spec":{"strategy":{"type":"Recreate","recreateParams":{"timeoutSeconds":600},"resources":{},"activeDeadlineSeconds":21600},"triggers":[{"type":"ImageChange","imageChangeParams":{"containerNames":["frontend-wildwest"],"from":{"kind":"ImageStreamTag"," [truncated 1698 chars]
I1118 11:17:42.900920    4792 round_trippers.go:383] GET https://api.crc.testing:6443/apis/servicecatalog.k8s.io/v1beta1/namespaces/pipelines/serviceinstances?labelSelector=app.kubernetes.io%2Fpart-of%3Dwildwest
I1118 11:17:42.900920    4792 round_trippers.go:390] Request Headers:
I1118 11:17:42.901922    4792 round_trippers.go:393]     Accept: application/json, */*
I1118 11:17:42.904019    4792 round_trippers.go:393]     User-Agent: odo.exe/v0.0.0 (windows/amd64) kubernetes/$Format
I1118 11:17:42.904921    4792 round_trippers.go:393]     Authorization: Bearer sGzdreLBsG4PxiTPqFUw1-PuRYg_5pQzmQOAMHFSW3s
I1118 11:17:42.910937    4792 round_trippers.go:408] Response Status: 403 Forbidden in 2 milliseconds
I1118 11:17:42.913920    4792 round_trippers.go:411] Response Headers:
I1118 11:17:42.915920    4792 round_trippers.go:414]     Audit-Id: 3b2a6d4f-bfc3-4b02-b388-0fe0d2a04b42
I1118 11:17:42.916924    4792 round_trippers.go:414]     Cache-Control: no-cache, private
I1118 11:17:42.917921    4792 round_trippers.go:414]     Content-Type: application/json
I1118 11:17:42.918926    4792 round_trippers.go:414]     X-Content-Type-Options: nosniff
I1118 11:17:42.923921    4792 round_trippers.go:414]     Content-Length: 367
I1118 11:17:42.926934    4792 round_trippers.go:414]     Date: Mon, 18 Nov 2019 19:17:42 GMT
I1118 11:17:42.928925    4792 request.go:897] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"serviceinstances.servicecatalog.k8s.io is forbidden: User \"developer\" cannot list resource \"serviceinstances\" in API group \"servicecatalog.k8s.io\" in the namespace \"pipelines\"","reason":"Forbidden","details":{"group":"servicecatalog.k8s.io","kind":"serviceinstances"},"code":403}
I1118 11:17:42.930922    4792 common_link.go:46] Unable to determine if backend is a service. This most likely means the service catalog is not installed.
I1118 11:17:43.168935    4792 round_trippers.go:383] GET https://api.crc.testing:6443/api/v1/namespaces/pipelines/pods?labelSelector=deploymentconfig%3Dfrontend-wildwest&watch=true
I1118 11:17:43.169926    4792 round_trippers.go:390] Request Headers:
I1118 11:17:43.169926    4792 round_trippers.go:393]     Accept: application/json, */*
I1118 11:17:43.170920    4792 round_trippers.go:393]     User-Agent: odo.exe/v0.0.0 (windows/amd64) kubernetes/$Format
I1118 11:17:43.175921    4792 round_trippers.go:393]     Authorization: Bearer sGzdreLBsG4PxiTPqFUw1-PuRYg_5pQzmQOAMHFSW3s
I1118 11:17:43.179935    4792 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I1118 11:17:43.179935    4792 round_trippers.go:411] Response Headers:
I1118 11:17:43.180921    4792 round_trippers.go:414]     Cache-Control: no-cache, private
I1118 11:17:43.181934    4792 round_trippers.go:414]     Content-Type: application/json
I1118 11:17:43.181934    4792 round_trippers.go:414]     Date: Mon, 18 Nov 2019 19:17:42 GMT
I1118 11:17:43.188922    4792 occlient.go:1769] Status of frontend-wildwest-1-fgtmj pod is Running
 X  Waiting for component to redeploy [5m]
I1118 11:22:49.128907    4792 cmdutils.go:48] Error:
waited 4m0s but couldn't find running pod matching selector: 'deploymentconfig=frontend-wildwest'
 X  waited 4m0s but couldn't find running pod matching selector: 'deploymentconfig=frontend-wildwest'

@amitkrout Yeah, let me take this up. I'm going to refactor https://github.com/openshift/odo/pull/2426 completely and give some more verbose / better errors for the timeout.

I tried to multiple times using cluster running on AWS, and also using CRC. So far no luck in trying to reproduce this :-/
@dgolovin or @amitkrout  If you can reproduce this can you please share the output of the following command?
kubectl describe pods -n <namespace where frontend is running>

Hey @dgolovin and @amitkrout https://github.com/openshift/odo/pull/2627 has been merged in to try and help with regards to outputting more information with regards to what is actually causing the issue.
Do you mind @dgolovin using the latest master build and letting us know when you get the issue again what the errors say?

 girishramnani added the status/blocked label 8 days ago

@girishramnani
what is this blocked on?

I'm going to close this as we haven't heard back from @dgolovin (Slack & GitHub).
Please let us know if you encounter this issue again!

works for me with latest release v1.2.0,


[Bug report] hilbertspace.energy_by_bare_index

Documentation check
If the bug manifests in unexpected behavior (as opposed to a crash), confirm that you have consulted the
API documentation

[x] I have checked the API documentation.
[x] I could not locate relevant information in the documentation or information is missing.

Describe the bug
The method hilbertspace.energy_by_bare_index raises an exception AttributeError: 'numpy.ndarray' object has no attribute '_parameters'
Expected behavior
The behavior expected was for the output of hilbertspace.energy_by_bare_index(bare_tuple) to be the same as hilbertspace.energy_by_dressed_index(hilbertspace.dressed_index(bare_tuple)).
To Reproduce
The error can be reproduced using the following code:
from scqubits import Oscillator, HilbertSpace, Transmon

tmon = Transmon(
    EJ=40.0,
    EC=0.2,
    ng=0.3,
    ncut=40,
)
osc = Oscillator(E_osc=5.7)
hs = HilbertSpace([osc,tmon])
hs.generate_lookup()

hs.energy_by_bare_index((0,0))

OS and version used (please complete the following information):

OS: Manjaro Linux
scqubits version 3.1.0
Python version 3.10.6

Additional context
This code was also tested on the jk-ejectfit branch and produced the same error.

I can confirm that bug & will produce a fix.

Bug fix issued under https://github.com/scqubits/scqubits/pull/174/commits/679039374e77e225c5de7309a8f9513c6d5b2ec2.
@benmcdonough20 Please confirm that the newest master version eliminates the issue.

I checked out the jk-deprecations branch and I can confirm that the issue is fixed!
The newest master branch still seems to produce the issue though. I checked the open pull requests and it seems like the changes haven't been merged into master yet, is this correct?

@benmcdonough20 Correct, still had to click on the "confirm merge" button. Done now!


Preventing caching globally

Currently setting enabledForRequest to false only prevents caching of pages. The idea was that this prevents anything from being cached, including components. The use case being that for example logged in users should not put anything in the cache.
The problem is that there is no way to achieve that using vue-server-renderer: It will always call the serverCacheKey() method on a component and expects it to return a string, which is then passed to the component cache instance. At that point this module is unable to tell if it should write it in the cache or not, because no context about the request is available.
Maybe there is a different way to approach this problem, some time should be invested to look for solutions.

Implemented in refactor for Nuxt 3: Using enabledForRequest now works for all caches.


Using Option.SetName disallows non-set Options

If any Option with a SetName is provided, a parsing error will result if any Option without a SetName is provided. e.g. with the options
[Option('v', "Verbose")]
public bool Verbose { get; set; }

[Option('r', "ToggleRefresh", SetName = "Refresh")]
public IEnumerable<int> ToggleRefreshRate { get; set; }

and the arguments -v -r 60 120 results in errors:
ERROR(S):
  Option 'Verbose, v' is defined along with an incompatible one.
  Option 'ToggleRefresh, r' is defined along with an incompatible one.

Presumably, sets should be exclusive with one another, but not exclusive with non-set items.

The problem here is that you've two options and two sets. The option without as set implicitly belongs to an empty set (say the "" set). (Same thing when you define ten options without a set, all ten belong to "" implicit empty set).
In this way one-option set result in being mutually exclusive by each other.
I hop I was clear... :smile: If this not helped, please ask again.

Yes, your explanation was clear. I suppose this becomes a matter of design then. It seems like the empty set should not act as a set.
For example, assume you have two sets: 'ftp' and 'web', where the options need to be exclusive. Now assume you have an option that is relevant in both cases, such as 'verbose'. In the current state, it is not possible to simultaneously support MyUtility -v <ftp stuff> and MyUtility -v <web stuff>. This seems like a very common use case.

I agree that it makes (more) sense to have any option not belonging to any set not be considered  by set constraint rules.

@Sycobob, @mizipzor, OK, this makes sense...!
I'll write a unit test to put in evidence this issue.

@Sycobob, @mizipzor, please check latest source.
This logic is now implemented.
P.S.: just to be scrupulous, I'll all add tests when Required attribute is involved.


Apply consistent styling across app

Is this more of a notice than an active feature issue? Which parts of the current app have inconsistent styling?

more of a notice for later on when we try to make everything pretty


build a windows project to use the mxnet lib,we can not execute it? what's the problem

there is a simple example,i can build it with no error,but when i run the program, it shows the console but do nothing,and can not run to printf.what's the matter???
include <stdio.h>
include <windows.h>
include "base.h"
include "c_api.h"
int main()
{
printf("strat");
KVStoreHandle out;
MXKVStoreCreate("local", &out);
return 0;

}

You are probably missing some DLLs. You will need to add the path to all
the dependent DLLs to you PATH. For example, if you use OpenBLAS, then
libopenblas.dll should be in your PATH, same as OpenCV and cuDNN.
On Wed, Dec 9, 2015 at 10:06 AM, freepjf<EMAIL_ADDRESS>wrote:

there is a simple example,i can build it with no error,but when i run the
program, it shows the console but do nothing,and can not run to
printf.what's the matter???
#include
#include
#include "base.h"
#include "c_api.h"
int main()
{
printf("strat");
KVStoreHandle out;
MXKVStoreCreate("local", &out);
return 0;
}
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

the project directory have all the dll:
cudart32_75.dll  cudart64_75.dll cudnn64_70.dll libgcc_s_seh-1.dll libgfortran-3.dll libmxnet.dll
libopenblas.dll libquadmath-0.dll libzmq-v120-mt-4_0_4.dll opencv_world300.dll
i can run the console with no error,  but it appear forever, do nothing. i build it with vs2013.

Could you try if you can use the binary distribution here?:
https://github.com/dmlc/mxnet/releases/download/weekly_binary_build/20151209_win64_cpu_only.7z
Remember to run the setupenv.cmd file before opening
app/MxnetTestApp/MxnetTestApp.sln
On Wed, Dec 9, 2015 at 10:56 AM, freepjf<EMAIL_ADDRESS>wrote:

the project directory have all the dll:
cudart32_75.dll cudart64_75.dll cudnn64_70.dll libgcc_s_seh-1.dll
libgfortran-3.dll libmxnet.dll
libopenblas.dll libquadmath-0.dll libzmq-v120-mt-4_0_4.dll
opencv_world300.dll
i can run the console with no error, but it appear forever, do nothing. i
build it with vs2013.
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-163090236.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

i use your project to build, first:run setupenv.cmd,then open the project app/MxnetTestApp/MxnetTestApp.sln, copy all dll to the project dir, build is ok but run is the same error ?  if there any different enviroment between us?

did you try the cpu-only version or the gpu version? For GPU, you will also
need cuDNN library.

run setupenv.cmd
open VS, then open the solution (VS must be started after you run
setupenv.cmd, or it won't load the PATH environment variable correclty)
if using cuDNN, put cudnn64_xx.dll into 3rdparty/cudnn. Make sure the
cudnn DLL file is in 3rdparty/cudnn/bin
build and run the program

On Wed, Dec 9, 2015 at 12:19 PM, freepjf<EMAIL_ADDRESS>wrote:

i use your project to build, first:run setupenv.cmd,then open the project
app/MxnetTestApp/MxnetTestApp.sln, copy all dll to the project dir, build
is ok but run is the same error ? if there any different enviroment between
us?
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-163103737.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

I have the same problem.
when I comment the functions in c_predict_api.h, it works well.
But when I use the functions , it just shows the console and even can not print the messages I put in the first line in main function.

That's strange. Both CPU version and GPU version works alright for me, with
and without c_predict_api.h.
On Wed, Dec 9, 2015 at 12:26 PM, sofiawu<EMAIL_ADDRESS>wrote:

I have the same problem.
when I comment the functions in c_predict_api.h, it works well.
But when I use the functions , it just shows the console and even can not
print the messages I put in the first line in main function.
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-163105883.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

i take the same order, use your project, only build and run，but there is the same problem.

Could you attach a screenshot of the error, both when running from console
and from VS? I cannot reproduce it here.
On Wed, Dec 9, 2015 at 12:45 PM, freepjf<EMAIL_ADDRESS>wrote:

i take the same order, use your project, only build and run，but there is
the same problem.
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-163107784.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

i have email you with the 126 email, take a photo, you kan see i add printf,but the console didn't show,  f10 run it can not go to main. it can run with nothing error  but can not run to main.

I see. VS is trying to load the debug symbols for the system DLLs. You can
see it from the "Output" window. If you wait for long enough, it will
eventually finish and enter the main function. This usually takes around a
minute or so, depending on your environment.
You can get rid of this behavior by undefining the "_NT_SYMBOL_PATH"
environment variable. Go to "My Computer"->"Properties"->"Advanced system
settings"->"Environment Variables"->"System variables", find
"_NT_SYMBOL_PATH", and then click "delete". Then, restart your VS, and it
should work just fine.
On Wed, Dec 9, 2015 at 1:30 PM, freepjf<EMAIL_ADDRESS>wrote:

i have email you with the 126 email, take a photo, you kan see i add
printf,but the console didn't show, f10 run it can not go to main. it can
run with nothing error but can not run to main.
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-163115407.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

I have the same problem as @freejf.
I wait for a very long time maybe an hour and still can not enter the main function.
I check the system variables  and can not find the _NT_SYMBOL_PATH

my computer config is E3-1230 v2,the environment did not have NT_SYMBOL_PATH, the problem is running for several hours。 it can not work。 the dll is no longger load from then on when i email you.
i think there is something different environment between you and me.

Can you pause (Ctrl+Alt+Break) the program and see what it is doing? Is it
running in libmxnet.dll or some other dll?
On Wed, Dec 9, 2015 at 3:07 PM, freepjf<EMAIL_ADDRESS>wrote:

my computer config is E3-1230 v2,the environment did not have
NT_SYMBOL_PATH, the problem is running for several hours。 it can not work。
the dll is no longger load from then on when i email you.
i think there is something different environment between you and me.
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-163136284.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

it saids:
title: The call stack contains only external code
you need to turn off just my code and load symbols in order to view source for this location
module information
version: 6.1.7601.19018 (win7sp1_gdr.150928-1507)
Original Location  C:\Windows\System32\ntdll.dll

can you build a exe file to another pc(clean pc) to run?you can print "helloe word" for example.

I have the same problem, Have you solved it?

Sorry about late response. I really don't have a clue at this moment. Is it
possible for us to talk on QQ and show me your screen remotely?
On Sun, Dec 13, 2015 at 7:06 PM, zhubuntu<EMAIL_ADDRESS>wrote:

I have the same problem, Have you solved it?
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-164247471.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

@hjk41 That will be so good, this is my friend's QQ number 282206777 ,he is having this problem too,and he is always at the laboratory. Thank you very much .

i tried to use dynamic link,it is fine.

@freepjf Do you mean use mxnet as dynamic link ,or you build your program as dynamic link.I did build my C++ program with libmxnet.dll but it didn't work.

@freepjf https://github.com/freepjf I guess you mean linking the VC
runtime library as dynamic?
On Mon, Dec 14, 2015 at 8:44 PM, zhubuntu<EMAIL_ADDRESS>wrote:

@freepjf https://github.com/freepjf Do you mean use mxnet as dynamic
link ,or you build your program as dynamic link.I did build my C++ program
with libmxnet.dll but it didn't work.
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/867#issuecomment-164427767.

--
HONG Chuntao
System Research Group
Microsoft Research Asia

I use  LoadLibrary("libmxnet") when I build my project, it is fine

After some debugging with @zhubuntu, we found that Windows 7 cannot correctly execute the problem, while Windows 8.1 and Windows 10 work fine. If you are having the same issue, try @freepjf 's approach, or upgrade your OS.

oh my god... is this issue fixed ?

My os is windows7, and i compiled release and debug version, is not work!!! and i tried https://github.com/dmlc/mxnet/releases/download , also not work

I also found that Window7 cant not work ,but I have sloved it.
method:

use  windows api function :  LoadLibraryA
use  windows api function:   GetProcAddress , load interface of mxnet


Fix internal connector

Description
This PR should fix the internal connector cannot update bug.
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

no big concern, fix checkstyle error , make sure CI can pass
* What went wrong:
Execution failed for task ':opensearch-ml-plugin:spotlessJavaCheck'.
> The following files had format violations:
      src/test/java/org/opensearch/ml/action/models/UpdateModelTransportActionTests.java
          @@ -651,7 +651,9 @@
           ????????doReturn(FunctionName.TEXT_EMBEDDING).when(mockModel).getAlgorithm();
           ????????doReturn(MLModelState.REGISTERED).when(mockModel).getModelState();

          -????????doThrow(new?IOException("Exception?occurred?during?building?update?request.")).when(mockUpdateModelInput).toXContentForUpdateRequestDoc(any(),?any());
          +????????doThrow(new?IOException("Exception?occurred?during?building?update?request."))
          +????????????.when(mockUpdateModelInput)


openshift: infra node is not created

FAILED - RETRYING: command (7 retries left).
FAILED - RETRYING: command (6 retries left).
FAILED - RETRYING: command (5 retries left).
FAILED - RETRYING: command (4 retries left).
FAILED - RETRYING: command (3 retries left).
FAILED - RETRYING: command (2 retries left).
FAILED - RETRYING: command (1 retries left).
fatal: [localhost]: FAILED! => {"attempts": 30, "changed": true, "cmd": "/usr/bin/oc get nodes -l \"region=infra\" | wc -l", "delta": "0:00:01.313789", "end": "2018-05-30 18:21:41.381096", "failed": true, "rc": 0, "start": "2018-05-30 18:21:40.067307", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "0", "stdout_lines": ["0"]}

PLAY RECAP *********************************************************************
localhost                  : ok=52   changed=25   unreachable=0    failed=1

/label orchestrator/openshift
https://circleci.com/gh/Azure/acs-engine/29050#artifacts/containers/0
/kind flake
@jim-minter @pweil- @mjudeikis @kwoodson I have seen this a couple of times when doing my own deployments

/label orchestrator/openshift

bumpt. Got this one too. Any idea how to debug?
api model has infra defined:
    {
        "name": "infra",
        "count": 1,
        "vmSize": "Standard_D4s_v3",
        "osType": "Linux",
        "availabilityProfile": "AvailabilitySet",
        "storageProfile": "ManagedDisks",
        "distro": "ubuntu",
        "imageReference": {
          "name": "centos7-3.10-xxxx",
          "resourceGroup": "images"
        },
        "role": "infra",
        "fqdn": "",
        "preProvisionExtension": null,
        "extensions": []
      }
    ],

infra cound:
  "infraCount": {
      "value": 1
    },

Just after this got this one:
 "status": "Failed",
  "error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'.",
    "details": [
      {
        "code": "AllocationFailed",
        "message": "Allocation failed. We do not have sufficient capacity for the requested VM size in this region. Read more about improving likelihood of allocation success at http://aka.ms/allocation-guidance"
      }
    ]
  }
}

Might be related...

Interesting.  I wonder whether the forthcoming move to scale sets will help this.  https://docs.microsoft.com/en-gb/azure/virtual-machines/windows/allocation-failure

From the activity log in https://circleci.com/gh/Azure/acs-engine/30361#artifacts/containers/0

  {
    "additionalProperties": {
      "channels": "Operation"
    },
    "authorization": {
      "action": "Microsoft.Network/networkInterfaces/write",
      "additionalProperties": {},
      "role": null,
      "scope": "/subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourcegroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0"
    },
    "caller": "ea7ffcfb-14b8-4380-a184-a8f91d3e59f7",
    "category": {
      "additionalProperties": {},
      "localizedValue": "Administrative",
      "value": "Administrative"
    },
    "claims": {
      "aio": "Y2dgYMjRV/BTY+L6dmf5qr9LmgtfAwA=",
      "appid": "c8b9f3de-e578-479c-a84f-8be946a91212",
      "appidacr": "1",
      "aud": "https://management.core.windows.net/",
      "e_exp": "262800",
      "exp": "1528201246",
      "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
      "http://schemas.microsoft.com/identity/claims/objectidentifier": "ea7ffcfb-14b8-4380-a184-a8f91d3e59f7",
      "http://schemas.microsoft.com/identity/claims/tenantid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
      "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "ea7ffcfb-14b8-4380-a184-a8f91d3e59f7",
      "iat": "1528197346",
      "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
      "nbf": "1528197346",
      "uti": "m00pbAI1JUyfP8CFXE8HAA",
      "ver": "1.0"
    },
    "correlationId": "cac195a1-4049-4b58-856d-c71555087cfe",
    "description": "",
    "eventDataId": "2b1564a8-0892-45d2-904d-ddb09f28a9e7",
    "eventName": {
      "additionalProperties": {},
      "localizedValue": "End request",
      "value": "EndRequest"
    },
    "eventTimestamp": "2018-06-05T11:21:11.616421+00:00",
    "httpRequest": null,
    "id": "/subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourcegroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0/events/2b1564a8-0892-45d2-904d-ddb09f28a9e7/ticks/636637944716164216",
    "level": "Error",
    "operationId": "e4d46fe2-1243-4f3f-baa7-8f4472364f7c",
    "operationName": {
      "additionalProperties": {},
      "localizedValue": "Microsoft.Network/networkInterfaces/write",
      "value": "Microsoft.Network/networkInterfaces/write"
    },
    "properties": {
      "statusCode": "BadRequest",
      "statusMessage": "{\"error\":{\"code\":\"InvalidResourceReference\",\"message\":\"Resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/loadBalancers/ocp-router-lb-32923044/backendAddressPools/backend referenced by resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\"details\":[]}}"
    },
    "resourceGroup": "openshift-eastus-20227",
    "resourceGroupName": "openshift-eastus-20227",
    "resourceId": "/subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourcegroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0",
    "resourceProviderName": {
      "additionalProperties": {},
      "localizedValue": "Microsoft.Network",
      "value": "Microsoft.Network"
    },
    "resourceType": {
      "additionalProperties": {},
      "localizedValue": "Microsoft.Network/networkInterfaces",
      "value": "Microsoft.Network/networkInterfaces"
    },
    "status": {
      "additionalProperties": {},
      "localizedValue": "Failed",
      "value": "Failed"
    },
    "subStatus": {
      "additionalProperties": {},
      "localizedValue": "",
      "value": ""
    },
    "submissionTimestamp": "2018-06-05T11:21:37.108635+00:00",
    "subscriptionId": "aa3d3369-e814-4495-899d-d31e8d7d09ce",
    "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
  },
  {
    "additionalProperties": {
      "channels": "Operation"
    },
    "authorization": {
      "action": "Microsoft.Network/networkInterfaces/write",
      "additionalProperties": {},
      "role": null,
      "scope": "/subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourcegroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0"
    },
    "caller": "ea7ffcfb-14b8-4380-a184-a8f91d3e59f7",
    "category": {
      "additionalProperties": {},
      "localizedValue": "Administrative",
      "value": "Administrative"
    },
    "claims": {
      "aio": "Y2dgYMjRV/BTY+L6dmf5qr9LmgtfAwA=",
      "appid": "c8b9f3de-e578-479c-a84f-8be946a91212",
      "appidacr": "1",
      "aud": "https://management.core.windows.net/",
      "e_exp": "262800",
      "exp": "1528201246",
      "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
      "http://schemas.microsoft.com/identity/claims/objectidentifier": "ea7ffcfb-14b8-4380-a184-a8f91d3e59f7",
      "http://schemas.microsoft.com/identity/claims/tenantid": "72f988bf-86f1-41af-91ab-2d7cd011db47",
      "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "ea7ffcfb-14b8-4380-a184-a8f91d3e59f7",
      "iat": "1528197346",
      "iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
      "nbf": "1528197346",
      "uti": "m00pbAI1JUyfP8CFXE8HAA",
      "ver": "1.0"
    },
    "correlationId": "cac195a1-4049-4b58-856d-c71555087cfe",
    "description": "",
    "eventDataId": "fe1605f9-fdb4-4762-9be5-90ec36516303",
    "eventName": {
      "additionalProperties": {},
      "localizedValue": "End request",
      "value": "EndRequest"
    },
    "eventTimestamp": "2018-06-05T11:21:11.553932+00:00",
    "httpRequest": {
      "additionalProperties": {},
      "clientIpAddress": "<IP_ADDRESS>",
      "clientRequestId": "ad5609da-3439-4cf3-896f-dd13dd7ab0c4",
      "method": "PUT",
      "uri": null
    },
    "id": "/subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourcegroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0/events/fe1605f9-fdb4-4762-9be5-90ec36516303/ticks/636637944715539323",
    "level": "Error",
    "operationId": "b0d86f87-e1bd-4e68-a801-2ba06bc0f8d8",
    "operationName": {
      "additionalProperties": {},
      "localizedValue": "Microsoft.Network/networkInterfaces/write",
      "value": "Microsoft.Network/networkInterfaces/write"
    },
    "properties": {
      "responseBody": "{\"error\":{\"code\":\"InvalidResourceReference\",\"message\":\"Resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/loadBalancers/ocp-router-lb-32923044/backendAddressPools/backend referenced by resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\"details\":[]}}",
      "serviceRequestId": "07b70bf5-d9c8-403c-bbc3-a2d04c2155b4",
      "statusCode": "BadRequest",
      "statusMessage": "{\"error\":{\"code\":\"InvalidResourceReference\",\"message\":\"Resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/loadBalancers/ocp-router-lb-32923044/backendAddressPools/backend referenced by resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\"details\":[]}}"
    },
    "resourceGroup": "openshift-eastus-20227",
    "resourceGroupName": "openshift-eastus-20227",
    "resourceId": "/subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourcegroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0",
    "resourceProviderName": {
      "additionalProperties": {},
      "localizedValue": "Microsoft.Network",
      "value": "Microsoft.Network"
    },
    "resourceType": {
      "additionalProperties": {},
      "localizedValue": "Microsoft.Network/networkInterfaces",
      "value": "Microsoft.Network/networkInterfaces"
    },
    "status": {
      "additionalProperties": {},
      "localizedValue": "Failed",
      "value": "Failed"
    },
    "subStatus": {
      "additionalProperties": {},
      "localizedValue": "Bad Request (HTTP Status Code: 400)",
      "value": "BadRequest"
    },
    "submissionTimestamp": "2018-06-05T11:21:37.108635+00:00",
    "subscriptionId": "aa3d3369-e814-4495-899d-d31e8d7d09ce",
    "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
  }

and more specifically
      "statusMessage": "{\"error\":{\"code\":\"InvalidResourceReference\",\"message\":\"Resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/loadBalancers/ocp-router-lb-32923044/backendAddressPools/backend referenced by resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\"details\":[]}}"

and
    "properties": {
      "responseBody": "{\"error\":{\"code\":\"InvalidResourceReference\",\"message\":\"Resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/loadBalancers/ocp-router-lb-32923044/backendAddressPools/backend referenced by resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\"details\":[]}}",
      "serviceRequestId": "07b70bf5-d9c8-403c-bbc3-a2d04c2155b4",
      "statusCode": "BadRequest",
      "statusMessage": "{\"error\":{\"code\":\"InvalidResourceReference\",\"message\":\"Resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/loadBalancers/ocp-router-lb-32923044/backendAddressPools/backend referenced by resource /subscriptions/aa3d3369-e814-4495-899d-d31e8d7d09ce/resourceGroups/openshift-eastus-20227/providers/Microsoft.Network/networkInterfaces/ocp-infra-32923044-nic-0 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.\",\"details\":[]}}"
    },

Seems like we are missing a dependsOn in our router infra resources.

Seems like we are missing a dependsOn in our router infra resources.

Which I think we cannot set atm because the router loadbalancer is in a different template (kubernetesmasterresources.t) from that of the infra nic (kubernetesagentresourcesvmas.t).

Testing https://github.com/Azure/acs-engine/pull/3173


LDAP Docs are underdefined

Seems a bunch of fields are missing from docs on the LDAP Authentication plugin. It would be useful to have them better documented, along with examples.
For example:
authentication {
  permissionsFile = "conf/permissions.yaml"

  # allow mixed authentication, so we can fallback to files if necessary when ldap is down
  type = "file,ldap"

  file {
    # format is username:<htpasswdhash>:group1,group2
    # generate with echo "$(htpasswd -B -n -b -s username password):group1,group2" >>user.conf
    userfile = "conf/users.conf"
  }

  ldap {
    # if schema is rfc2307bis, the group search filter for a user will use the value of `dn` in for the
    # `groupAttribute` attribute. Otherwise, it will use username.
    # i.e. rfc2307bis: cn=Users,dc=company,dc=com (&(name=*)(member=cn=User Name,cn=Users,dc=company,dc=com))
    schema = "rfc2307bis"
    host = "your.ldap.server.com"

    # the attribute on a User object that has the username in it
    userAttribute = "sAMAccountName"
    # the attribute on a User object that contains the uid
    userNumberAttribute = "uidNumber"
    # usersub is the additional nesting that Users live under. If usersub="cn=Users"
    # and the searchbase="dc=company,dc=com", then any authentication attempt
    # will be made with the root cn=Users,dc=company,dc=com
    usersub = "cn=Users"

    # the attribute on a Group object that holds the identifier of participating users
    # i.e. member: cn=User Name,cn=Users,dc=company,dc=com
    groupAttribute = "member"
    # the attribute on a Group object that describes the group name (used for permissions.yaml
    # granting e.g. g=MyGroupName)
    groupNameAttribute = "name"
    # groupsub is the subtree that all Group objects live underneath
    groupsub = "cn=Groups"

    # searchbase is the root of all searches
    searchbase = "dc=your,dc=company,dc=com"
    ssl = true # true means ldaps://, false means ldap://
  }
}

Thank you for this. I spent yesterday struggling with this and your comment gave me what I needed to figure out how to connect collins to AD instead of LDAP (we use ipa/ldap almost everywhere, but for a set of services, it is AD).
Since I don't see a good place to put this, I'll show how our (sanitized) AD is setup and then how we configured collins to talk to it. The biggest problem is that instead of the username, AD puts the First and Last name in the DN, which made it so that collins could not find the group membership. The other issue was that uid is definitely required, though I don't know what collins uses it for.
A user entry:
dn: CN=First Last,OU=Users,OU=Company,DC=example,DC=net
cn: First Last
distinguishedName: CN=First Last,OU=Users,OU=Company,DC=example,DC=net
memberOf: CN=collins-admins,OU=COLLINS,OU=Products,OU=Company,DC=example,DC=net
employeeNumber: 1042

A group entry:
# collins-admins, COLLINS, Groups - Software Products, Company, example.net
dn: CN=collins-admins,OU=COLLINS,OU=Products,OU=Company,DC=example,DC=net
cn: collins-admins
member: CN=First Last,OU=Users,OU=Company,DC=example,DC=net
distinguishedName: CN=collins-admins,OU=COLLINS,OU=Products,OU=Company,DC=example,DC=net
name: collins-admins

ldap {
host = "ad01.example.net"
anonymous = false
schema = "rfc2307bis"
searchbase = "OU=Company,DC=example,DC=net"
userAttribute = "sAMAccountName"
userNumberAttribute = "employeeNumber"
usersub = "OU=Users"
groupsub = "OU=COLLINS,OU=Products"
groupAttribute = "member"
groupNameAttribute = "name"

cacheSpecification = "expireAfterWrite=30s"
binddn = "CN=svc-ldap-collins,OU=Service_Accounts,OU=Company,DC=example,DC=net"
bindpwd = "supersecret"

}

@ytjohn glad it helped. Ill punt this ticket over to someone in tumblr to get it integrated into the gh-pages. cc @defect @roymarantz

I spoke too soon actually. It is letting me login, but does not in fact, seem to be getting any groups. I assumed it was because the error went away.  It would be nice to have a way to show what groups a logged in user belongs to (say a debug log option).


Add more unit tests by GitHub Copilot Chat

Always think writing unit tests is too boring, hope GitHub Copilot Chat could help me to do the job.

Dude is using light theme Omg! 😳

Dude is using light theme Omg! 😳

It is not my usual environment. I don't use VSCode (GitHub Codespace), but GitHub Copilot Chat is not available for JetBrains' IDE.
But anyway, I am still using dark theme for UI and light theme for code with slightly grey background. Plus, I am also using a non-fixed width font. Every developers are going to hate me now 🤣, but I love it.

Dude is using light theme Omg! 😳

It is not my usual environment. I don't use VSCode (GitHub Codespace), but GitHub Copilot Chat is not available for JetBrains' IDE.
But anyway, I am still using dark theme for UI and light theme for code with slightly grey background. Plus, I am also using a non-fixed width font. Every developers are going to hate me now 🤣, but I love it.

Bless your eyes DUDE!

Close as it is not as smart as I think.


[WIP] Make admin handlers through registered factories

Commit Message: Make admin handlers through REGISTER_FACTORY
Additional Description: This allows extensions to add admin handlers without having to somehow execute a server->addHandler call (e.g. by also binding them through a BootstrapExtension config, or by calling it in a custom main()), and cleans up the dependency tangle of the prior long chain of makeHandler calls.
Risk Level: Unknown
Testing: Passes existing tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

jmarantz is opposed to factory-based initializers to the extent that he prefers the long messy constructor. I'm not attached enough to this to argue for it.