[CT-405] [Feature] Expose Jinja function to read seed files as an alternative to run_query

Is there an existing feature request for this?

[X] I have searched the existing issues

Describe the Feature
In the spirit of keeping things DRY, we seek to abstract static data from our queries. If the data is a small list or dictionary, we can just use a {% set %} at the top of the query. However, once the data gets larger and used by multiple queries, we start noticing a lot of repeated {% set %} statements that produce a lot of boiler plate code.
Having the possibility of reading the data from a seed file at compile time would allow us one more level of abstraction: having the static data as a seed file, and then loading it as an agate.Table wherever it's needed, e.g.:
{% set table = read_seed('seed_my_seed_model') %}

{% for row in table %}
-- Do something with rows.

Moreover, this way we eliminate errors from copying and pasting static values that are re-used in multiple queries.
Finally, having a single seed file means that in the event the data has to change we can update only one file, instead of each individual query file.
Describe alternatives you've considered
I've come across the following pattern several times:
{%- set query -%}
  SELECT * FROM {{ ref('seed_my_seed_model') }}
{%- endset -%}

{%- set table = run_query(query) -%}

{%- for row in table -%}
-- Do something with rows

While this works, the pattern is making unnecessary database calls as seed files are static that change infrequently (as the dbt docs describe them).
Moreover, given that seed files are version controlled, everyone in my team has access to them locally, and doesn't need to call the database to access the data.
Finally, this pattern also requires the seed file to already be present in the database, which may not be the case if the seed file is new, or adds an additional dbt seed step.
Who will this benefit?
Any teams that needs to inject static data into their queries, and that static data has gotten too large to copy around every time, leading to significant amounts of duplicated data and boilerplate code.
Are you interested in contributing this feature?
Yes, of course. I'd like some guidance on where to write this.
Anything else?
This could be extended to simply supporting any custom Python function as a custom Jinja filter, however, as per #4571, I understand there is a security concern about doing this. For this reason, I have opted to open a feature request for a single filter, in the spirit of #1894. Security concerns are minimized further by limiting the data that can be loaded to only existing seed files (instead of any csv file).

Hi @tomasfarias, thanks for your detailed request and the willingness to contribute! I think you have a good intuition about the appropriate solution shifting as your static data gets larger. For a small number of values, you might consider defining a jinja macro that returns the static values, and then calling that macro in each of your files to reduce duplication.
You rightfully call out that,

... once the data gets larger and used by multiple queries

this pattern stops making quite as much sense. I think this is because if you have dozens of rows of data, you probably want to be treating it like data and using sql joins instead of using it to template the sql queries. To use your example code, the following...
{%- set query -%}
  SELECT * FROM {{ ref('seed_my_seed_model') }}
{%- endset -%}

{%- set table = run_query(query) -%}

{%- for row in table -%}
-- Do something with rows

could become something like
with other_model as (
  select * from {{ ref('another_model') }}
),

seed as (
  select * from {{ ref('seed_my_seed_model') }}
)

select

  other_model.column,
  seed.outcome

from other_model
join seed
  on other_model.column = seed.if_condition

Because this query gets issued to your warehouse, the seed data isn't being transferred over the network each time it is referenced and the larger seed data is being processed in your warehouse which is better suited to that task.
Does this sound like it could work for your project?
Special thanks to @jtcohen6 for the example sql and for discussing the solution space with me.

Hey @nathaniel-may. Thanks for the quick and detailed response.

For a small number of values, you might consider defining a jinja macro that returns the static values, and then calling that macro in each of your files to reduce duplication.

The main motivation behind the issue was that we have a set of seed files maintained by non-technical folks. Although teaching them how to maintain a jinja macro is more than possible, they are more used to CSV files as they can easily export them from Excel spreadsheets.

I think this is because if you have dozens of rows of data, you probably want to be treating it like data and using sql joins instead of using it to template the sql queries.

Just to describe our use case more in detail: we have some CSV files that are updated to perform many-to-one mappings.
Imagine the following CSV which maps several job titles to a single id (data is made up, purely for illustration purposes):
| id | job               |
| -- | ----------------- |
| 1  | software engineer |
| 1  | data engineer     |
| 2  | product manager   |
| 2  | product owner     |

When provided with this CSV, we need to construct a CTE for each ID:
{# Imagine we have a table object already loaded somehow #}

{# It may be more efficient to use a dictionary or using some group by method, this is just a quick example #}
{% set unique_ids = set((row[0] for row in table.rows)) %}

{% for unique_id in unique_ids %}

    {% set jobs = [row[1] for row in table.rows if row[0] == unique_id] %}

    with job_category_{{ unique_id }} as (
        select job, * from {{ ref('another_model') }}
        where job in ({{ jobs | join(',') }})
    ),
{% endfor %}

{# We now have 2 CTEs created, one for each of the two unique job IDs #}

and the larger seed data is being processed in your warehouse which is better suited to that task.

We could refactor the CTEs with a JOIN, it's just that since the data is known at compile time, it would save us a dbt seed run in our CI/CD pipeline. I understand I may be prematurely optimizing, though, or that our use case may be too specific (we have a particularly beefy CI/CD pipeline).

@tomasfarias, thanks for the additional context. This helps a lot.
First, while I certainly appreciate your desire to keep a zippy CI/CD pipeline, if adding an additional seed to your project negatively impacts performance, I would encourage you to log a bug ticket with us because it should be a near negligible difference.
Seeds are generally used for data which never changes or changes very infrequently (docs). Since this is data being maintained by another team, you might consider treating it as a source instead. I know there are some ways to do this on most warehouses with Google sheets.
I would like to continue to help find a pattern that works well for your team in this ticket. However, to clearly address the original ask we aren't planning to support the ability to do file IO in jinja templating because of all the additional complications it brings, and because it would be considered an anti-pattern for the majority of projects.

Understandable, @nathaniel-may thanks for your replies so far. I would like to make one more final plea to allow folks to implement custom Jinja filters, but I understand the arguments in https://github.com/dbt-labs/dbt-core/issues/4571. I guess this is one we'll just have to fork and implement it ourselves.
I have no more comments, so I'm closing this issue. Again, thanks for the replies and amazing work in dbt 🎉


CLOUD-59081 Infinite polling fix

@doktoric @keyki

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/142/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2651/


CAMEL-10671 Broken build fix

Skipping non-existent tests in Ceylon example project attempting to fix the broken build.

Thanks for the effort! I don't think this will solve our issue in CI build. The problem is not related to running tests, but to running any Maven phase that invokes Ceylon Maven plugin without having packaged artifact of Camel dependencies in the Maven reactor. In that case Maven will resolve from the reactor a target/classes directory and not the JAR file as Maven Ceylon plugin requires.
This can be easily reproduced by running ./mvnw compile -pl :camel-core,:camel-example-ceylon.

@zregvart Do we need to compile the example in the Daily build?  Maybe put it in another place could be good way to go.

I believe this one can be closed since Zoran fixed the problem in another way. Thanks by the way for the effort


packages for realtimestt cannot be found.

usr_40476@localhost:~/Downloads> pipx install *.whl
Note: Dependent package 'av' contains 1 apps
  - pyav
Note: Dependent package 'ctranslate2' contains 7 apps
  - ct2-fairseq-converter
  - ct2-marian-converter
  - ct2-openai-gpt2-converter
  - ct2-opennmt-py-converter
  - ct2-opennmt-tf-converter
  - ct2-opus-mt-converter
  - ct2-transformers-converter
Note: Dependent package 'numpy' contains 1 apps
  - f2py
Note: Dependent package 'huggingface-hub' contains 1 apps
  - huggingface-cli
Note: Dependent package 'charset-normalizer' contains 1 apps
  - normalizer
Note: Dependent package 'tqdm' contains 1 apps
  - tqdm
Note: Dependent package 'onnxruntime' contains 1 apps
  - onnxruntime_test
Note: Dependent package 'coloredlogs' contains 1 apps
  - coloredlogs
Note: Dependent package 'humanfriendly' contains 1 apps
  - humanfriendly
Note: Dependent package 'sympy' contains 1 apps
  - isympy
Note: Dependent package 'torch' contains 3 apps
  - convert-caffe2-to-onnx
  - convert-onnx-to-caffe2
  - torchrun

No apps associated with package RealtimeSTT. Try again with '--include-deps' to include apps of dependent packages, which are listed above. If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead.
usr_40476@localhost:~/Downloads>

RealtimeSTT is a library (not an application) and pipx is not typically used for installing libraries. Please use pip instead of pipx for installation.
pip install RealtimeSTT


[FR] Hide App scroll bars when not scrolling

The scroll bar in image grid mode is now always visible, whereas previously it would only appear when scrolling (on Mac).
Scroll bar behavior/look-and-feel is somewhat OS dependent, but the convention on the web is to hide scroll bars when not scrolling for Mac users. I think we should provide the same behavior for users of our App. (IE revert to previous behavior from earlier App versions)

To clarify: the scroll bars are actually only visible when your cursor is over a scrollable area, and are hidden otherwise. 0.5.3-0.5.4 always hid scrollbars on all OSes, and releases before that relied on the system default, which was inconsistent with the rest of the app on Linux/Windows. The current behavior is a middle ground between entirely-unthemed scrollbars and your desired behavior.
Improving the scrollbar experience is definitely on our radar. A couple major obstacles to this currently:

Native scrollbars (which we are styling) do not support CSS transitions, so we can't make them fade in and out
There does not appear to be a way to show them only when their container is actually being scrolled (and in any case, I don't think that we want this, because visible scrollbars are currently the primary indicator that a container can be scrolled)

Yes, I was happy with the change because it will force us to come to a long term solution faster. So we can then forget about it and move on.
I could write a few paragraphs about this, but @lethosor hit the key points.

I'm working on this. I just would like to make scrollbars look decent on other Linux and Windows and not have them mess up layouts so much.


Configure action.yml to use PAT token

Configure action to use PAT token
Made cosmetic changes

@rohan472000 Please review and approve


Upgrade this project

... from a course project to a named project for use in this course and more!
What are your thoughts?
Name suggestions?

I like the name Emerald.
Maybe Emerald Game Engine, just Emerald, Emerald 3D or Emerald Engine
:gem:

Chaos Emerald? https://en.wikipedia.org/wiki/Sonic_the_Hedgehog#Chaos_Emeralds

My proposal is Emerald Engine - EE.
:)

Go for it.


Model - Observation matrix - clone

WHen I am in the matrix hub, then I want to clone the rows/columns into a new matrix.

Checkbox options to select rows/columns to clone

already implemented


[Codelab Issue] Testing Codelab 5.#, Step # - Issue description

Describe the problem
A clear and concise description of what the problem is.
Typo in code for "Your final code for TasksViewModelTest should look like the code below."
awaitNextValue() should have been getOrAwaitValue()
In which lesson and step of the codelab can this issue be found?
Lesson number + step number. (ex. 5.2, Step 7)
Advanced Android in Kotlin 05.1: Testing Basics
10. Task: Writing multiple ViewModel tests
How to reproduce?
What are the exact steps to reproduce the problem?

Paste the code in section "Your final code for TasksViewModelTest should look like the code below." in the TasksViewModelTest.kt file
Observe that the definition of awaitNextValue() is not found.

Versions

What version of Android Studio are you using?
4.1.1

Additional information
Add any other context about the problem here.
codelab: advanced-android-kotlin

Fixed in the next push of the content, thanks.


Unable to install in Atom 1.11.2

OS: 10.11.6
node-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-electron-v1.3-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(electron-v1.3 ABI) (falling back to source compile with node-gyp)
make: *** No rule to make target `../../../../../../Library/Application', needed by `Makefile'.   System Darwin 15.6.0
gyp ERR! command "/Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "build" "--fallback-to-build" "--module=/Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents/lib/binding/Release/electron-v1.3-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents/lib/binding/Release/electron-v1.3-darwin-x64"
gyp ERR! cwd /Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/bin/node /Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp build --fallback-to-build --module=/Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents/lib/binding/Release/electron-v1.3-darwin-x64/fse.node --module_name=fse --module_path=/Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents/lib/binding/Release/electron-v1.3-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 15.6.0
node-pre-gyp ERR! command "/Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jkamenik/.atom/packages/nvatom/node_modules/fsevents
node-pre-gyp ERR! node -v v4.4.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/bin/node" "/Users/jkamenik/Library/Application Support/com.github.atom.ShipIt/update.jDfOF7a/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/jkamenik/.atom/.apm/.apmrc" "--userconfig" "/Users/jkamenik/.atom/.apmrc" "rebuild" "--runtime=electron" "--target=1.3.6" "--arch=x64"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fsevents package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fsevents
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jkamenik/.atom/packages/nvatom/npm-debug.log

Must have been a transient error.  After a reboot it install correctly.


Bulk Service Deliveries calendar popup: Can't view on second entry

Issue:
When using Bulk Service Deliveries, the second entry calendar popup for Delivery Date is obscured and cannot be selected properly. Using a Chrome browser, but tested in Safari with same results.
First:

Second:

Steps to Reproduce:

In an org with PMM installed, click on Bulk Service Deliveries tab.
Lookup a Client record (Contact), select and Program Engagement, select a Service.
Click into the Delivery Date field, select a date, and note you can move the calendar pop up to a variety of years, months, and dates.
Enter remaining fields, and note the SD record was saved (ie created).
Click on "+ Add Entry" to add a second SD record.
Enter Client, Program Engagement, and Service fields as before, and click into the Service Date field.
Note that you can't select the year or month, and scrolling up or down doesn't reveal the rest of the pop up.

Likely cause:
This is likely a CSS issue and need to rethink how the UI maxes out in height before the scrolling takes place.
Workaround:
Create a singular Service Delivery via the related list on another record (Service, Contact, etc.) or navigate away from and back to the Bulk Service Deliveries tab to only use the first line in the bulk tool. Note: because the tool auto-creates the new Service Delivery Record before all fields are entered, make sure to delete the record that was just created (likely with today's date)

Fixed by PR #190


--output, or specify folder to output converted files to

Missing command for --output as I'd like to output the converted files to a different folder than current folder.

@containscafeine created similar issue sometime back https://github.com/kubernetes-incubator/kompose/issues/209

closing, this can be covered in #209


Table formatting for full width characters

🤔 What's changed?
Count full-width characters as 2 spaces to determine table column width for formatting; with half-width characters counted as 1 space, as per existing implementation.
Implementation aligns with vscode-markdown and Cucumber Autocomplete extension.
⚡ What's your motivation?
Fixes cucumber/vscode#99.
Present formatted example:
Feature: Full width characters

  Scenario Outline: Format tables with full width characters
    Given a step table with full width characters
      | 路      | bar |
      | 路路路路路路 |  2步 |
      | 路路路    |  2步 |

Amended formatted example

Note: Appearance varies depending on font support with browsers or systems

Feature: Full width characters

  Scenario Outline: Format tables with full width characters
    Given a step table with full width characters
      | 路           | bar |
      | 路路路路路路 | 2步 |
      | 路路路       | 2步 |

Formatted example using a full-width character supported font
With the aforementioned 'amended formatted example' and the Iosevka font, it appears as follows in the browser...

...and as follows in VSCode:

🏷 What kind of change is this?

:bug: Bug fix (non-breaking change which fixes a defect)

♻ Anything particular you want feedback on?
Whether should be classed as a 'bug' or an 'enhancement'.
📋 Checklist:

[x] I agree to respect and uphold the Cucumber Community Code of Conduct
[x] I've changed the behaviour of the code

[x] I have added/updated tests to cover my changes.

[x] Users should know about my change

[x] I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

Just noticed the Java implementation doesn't test against the testdata set. Still it would be good to add an example there, so if/when we do add tests for that, it will be covered.

My present understanding is that testdata is only used to validate that: parsing - before and after formatting - yields the same messages representation - excluding the formatting itself. To check: modify the formatting of a testdata feature file, and run npm run test inside the javascript directory; it should pass.
Thus, adding my example to testdata would only really test that CJK characters can be parsed and aren't removed; not the formatting itself - not sure whether that is valuable?
The fix is trivial: adding assert.strictEqual(gherkinSource, formattedGherkinSource) - which fails for every feature file as they are unformatted - and of course to reformat the testdata feature files. Though unsure is that best course of action?

Interested to get your perspective on best way forward - and whether should be completed as separate issue:

[ ] Leave existing testdata untouched to validate messages representation before and after formatting. Consider git submoduling gherkin to reference its testdata without duplicating here - which may have tradeoffs.
[ ] Reformat the testdata and migrate unit tests into this testdata. Consider .ndjson and .tokens representations are required or can be removed.
[ ] Introduce new formatting testdata directory and migrate Java and Javascript test suites to use to eliminate duplication.
[ ] Something else?

Okay that's more complicated than expected. I was expecting this project to be in a better state then it is.
Let's offload those concerns to https://github.com/cucumber/gherkin-utils/issues/59 and https://github.com/cucumber/gherkin-utils/issues/62.
Feel free to merge and release this.


 for help, "]?" for Pkg help.
    | | | | | | |/ _` |  |
    | | |_| | | | (_| |  |  Version 1.10.0 (2023-12-25)
    _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
    |__/                   |

    julia> using Webviews

    julia> webview1 = Webview()
    Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
    Webview (0 bindings): pending

    julia> navigate!(webview1, "https://julialang.org/")
    Webview (0 bindings): pending

    julia> y=@async run(webview1)
    Task (runnable) @0x00007f7f9aea4330

    julia>
    [950345] signal (6.-6): Aborted
    in expression starting at none:0
    pthread_kill at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
    raise at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
    abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
    _Z20WTFCrashWithInfoImpliPKcS0_immmm at /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18 (unknown line)
    _ZN3JSC18sanitizeStackForVMERNS_2VME at /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18 (unknown line)
    unknown function (ip: 0x7f7f50a32659)
    unknown function (ip: 0x7f7f50a8f7be)
    unknown function (ip: 0x7f7f50a90aa0)
    JSContextGroupCreate at /lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18 (unknown line)
    unknown function (ip: 0x7f7f4fa1f925)
    unknown function (ip: 0x7f7f4f9ec59f)
    unknown function (ip: 0x7f7f4f9efeeb)
    unknown function (ip: 0x7f7f58b001de)
    g_object_new_with_properties at /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (unknown line)
    g_object_new at /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (unknown line)
    unknown function (ip: 0x7f7f4885eb82)
    unknown function (ip: 0x7f7f4885ebf7)
    unknown function (ip: 0x7f7f488b7773)
    unknown function (ip: 0x7f7f488ac887)
    unknown function (ip: 0x7f7f487b8aac)
    unknown function (ip: 0x7f7f487c8b06)
    unknown function (ip: 0x7f7f48732aca)
    unknown function (ip: 0x7f7f486d0d14)
    unknown function (ip: 0x7f7f486d0ed4)
    unknown function (ip: 0x7f7f486d2cb1)
    unknown function (ip: 0x7f7f50eba25c)
    unknown function (ip: 0x7f7f50f1835c)
    unknown function (ip: 0x7f7f50f18ca2)
    g_main_context_dispatch at /lib/x86_64-linux-gnu/libglib-2.0.so.0 (unknown line)
    unknown function (ip: 0x7f7f58371257)
    g_main_loop_run at /lib/x86_64-linux-gnu/libglib-2.0.so.0 (unknown line)
    gtk_main at /lib/x86_64-linux-gnu/libgtk-3.so.0 (unknown line)
    run at /home/ritu/.julia/packages/Webviews/SLFXk/src/platforms/linux/Impl.jl:115 [inlined]
    run at /home/ritu/.julia/packages/Webviews/SLFXk/src/API.jl:90
    unknown function (ip: 0x7f7fa450fdc5)
    _jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
    ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
    #3 at ./REPL[4]:1
    unknown function (ip: 0x7f7fa450f612)
    _jl_invoke at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
    ijl_apply_generic at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/gf.c:3076
    jl_apply at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
    start_task at /cache/build/builder-amdci4-6/julialang/julia-release-1-dot-10/src/task.c:1238
    Allocations: 2502220 (Pool: 2499829; Big: 2391); GC: 4
    Aborted (core dumped)

`
I am running Linux mint 21.3
`

Thanks for reporting this. It is actually a known issue of this package on Linux because gtk main loop has to be called in the main thread. I haven't figured out how to fix it so you need to avoid this kind of usage for now.


[SvgIcon] Migrate svgicon component

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Cleaned up and added tests.
Closes #4794

Add a visual regression test

How do I do that? node test/cli throws an error...

After npm install in test/regressions/site, and installing docker, docker-compose-up runs, but"
npm run test:regressions -- -c

><EMAIL_ADDRESS>test:regressions /Users/Matt/Projects/material-ui
> node test regressions -l "-c"

Building webpack bundle
Booting HTTP server
Server listening on port 8080
Connected to https://03b97ac9.ngrok.io. Now testing...

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:20:19)
    at new Module (/Users/Matt/Projects/material-ui/node_modules/nightwatch/lib/runner/module.js:7:23)
    at new TestSuite (/Users/Matt/Projects/material-ui/node_modules/nightwatch/lib/runner/testsuite.js:19:17)
    at Runner.runTestModule (/Users/Matt/Projects/material-ui/node_modules/nightwatch/lib/runner/run.js:78:48)

closed! exit code: 1

@mbrookes I'm not sure what's going on with the regression test suite. Do you want to investigate? Otherwise, that PR looks good to me 👍 .

Let's move fast. That PR is already providing value. Thanks.

Do you want to investigate?

I wouldn't know where to start. 😕
Thanks for merging. 👍


Support for sys._current_frames

From @fabioz on April 28, 2017 14:55
Hi IronPython team ;)
I've just updated the PyDev debugger to drop support for older Python versions and it seems I ended up breaking debugging in the current IronPython version because of it...
The issue is that PyDev now requires sys._current_frames to be implemented by the interpreter (available since Python 2.5), but it seems this is not available for IronPython -- this is needed so that the debugger can be faster (i.e.: it runs with untraced frames until some breakpoint is actually added -- at that point it gets the current frames and sets the tracing in them).
So, I'd like to check how feasible it'd be to have this support in IronPython or if there's some workaround to get that info.
Thanks,
Fabio
Copied from original issue: IronLanguages/main#1630

If you add -X:Frames to the command line for ipy.exe, does it solve your issue?

Ok, I see from looking at the code that we don't implement this right now regardless of the -X options. So, this would be a new feature for us to implement.

From @fabioz on June 9, 2017 14:7
No, and neither does adding -X:FullFrames.


Fixed setting Gradle javaVersion for Eclipse project file generation.

Repro:
gradlew -PjavaVersion=16 eclipse

Expected:
Generated Eclipse .classpath project files will use a Java 16 JRE_CONTAINER.
Actual:
The project files use Java 18.
Proposal:
The generated Eclipse project files appear to use sourceCompatibility or targetCompatibility, not options.release. Setting both should be fine since options.release will be preferred for compilation.

@PokeMMO Ah, in that case how about we keep the if but remove the else so sourceCompatibility and targetCompatibility are always set?

Thanks for checking things out! I reverted an unrelated commit, oopsie. Will squash the mess when merging.


MovieLabs Ontology JSON converter

What
A tool that takes MovieLabs Ontology JSON and produces OpenAssetIO Trait/Scheme declaration JSON
Why
The MovieLabs Ontology is a corpus of work representing extensive research to defining traits for the whole of the MediaCreation industry. It is immediately applicable to OpenAssetIO.

Still waiting on the ontology being complete for digital assets enough to make this worth doing


Pass silently on http errors.

Why?

"Pass silently" means only passing without crash, in console will appear message "Warning: File '%s' does not exist".
Silently passing needs for me for converting a lot of HTML to PDF, but if any 404 image then processing fails. So ignoring HTTPErrors give me ability to get PDF at any price.


community/danielgtaylor-betterproto version 2.0.0b6 added

buf currently supports only community/danielgtaylor-betterproto v1.2.5, which is from 05/2020

the newly added version is from 06/2023 - it has a lot of fixes etc.

the PR is a copy-paste of the v1.2.5. The only changes are betterproto==2.0.0b6 in requirements.txt and license_url in buf.plugin.yaml

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for opening a PR. Unfortunately, we only support stable versions at this time.
There's a discussion on the original issue https://github.com/bufbuild/plugins/issues/95#issuecomment-1602976667
But to summarize:

At this time, we only support stable releases of BSR plugins. Once the maintainer releases a v2.0.0, we will pick it up automatically and release it to the BSR.

Going to close this until upstream releases a stable v2.


set fakePlayerResident to true but didn't work

Fake players disappear when server restart, even fakePlayerResident set to true.
Besides, I checked logs that shows
"User <uuid> - <fakeplayername> doesn't currently have data pre-loaded - denying login."
when a fake player is being spawned. Don't know whether this is related to this issue.
Game version: 1.20.1
Mod version: 2.7.0

the same pb

the same pb

经过测试 是2.7.0的假人控制模组会出现这个bug，回退到2.6.0就没有这个问题了。

谢谢，已经提前回退了。
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2023年7月31日(星期一) 晚上6:55
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [Gu-ZT/gugle-carpet-addition] set fakePlayerResident to true but didn't work (Issue #30)
经过测试 是2.7.0的假人控制模组会出现这个bug，回退到2.6.0就没有这个问题了。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


Ledger Nano S consistently freezes when signing Stellar transactions

When using the Account Viewer, which is the officially recommended wallet, payments consistently fail to sign and leave the Ledger Nano S in a state requiring it be powercycled.
After updating @ledgerhq/* dependencies from npm and explicitly setting a 1 minute timeout in the Account Viewer, the only way I'm able to confirm a transaction is by waiting 30s with the Ledger Nano S displaying Review Transaction, then progressing through the transaction confirmation flow. Any other attempt to submit a transaction results in the Ledger Nano S freezing on the Finalize Transaction > screen, remaining unresponsive until power is removed. We've also had a Ledger Nano S brick after freezing.
Full workaround steps:
edit: removed workaround steps, because further testing across browsers indicates transactions may succeed effectively at random. See comment
This effectively breaks Ledger hardware wallets for all Stellar users, and has been reported as far back as Jan 14 2020 (and Jan 16th as well).

Tried it and does not work still stuck

I'm experiencing the exact same problem and after numerous tries, I still haven't been successful with the proposed workaround above. Really frustrating!
Is LedgerHQ looking into fixing this problem?
Anyone else who has been successful with the workaround?

I encountered this a few days ago and chalked it up as an ID-10-T error.
However, I sat down again today to transfer funds and I was unfortunately able to repeatedly replicate this issue. In fact, I didn't succeed in not replicating it. Thanks for any workarounds you can provide.

I did some further testing with 2 different Ledger Nano S devices on various browsers, and the results are pretty confusing. On most browsers I was able to send a payment with enough trial-and-error, but I don't see any patterns as to when the transactions are signed successfully. I'm going to remove the workaround instructions because I think they'll be more confusing than helpful. Testing results:

A response from LedgerHQ would be appreciated. Still experiencing same problem:(


Run each test in there own transaction

This is the first thing I did when I started using the template. It allows me to never have anything really committed to database when running my tests. I don't know how you run your tests but running them each in their own transaction that is then rollbacked and leave no trace whatsoever is to me the cleanest solution when running tests against a database.
I also like the fact that it gives an example of using dependency override.

Thanks for your interest! Yeah, that could be interesting, it probably needs some other changes :thinking:


Greyed out folders with special characters

Hi,
First, thanks for the awesome work.
I noticed that Neo-tree greys out folders named with special characters. I usually avoid using this kind of characters, but since I speak Portuguese, I end up using it once in a while. Is there a way I can disable this?
Example:

Edit: I forgot to mention that I am using Windows 10

It's certainly not intentional. I wonder if ti is being marked as hidden for some reason. Is it affect by toggling hidden items with H?
Could you copy and paste the folder name here so I can copy it to my computer and test it out?

The name of the folder is special-character-ç. But I also tested with other characters like à, á, â or ã.
It is being marked as hidden when I press H

Should be a duplicate of https://github.com/nvim-neo-tree/neo-tree.nvim/issues/731.
Tho it's not solved yet, there are more discussions going over there so closing this issue to keep things in one place.
Please mention me if your issue is different.


Build versioned v2plugin from versioned binaries

This enables build and caching locally or in a build machine the
v2plugin before creating test environment VMs and failing much faster
on any PR issues, which is good for CI turnaround.
v2plugin_rootfs (called by host-pluginfs-create) builds a docker
container runtime with a versioned archive of netplugin binaries, then
extracts the entire filesystem from the container, which is now left as
a versioned tarball.
The versioned archive of netplugin binaries used for v2plugin can now be
created in two ways:

run-build (dependency for demo-v2plugin) will compile then version an
archive with built assets (runs only on the VM)
tar target (locally or in VM)

host-pluginfs-create can be run in the VM or locally
Leaving the plugin rootfs as a tarball has a few advantages reasons:

docker in a VM had internal issues when creating the plugin when the
rootfs was unarchived on the host and exposed though a virtualbox
mount, at least on OS X
the rootfs is versioned

This adjusted host-plugin-release and demo-v2plugin to both use a new
target 'host-pluginfs-unpack'
Drive-by:

Fix Dockerfile by adding objdb which is needed by vendored packages
Fix config.template for the CONTIV_V2PLUGIN_NAME replacement

checking on a minor issue during testing

https://github.com/contiv/netplugin/pull/1042 helps to sort out version naming issues

The permissions of some of the files have been changed. Are those changes intentional or accidental?

the jenkins file was unintentional, the bash script was intentional
I'm holding working on this till https://github.com/contiv/netplugin/pull/1042 is resolved

build PR

build PR

build PR

build PR

Do we need to worry about spaces in paths with any of this stuff?

build PR

only place I could see that isn't a subdirectory is here, which was a pre-existing issue:
https://github.com/contiv/netplugin/pull/1040/files#diff-b67911656ef5d18c4ae36cb6741b7965R320

build PR


Text and icon overlap in options

What steps will reproduce the problem?

I update spyder to version 5.0.0 and
Text and icon overlap in options

Hey @XingLiu1, thanks for reporting. This is already fixed in our 5.0.1 version, released last Friday and that will be part of Anaconda soon.


Need to be able to set proxy environment variables in keepalived's cluster.sh script

After spending a lot of time troubleshooting a customer's new Chef Server HA cluster using chef-ha it turned out the cause of the failure to failover properly was the chef-ha scripts were unable to use the proxy server.
The keepalived scripts that handle detaching/attaching the AWS storage and secondary IP couldn't connect to the external AWS host https://ec2.us-west-2.amazonaws.com. Setting the http_proxy and https_proxy environment variables enabled the communication but when the scripts queried the internal uri http://<IP_ADDRESS>/latest/dynamic/instance-identity/document the proxy server's instance-id was always returned instead of the actual instance making the query. The customer fixed this by setting the no_proxy environment variable.
Some examples of the need for these proxy settings are explained in the following documentation.
http://docs.aws.amazon.com/cli/latest/userguide/cli-http-proxy.html
The tricky part about these environment variables is that they don't need to be set in the user's session. They need to be set in the /var/opt/opscode/keepalived/bin/cluster.sh file so when keepalived runs the cluster.sh script to transition the state of each backend the environment variables are accessible for the scripts that handle detaching/attaching the AWS storage and secondary IP. After setting the environment variables in cluster.sh we were able to successfully test a failover by stopping keepalived on the master (active) backend.
The trouble with adding the variables directly to /var/opt/opscode/keepalived/bin/cluster.sh is that a chef-server-ctl reconfigure will erase the changes. This can be avoided by making the changes in the template file /opt/opscode/embedded/cookbooks/private-chef/templates/default/cluster.sh.erb and then running chef-server-ctl reconfigure to apply the changes to the final destination /var/opt/opscode/keepalived/bin/cluster.sh. Even these changes will eventually be lost whenever you install a new chef-server-core package so ultimately the real solution is to add new configuration options to handle these variables.
Can someone please provide the ability to set the following environment variables in the cluster.sh file.
export HTTP_PROXY=http://username:password@a.b.c.d:n
export HTTPS_PROXY=http://username:password@w.x.y.z:m
export NO_PROXY=<IP_ADDRESS>

hey @jeremiahsnapp -  my PR to add proxy support to chef-ha was merged a few weeks ago, but needs to be released: https://github.com/chef/chef-ha/pull/6
cc: @stevendanna

That's awesome @irvingpop . Thanks for the heads up.


Release 0.0.2

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@7d5352a). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #24   +/-   ##
=======================================
  Coverage        ?   77.33%
=======================================
  Files           ?        9
  Lines           ?      150
  Branches        ?        0
=======================================
  Hits            ?      116
  Misses          ?       34
  Partials        ?        0

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 7d5352a...b01638c. Read the comment docs.


Modal stack until click in somewhere on the screen

I am using $uibmodal , with 2 buttons close and cancel(in the component). the problem is that when the popup is triggered while refreshing the page or other triggered. I need to resize the window or click on somewhere in the page. only then the button are being clickable
function opentestmodal()
    {
        $rootScope.testmodal = $uibModal.open( {
            animation: true,
            backdrop:'static',
            component: 'testmodalComponent',
            windowClass: "testmodalPopupClass",
            windowTopClass: "toptestmodalPopupClass",
        });

        $rootScope.testmodal.result.then(function () {

        }, function () {
        });
    }

it release the buttons even if I click on the chrome address bar

Closing this as this project is no longer being maintained, per the README and the ISSUE_TEMPLATE.


Should always makedirs as 0755

Volumes being created with 0644 are not writable by users, since they
are not allowed to search through them.
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>
- What I did
- How I did it
- How to verify it
- Description for the changelog

/test all

/test kata-containers

/retest


Scope literature failed matches under 'literature' ETL output subfolder

Describe the bug
Failed matches from the literature processing step in the ETL are written in two folders at 'output' level
...
gs://open-targets-pre-data-releases/23.06/output/etl/parquet/failedCooccurrences/
gs://open-targets-pre-data-releases/23.06/output/etl/parquet/failedMatches/
...
gs://open-targets-pre-data-releases/23.06/output/etl/json/failedCooccurrences/
gs://open-targets-pre-data-releases/23.06/output/etl/json/failedMatches/
...

Expected behaviour
Those output folders from the literature processing ETL step, need to be within their corresponding literature output folder
...
gs://open-targets-pre-data-releases/23.06/output/etl/parquet/literature/
gs://open-targets-pre-data-releases/23.06/output/etl/json/literature/
...

@remo87 , I have scope this as a must for upcoming release, as I think it's already solved, in which case, would you mind confirming it by closing this issue?
Thanks!


Suggestion: After Authenticators and use token to get player information

For now, every time refresh or use a new function this will send a request to google get authenticator. I think may be just send once request and use token to get information after.

Maybe just add a (configurable) cache for the login tokens or even other data.
Work against the PSR-6 interface and everyone can use his preferred implementation.

The authentication process is only done once per ApplicationKernel instance, not per request.
We need to handle the token TTL before adding any sort of caching mechanism. But I like the idea.

ya, thats true. if you can do that i think it will be nice for communicate


Configurator bugfix

Fixes logic in computing max_steps in configurator:
Testing: Informal testing in notebooks, but no proper testing yet unfortunately. The configurator does some file-system reads to determine the number of examples in the task (from the task cache), so we'll need build some more advanced testing methods for that. Also this code is still pretty WIP / experimental.

Mind approving again?


How to get prediction result with identification information(e.g. ID)?

Describe the question(问题描述)
How to get prediction result with identification information(e.g. ID)? I think it's a very common scenario we want to know each prediction belongs to whom(e.g user id). I have no idea how to implement this in DeepCTR.
Operating environment(运行环境):

deepctr version [e.g. 0.8.0,]

each prediction corresponding to a input sample, which usually contains the userid and itemid


[#87] implement PlayerSelection Page and write tests for it

blocked until logout when routing backwards is implemented

blocked until logout when routing backwards is implemented

I added a rough description of the expected behavior in the issue (see here).

the checking if a user is logged /where a user should be logged in / where the user should be logged out  should be done in an extra component and hot in this issue. (PR is no longer blocked)


Feature Request: Add automatic Swagger UI generation to Express

Hello, folks
I believe it would be beneficial to add a feature to the Express framework that automatically generates Swagger UI documentation. This feature is inspired by FastAPI, which includes Swagger UI automatically and offers several advantages in terms of API documentation, exploration, and ease of use.
Proposed Solution:
I suggest integrating a middleware or plugin into Express that generates Swagger UI documentation based on the defined routes and API specifications. This would allow developers to easily visualize and interact with the API endpoints during development and testing.
Benefits:

Improved Developer Experience: Automatically generating Swagger UI documentation will enhance the development experience by providing a comprehensive and interactive API reference.
Easier Documentation Maintenance: With automatic Swagger UI generation, developers won't have to manually update API documentation as it will be synchronized with the codebase.
Enhanced Collaboration: Swagger UI provides a user-friendly interface for exploring and understanding the API, making it easier for team members and stakeholders to collaborate and provide feedback.

Potential Challenges:

Integrating Swagger UI into Express may involve addressing the following challenges:

Identifying a suitable middleware or plugin that seamlessly integrates with Express and supports automatic Swagger UI generation.
Ensuring compatibility with different versions of Express and Swagger UI.
Handling custom route configurations, authentication, and other advanced features of Express.

I believe it will greatly benefit the developer community and enhance the overall development experience.
Thank You

This is not really an express issue. If you want a library that generates swagger docs from express routes, you are free to create your own.

Possible not exactly what you were looking for, but swagger-ui-express is a good start.

Hello, folks
I believe it would be beneficial to add a feature to the Express framework that automatically generates Swagger UI documentation. This feature is inspired by FastAPI, which includes Swagger UI automatically and offers several advantages in terms of API documentation, exploration, and ease of use.
Proposed Solution: I suggest integrating a middleware or plugin into Express that generates Swagger UI documentation based on the defined routes and API specifications. This would allow developers to easily visualize and interact with the API endpoints during development and testing.
Benefits:

Improved Developer Experience: Automatically generating Swagger UI documentation will enhance the development experience by providing a comprehensive and interactive API reference.
Easier Documentation Maintenance: With automatic Swagger UI generation, developers won't have to manually update API documentation as it will be synchronized with the codebase.
Enhanced Collaboration: Swagger UI provides a user-friendly interface for exploring and understanding the API, making it easier for team members and stakeholders to collaborate and provide feedback.

Potential Challenges:

Integrating Swagger UI into Express may involve addressing the following challenges:
Identifying a suitable middleware or plugin that seamlessly integrates with Express and supports automatic Swagger UI generation.
Ensuring compatibility with different versions of Express and Swagger UI.
Handling custom route configurations, authentication, and other advanced features of Express.

I believe it will greatly benefit the developer community and enhance the overall development experience.
Thank You

you could use this avonjs

From a writing perspective, no one likes to write the path twice. At the same time, when you write comments and paths, there will always be one that you forget to modify, and the return value needs to use a lot of yml or other similar statements. These generated libraries do not support the extension writing method of jsdoc3. In terms of use, the path needs to be written once, the parameters need to be able to support the generation of simulated data, and type validation. The return value can have a fixed type definition combination, rather than relying solely on jsdoc, because jumping horizontally between code and comments will always cause problems.

Hey folks, I am just seeing this issue today but I have been maintaing this for a few years and plan to move it into the express org as soon as I can get around to it: https://github.com/wesleytodd/express-openapi
This issue is closed, but I will make sure to link to it when we go to discuss moving that middleware package into the official express family of packages.

Can it be more concise, such as reusing return values
Application/JSON can be written in a more concise way or ignored directly, such as referring to keyword generation methods such as Joi, Swagger ,Express, which should be as close to the writing style of TS as possible. However, it allows us to avoid using TS and still complete it within the scope of JS.


When using run --pod-manifest, if the images are not already stored locally, they will not be fetched.   This is confusing given the behavior of rkt in most other situations.  The error message provided is also very unclear:  run: error setting up stage0: no image IDs found.  The only reason I realized what was happening is because I happened to read an offhand comment here: https://github.com/coreos/rkt/issues/3000#issuecomment-236559445 while looking for a solution.
What did you expect to see?
I would have like to have seen the images fetched (as that seems to be the implication of the spec here: https://github.com/appc/spec/blob/master/spec/aci.md#dependency-matching), but, barring that,  increased clarity in the error message would be helpful.  Also, the documentation should mention that using --pod-manifest does not pull images.
Thanks!

While I understand this is unfortunate from an UX perspective, it is unfortunately consistent with the pod-manifest spec where the image.id field is required.
Was the image.label pointing to a appc-discoverable image? We can perhaps try to accommodate for that specific case.

Yes, in this case, the config looked like this:
{
  "acVersion": "0.8.9",
  "acKind": "PodManifest",
  "apps": [
    {
      "name": "dblocal",
      "image": {
        "name": "quay.io/coreos/postgres",
        "id": "sha512-7b4d5b27cb0581b959b3677cdaed25ca",
        "labels": [
          {
            "name":  "version",
            "value": "latest"
          }
        ]
      },
      "app": {
        "environment": [
          {
            "name": "POSTGRES_USER",
            "value": "xxxxxxx"
          },
          {
            "name": "POSTGRES_DB",
            "value": "scratch"
          },
          {
            "name": "POSTGRES_PASSWORD",
            "value": "xxxxxxxxxx"
          },
          {
            "name": "PG_MAJOR",
            "value": "9.5"
          },
          {
            "name": "PG_VERSION",
            "value": "9.5~beta2-1.pgdg80+1"
          },
          {
            "name": "PATH",
            "value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
          },
          {
            "name": "PGDATA",
            "value": "/var/lib/postgresql/data"
          }

        ],
        "exec": [
          "/entrypoint.sh",
          "postgres"
        ],
        "user": "root",
        "group": "root"
      },
      "mounts": [
        {
          "volume": "app-log-dir",
          "path": "/var/log"
        }
      ]
    },
...

It would definitely be nice if it could pull.
Thanks!

#1316


Flux support

If there's flux support, it will give ultra high quality images

Hi @adhikjoshi ,
Thanks for your interest! After exploration, we have figured out the solution on flux to accelerate high-resolution generation. Please checkout our latest work: Paper and Code.

Great work,
I'm trying to quantize model using
https://github.com/mit-han-lab/nunchaku
Which is not working,
I think architecture changes are there from flux dev.

Hi,
Could you please share more contexts about how you quantize the model? We will continue exploring the solution of quantization for CLEAR.


Rancher cannnot deploy k3s cluster on ARM because of incorrect binary

Rancher Server Setup

Rancher version: v2.6.1-rc5
Installation option (Docker install/Helm Chart): Docker install

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details: Self-signed certificate

Information about the Cluster

Kubernetes version: v1.21.4+k3s1
Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Custom

Describe the bug

When deploying K3s on Raspberry Pi (running SLE Micro 5.1) using Rancher v2.6.1-rc5 UI, k3s service does not start since the k3s binary is an x86-64 version rather than ARM aarch64 version
To Reproduce

Have SLE Micro 5.1 deployed on Raspberry Pi
Create a Custom Cluster from Rancher UI by selecting RKE2/K3s option
Select Kubernetes version as v1.21.4+k3s1
Copy and run the registration command on Raspberry Pi

Result
k3s cluster does not start because of the incorrect binary
Expected Result

K3s cluster should have been deployed successfully
Screenshots

Additional context
<!--Add any other context about the problem here.—>
k3s-slemicro-pi3b:~ # file /usr/local/bin/k3s
/usr/local/bin/k3s: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
[R261_K3s_Pi_deployment_issue.txt](https://github.com/rancher/rancher/files/7250222/R261_K3s_Pi_deployment_issue.txt)

I have the same issue when I try to import a manually created k3s arm cluster on Rancher 2.6.2, since the agent doesn't even start with this log:
standard_init_linux.go:228: exec user process caused: exec format error

I have the same issue when I try to import a manually created k3s arm cluster (Raspberry Pi4 with openSUSE 15.3) on Rancher 2.6.2, since the agent doesn't even start with this log:
standard_init_linux.go:228: exec user process caused: exec format error

@rkgupta76 I'd recommend changing the title to say ARM instead of RPi. This issue affects more than just Pi, since anything else running ARM would also have this issue. I'm here to chime in and say I have the issue as well.

@rkgupta76 I'd recommend changing the title to say ARM instead of RPi. This issue affects more than just Pi, since anything else running ARM would also have this issue. I'm here to chime in and say I have the issue as well.

Done. Thanks for your input

@rkgupta76 did you intend to close this? It doesn't look like there was a PR associated and no workaround posted in here.

@rkgupta76 did you intend to close this? It doesn't look like there was a PR associated and no workaround posted in here.

No. I did not intend to close it. I am re-opening it.

I believe this issue is still actual and should be left open. Thanks.

Same problem here.
error while staging: no child with platform linux/arm64 in index rancher/system-agent-installer-rke2:v1.21.10-rke2r2: failed to get image index.docker.io/rancher/system-agent-installer-rke2:v1.21.10-rke2r2"

As of a week ago, we retried to do aarch64 based deployment of k3s via Rancher UI and it still fails in the same place. Sad times.

This issue is still relevant.

This is (I think) tracked in https://github.com/rancher/rancher/issues/34658


cmdb not expand without error

Hi,
Some people have this issue :

A cmdb file with generatefunction
All looks fine.
KeyError in .configure for a variable using range behavior.
No error for statics vars.

In all case I have seen, it was linked to https://github.com/enovance/hardware/blob/master/hardware/cmdb.py#L47
when you call upload.py, hardware module try to create a .orig file. For example /etc/edeploy/foo.cmdb.orig.
If you have not the write permission on edeploy directory, this action fail without errors in edeploy.
The result is edeploy continue and launch the configure script without expanded variables.
I think we need to have log or a message for this issue in edeploy.
Gaël L

Fixed in https://github.com/enovance/hardware/commit/840497127fe69bd944a6e7c5dc5bec532f7fa296


Add BuilderFunc

Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (c0f250f) 97.80% compared to head (984f66a) 96.35%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
- Coverage   97.80%   96.35%   -1.45%
==========================================
  Files           2        2
  Lines         182      192      +10
==========================================
+ Hits          178      185       +7
- Misses          4        7       +3

Files
Coverage Δ

builq.go
95.83% <70.00%> (-4.17%)
:arrow_down:

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


A werid bug at async function

If I have a bug at async function (like bad element or something), it won't display error message on real iphone device. But it will display on iphone simulator.
Here is my situation.
I create a new flutter project.
flutter create flutter_playground

and I add a bug code on _incrementCounter function.
class _MyHomePageState extends State<MyHomePage> {
    int _counter = 0;

    void _incrementCounter() {
      List list = ['foo', 'bar'];
      String foo = list.firstWhere((value) => value == 'oo');
      print(foo);

      // Error:   Bad state: No element

      setState(() {
       // This call to setState tells the Flutter framework that something has
       // changed in this State, which causes it to rerun the build method below
       // so that the display can reflect the updated values. If we changed
       // _counter without calling setState(), then the build method would not be
       // called again, and so nothing would appear to happen.
       _counter++;
     });
    }

It will show error message on both deivces. (iphone simulator and real iphone device)
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
flutter: The following StateError was thrown while handling a gesture:
flutter: Bad state: No element
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      ListMixin.firstWhere (dart:collection/list.dart:150:5)
flutter: #1      _MyHomePageState._incrementCounter (package:flutter_playground/main.dart:57:23)
flutter: #2      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:779:19)
flutter: #3      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:862:36)
flutter: #4      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
flutter: #5      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:504:11)
flutter: #6      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:282:5)
flutter: #7      BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:254:7)
flutter: #8      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
flutter: #9      GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
flutter: #10     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
flutter: #11     GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
flutter: #12     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
flutter: #13     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
flutter: #17     _invoke1 (dart:ui/hooks.dart:275:10)
flutter: #18     _dispatchPointerDataPacket (dart:ui/hooks.dart:184:5)
flutter: (elided 3 frames from dart:async)
flutter:
flutter: Handler: "onTap"
flutter: Recognizer:
flutter:   TapGestureRecognizer#20070
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

However, when I add an async function in my code.
class _MyHomePageState extends State<MyHomePage> {
    int _counter = 0;

    void _incrementCounter() async{
      List list = ['foo', 'bar'];
      String foo = list.firstWhere((value) => value == 'oo');
      print(foo);

      // Error:   Bad state: No element

      setState(() {
       // This call to setState tells the Flutter framework that something has
       // changed in this State, which causes it to rerun the build method below
       // so that the display can reflect the updated values. If we changed
       // _counter without calling setState(), then the build method would not be
       // called again, and so nothing would appear to happen.
       _counter++;
     });
    }

It will only display error message on iphone simulator.
error message on  iphone simulator

real iphone device isn't display any error message, no matter how many times I click the button.

additional: It will display error message on both  android simluator (android 10) and real android device (android 10).

flutter doctor -v
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale zh-Hant-TW)
    • Flutter version 1.17.5 at /Users/aimm/Desktop/bitbucket/flutter
    • Framework revision 8af6b2f038 (7 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/aimm/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] Connected device
    ! No devices available

This is a side effect of using the VM service for logs on phyiscal iOS devices, due to the loss of logging APIs in iOS13. In the second case, we're missing the exception because it is going through the isolate unhandled exception handler. Ideally it would also go to the stderr stream in the VM service

additional: If I build my code by Xcode, it will display error message on real iphone device.

I can see exceptions are thrown on a physical device too

complete code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    List list = ['foo', 'bar'];
    String foo = list.firstWhere((value) => value == 'oo');
    print(foo);

    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

physical logs
Launching lib/main.dart on Taha’s iPhone in debug mode...
 package:master_flutter/main.dart
Automatically signing iOS for device deployment using specified development team in Xcode project: X8NNQ9CYL2
Xcode build done.                                           15.7s
(lldb) 2020-10-22 19:39:20.448405+0530 Runner[1392:355199] flutter: Observatory server failed to start after 1 tries
flutter: Observatory server failed to start after 2 tries
flutter: Observatory server failed to start after 3 tries
flutter: Falling back to automatic port selection
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
[VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
[VERBOSE-2:FlutterObservatoryPublisher.mm(101)] Failed to register observatory port with mDNS with error -65555.
[VERBOSE-2:FlutterObservatoryPublisher.mm(103)] On iOS 14+, local network broadcast in apps need to be declared in the app's Info.plist. Debug and profile Flutter apps and modules host VM services on the local network to support debugging features such as hot reload and DevTools. To make your Flutter app or module attachable and debuggable, add a '_dartobservatory._tcp' value to the 'NSBonjourServices' key in your Info.plist for the Debug/Profile configurations. For more information, see https://flutter.dev/docs/development/add-to-app/ios/project-setup#local-network-privacy-permissions
Connecting to VM Service at ws://<IP_ADDRESS>:50641/ZWJimW-Ye0w=/ws

════════ Exception caught by gesture ═══════════════════════════════════════════
The following StateError was thrown while handling a gesture:
Bad state: No element

When the exception was thrown, this was the stack
#0      ListMixin.firstWhere (dart:collection/list.dart:167:5)
#1      _MyHomePageState._incrementCounter
 package:master_flutter/main.dart
#2      _InkResponseState._handleTap
 package:flutter/…/material/ink_well.dart
#3      _InkResponseState.build.<anonymous closure>
 package:flutter/…/material/ink_well.dart
#4      GestureRecognizer.invokeCallback
 package:flutter/…/gestures/recognizer.dart
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#b5827
    debugOwner: GestureDetector
    state: ready
    won arena
    finalPosition: Offset(367.5, 823.0)
    finalLocalPosition: Offset(25.5, 17.0)
    button: 1
    sent tap down
════════════════════════════════════════════════════════════════════════════════

logs
Launching lib/main.dart on iPhone 12 in debug mode...
 package:master_flutter/main.dart
Xcode build done.                                           24.6s
Connecting to VM Service at ws://<IP_ADDRESS>:50413/UECxR2M2S6Q=/ws

════════ Exception caught by gesture ═══════════════════════════════════════════
The following StateError was thrown while handling a gesture:
Bad state: No element

When the exception was thrown, this was the stack
#0      ListMixin.firstWhere (dart:collection/list.dart:167:5)
#1      _MyHomePageState._incrementCounter
 package:master_flutter/main.dart
#2      _InkResponseState._handleTap
 package:flutter/…/material/ink_well.dart
#3      _InkResponseState.build.<anonymous closure>
 package:flutter/…/material/ink_well.dart
#4      GestureRecognizer.invokeCallback
 package:flutter/…/gestures/recognizer.dart
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#fea71
    debugOwner: GestureDetector
    state: ready
    won arena
    finalPosition: Offset(369.3, 762.3)
    finalLocalPosition: Offset(28.0, 28.0)
    button: 1
    sent tap down
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture ═══════════════════════════════════════════
Bad state: No element
════════════════════════════════════════════════════════════════════════════════

flutter doctor -v
[✓] Flutter (Channel master, 1.24.0-2.0.pre.111, on Mac OS X 10.15.7 19H2
    darwin-x64, locale en-GB)
    • Flutter version 1.24.0-2.0.pre.111 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision fe189baf34 (11 hours ago), 2020-10-21 22:25:53 -0400
    • Engine revision f459a86610
    • Dart version 2.11.0 (build 2.11.0-242.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.0.rc.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.50.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.1

[✓] Connected device (5 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E            • ios
      • iOS 14.1
    • iPhone 12 (mobile)     • 722C6A4C-3FCA-4FC6-9D30-9702A0E784B8 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64
      • Mac OS X 10.15.7 19H2 darwin-x64
    • Web Server (web)       • web-server                           •
      web-javascript • Flutter Tools
    • Chrome (web)           • chrome                               •
      web-javascript • Google Chrome 86.0.4240.80

• No issues found!

Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

This what happen is u r assigning the list and search from the list at one time.
so the search function is conflict.
u can use like that
     List list = ['foo', 'bar'];        String foo;      for (var each in list) {               if (each =='oo') {                 foo = each;                 break;               }       }       print(foo);


Test/testing application utils

Add utils testing

[x]  camelcase Object

[x] capitalize

[x] leftPad

[ ] randomize (if possible)

[x] romanize

[ ] shuffle (if possible)

It seems like the netlify errors are not from my PR. so does it?
11:19:17 PM: │ Plugin "netlify-plugin-snyk" failed │

@JuanVqz yes, sorry i actually accidentally installed a plugin, i have removed it the plugin so i think if we re-deploy everything should be fine

I'm wondering if you have a limit in your netlify checker? because I'm pushing every change and maybe I should wait until having it complete.

@JuanVqz Yes, there is actually a limit, I'm thinking of actually turning off the preview deploy feature because the state of this project right now is mostly just for testing purposes. I have planned several features that i want to implement but it's still in the designing phase.


Ardent, Laravel 4.1 and _token - MassAssignmentException

When attempting to save a user to the database with the $autoHydrateEntityFromInput attribute set to true, Laravel throws an exception of the MassAssignmentException kind, stating that, _token is the culprit.
According to Ardent's source it appears to attempt to remove _token, however this seems to fail. I don't know if this is something to do with how Laravel 4.1 handles it's CSRF token, but unless I manually assign the model's attributes it won't allow me to store the user.
Any idea of how to circumvent this issue so I can store data while still using the CSRF protection without assigning all the form data manually?
Thanks in advance with any help in this issue.

Same issue with Laravel 5.1. Temp fix using $guarded attribute.


Deployment to OpenShift failing

Everything seems to go well until I run
$ git push origin master
remote: CLIENT_RESULT: HAProxy instance is started
remote:   - Checking to see if Node.js version 4.2.3 is installed ...
remote:   - Node.js version 4.2.3 is already installed
remote:
remote:   - pre_start_nodejs: Adding Node.js version 4.2.3 binaries to path
remote:   - PATH set to include custom node version (4.2.3) from
remote:        /var/lib/openshift/56a366ea2d527170ff0001e8/app-root/data//node-v4.2.3-linux-x64/bin
remote:     PATH = /var/lib/openshift/56a366ea2d527170ff0001e8/app-root/data//node-v4.2.3-linux-x64/bin:/var/lib/openshift/56a366ea2d527170ff0001e8/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/56a366ea2d527170ff0001e8//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/var/lib/openshift/56a366ea2d527170ff0001e8/haproxy/usr/bin:/opt/rh/mongodb24/root/usr/bin:/bin:/usr/bin:/usr/sbin
remote: Starting NodeJS cartridge
remote: Sat Jan 23 2016 06:51:33 GMT-0500 (EST): Starting application 'bespoke' ...
remote: Waiting for application port (8080) become available ...
remote: Application 'bespoke' failed to start (port 8080 not available)
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 56a366ea2d527170ff0001e8 (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/56a366ea2d527170ff0001e8/nodejs
remote: #IO:0x000000009eb290
remote: #IO:0x000000009eb218
remote: )
remote: Deployment completed with status: failure
remote: postreceive failed
To<EMAIL_ADDRESS>08e1e01..15c5836  master -> master
===============
Any ideas as to why this could be? Should I configure the port differently?
Looks like a really good project and I am looking at how this can help me kickstart a project of mine.
Thanks,
Nick Lewis

P.S. it does run locally on port 5000 ok

Glad you like the project (be sure to Star it)...
1)be sure you have your config.js in src
2) be sure config.js is not in .gitignore
3) you can try restarting from the OpenShift dashboard too
let me know if that resolves it

check this SO: http://stackoverflow.com/questions/31511724/application-failed-to-start-port-8080-not-available especially this step:

ssh'd into the app, went to the app repo dir (cd $OPENSHIFT_REPO_DIR) and run npm start

Thanks Barton - now when running npm start as suggested, I am getting:
/var/lib/openshift/56a366ea2d527170ff0001e8/app-root/runtime/repo/src/database/redis.js:27
connection_string.host = process.env.OPENSHIFT_REDIS_DB_HOST;
^
TypeError: Cannot set property 'host' of undefined
at Object. (/var/lib/openshift/56a366ea2d527170ff0001e8/app-root/runtime/repo/src/database/redis.js:27:26)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/var/lib/openshift/56a366ea2d527170ff0001e8/app-root/runtime/repo/src/auth/jwt-strategy.js:20:19)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)

Oh - my bad, I'll update...
The config.js should include:
  redis: {
    host: '<IP_ADDRESS>',
    port: 6379
  },

Fantastic, got it working! Thanks for your help!

I am receiving same error. I am new one to js and web technologies. could you please give more detail about an example config.js. particularly I need to know what must be account name under email definition which is ''Snowflake" as default.

@aferust - would you please include what your error currently is?

(Using OSX El Capitan on macbook pro)
after I wrote my previous message, I tried locally settled server option as you illustrated in the docs and got it working successfully. I want to get it working on openshift also. When I follow exactly the same steps as you have shown, I am receiving exactly same error, but I have just recognized that I am missing a lot about config.js. I have an openshift account and followed all the steps to "git push origin master" from the beginning. I am now pretty sure that I must provide appropriate ips (or urls maybe) and ports information for getting the app to connect the server (I think application was successfully created on my openshift account, because I can see it such as mysnowflake-myultracooldomainname.rhcloud.com). I think I need a very basic tutorial how to set things up related with config.js.

I still don't know what error you are getting.

I am so sorry, I forgot adding this:
remote: npm info ok
remote: Preparing build for deployment
remote: Deployment id is 309e17a3
remote: Activating deployment
remote: HAProxy already running
remote: CLIENT_RESULT: HAProxy instance is started
remote:   - Checking to see if Node.js version 4.2.3 is installed ...
remote:   - Node.js version 4.2.3 is already installed
remote:
remote:   - pre_start_nodejs: Adding Node.js version 4.2.3 binaries to path
remote:   - PATH set to include custom node version (4.2.3) from
remote:        /var/lib/openshift/578d22460c1e66346e00015c/app-root/data//node-v4.2.3-linux-x64/bin
remote:     PATH = /var/lib/openshift/578d22460c1e66346e00015c/app-root/data//node-v4.2.3-linux-x64/bin:/var/lib/openshift/578d22460c1e66346e00015c/app-root/runtime/repo/node_modules/.bin:/var/lib/openshift/578d22460c1e66346e00015c//.node_modules/.bin:/opt/rh/nodejs010/root/usr/bin:/var/lib/openshift/578d22460c1e66346e00015c/haproxy/usr/bin:/opt/rh/mongodb24/root/usr/bin:/bin:/usr/bin:/usr/sbin
remote: Starting NodeJS cartridge
remote: Mon Jul 18 2016 15:32:18 GMT-0400 (EDT): Starting application 'mysnowflake' ...
remote: Waiting for application port (8080) become available ...
remote: Application 'mysnowflake' failed to start (port 8080 not available)
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 578d22460c1e66346e00015c (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/578d22460c1e66346e00015c/nodejs
remote: #IO:0x000000008772b0
remote: #IO:0x00000000877238
remote: )
remote: Deployment completed with status: failure
remote: postreceive failed
To<EMAIL_ADDRESS>05e1d79..b2deec7  master -> master

Ok, it did not yield errors when I changed local ips in config.js to mysnowflake-myultracooldomainname.rhcloud.com.  Thank you.

Ok thanks, but that doesn't help much.  What you'll need to do is ssh into your box and find the nodejs log.  You can use the rsh command from the prompt in your server root.  Once you get in, you need to look for the application logs.  I think it's something like app/logs.
You can see a list of commands here: https://developers.openshift.com/managing-your-applications/common-rhc-commands.html

Note that when you try to hook up the mobile client Snowflake, you'll need to update it's config.js to tell it 2 things, that you will use Hapi remote and the Hapi remote url.

Here's  a note to help you get those logs:

These can be collected by taking the SSH URL from the output of the rhc app-show <APP-NAME> command and use it in the below. This will create a file in /tmp/ titled 'log_files.tar.gz' that you can upload here. It will contain all logs necessary to investigate. This is assuming you are running on a linux/mac client:

    $ scp -r SSH_URL:~/app-root/logs/ .; tar czvf /tmp/log_files.tar.gz logs/

Just a note about the above, what I did was rsh into my Openshift Gear and remove all the logs first, then redo the push, then run that command.  Otherwise the command above will pick up ALL the logs which could be large.

Here's an example of getting the SSH_URL.  The name of my server is 'server'.  So I am in the openshift project and enter rhc app-show server.   Then I provide my password and then I see the SSH.  Use that value to log in w/ like this: ssh<EMAIL_ADDRESS>would be mine.  Once logged in, you can do a ls and see the path app-root\logs and remove everything there (assuming you had stopped the app)
~/projects/MFV/snowflake-hapi-openshift (master)$ rhc app-show server
/usr/local/lib/ruby/gems/2.3.0/gems/commander-4.2.1/lib/commander/user_interaction.rb:328: warning: constant ::TimeoutError is deprecated
Your authorization token has expired. Please sign in now to continue on openshift.redhat.com.
Password: **********

server @ http://server-bartonhammond.rhcloud.com/ (uuid: 56d05ee17628e1f6080000bd)
----------------------------------------------------------------------------------
  Domain:     bartonhammond
  Created:    Feb 26  8:19 AM
  Gears:      3 (defaults to small)
  Git URL<EMAIL_ADDRESS>  SSH<EMAIL_ADDRESS> <<<<<this
  Deployment: auto (on git push)

Hi Barton, you skipped my last message saying I have already get everything worked :) You gave me a lot of information for debugging though. I suggest you giving a little more details for creating config.js in the documents. Assignment of url variable for Hapi (remote) should be like:
      url: 'http://mysnowflake-yourDomain.rhcloud.com'

Thank you very much!

Great @aferust - good to know it's working

git.exe push --progress "origin" master:master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 282 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Stopping NodeJS cartridge
remote: Mon Aug 22 2016 01:56:38 GMT-0400 (EDT): Stopping application 'nodejs' ...
remote: Mon Aug 22 2016 01:56:39 GMT-0400 (EDT): Stopped Node application 'nodejs'
remote: Saving away previously installed Node modules
remote: Building git ref 'master', commit 1476ba6
remote: Building NodeJS cartridge
remote: npm info it worked if it ends with ok
remote: npm info using<EMAIL_ADDRESS>remote: npm info using<EMAIL_ADDRESS>remote: npm info preinstall<EMAIL_ADDRESS>remote: npm info build /var/lib/openshift/57ba8a780c1e668669000094/app-root/runtime/repo
remote: npm info linkStuff<EMAIL_ADDRESS>remote: npm info install<EMAIL_ADDRESS>remote: npm info postinstall<EMAIL_ADDRESS>remote: npm info prepublish<EMAIL_ADDRESS>remote: npm info ok
remote: Preparing build for deployment
remote: Deployment id is 368816b1
remote: Activating deployment
remote: Starting NodeJS cartridge
remote: Mon Aug 22 2016 01:57:15 GMT-0400 (EDT): Starting application 'nodejs' ...
remote: Waiting for application port (8080) become available ...
remote: Application 'nodejs' failed to start (port 8080 not available)
remote: -------------------------
remote: Git Post-Receive Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: 57ba8a780c1e668669000094 (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/57ba8a780c1e668669000094/nodejs
remote: #IO:0x0000000153d3a0
remote: #IO:0x0000000153d328
remote: )
remote: Deployment completed with status: failure
remote: postreceive failed
To<EMAIL_ADDRESS>db61a84..1476ba6  master -> master
Success (119328 ms @ 8/22/2016 11:28:17 AM)
getting this error please help me

@GarvSabharwal You will need to SSH into the RedHat site and look at the logs.  First log in to Redhat  Online and select your server.  Then, on the right had side is a "Remote Access" link that will display a 'ssh' command you run from the command line.  Once you are ssh'd into your remote server, you'll need to navigate to the 'logs' directory and look at the nodejs logs.  There may be multiple nodejs logs so you'll need to search for the one with the error.  One way to do this is to stop your app using rhc app stop, then on the remote server, delete all the logs, then back on the client, do rhc app start.  Then there will be a single nodejs log on the remote server.  Find that log file and post the relevant information here.


[Doc Issue][Messaging extension action][4689]

Added messaging extension action code sample

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/messaging-extensions/what-are-messaging-extensions.md
88
16
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

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

File
Status
Preview URL
Details

msteams-platform/messaging-extensions/what-are-messaging-extensions.md
:white_check_mark:Succeeded
View

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

Docs Build status updates of commit 5004f04:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/messaging-extensions/what-are-messaging-extensions.md
:white_check_mark:Succeeded
View

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

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/messaging-extensions/what-are-messaging-extensions.md
88
17
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/messaging-extensions/what-are-messaging-extensions.md
88
17
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 6c994d0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/messaging-extensions/what-are-messaging-extensions.md
:white_check_mark:Succeeded
View

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


merge package from arlac77/npm-package-template-esm-only

package.json

chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add type from template

Codecov Report

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

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   91.24%   91.24%
=======================================
  Files           6        6
  Lines         217      217
  Branches       38       38
=======================================
  Hits          198      198
  Misses         19       19

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 7c84f6c...cbbff4c. Read the comment docs.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[SPARK-46055][SQL][FOLLOWUP] Respect code style for scala.

What changes were proposed in this pull request?
https://github.com/apache/spark/pull/43959 get metadata when resolving catalogs instead of directly calling catalog.
This PR fix one minor issues that some code didn't follow the code style of scala.
Why are the changes needed?
Respect code style for scala.
Does this PR introduce any user-facing change?
'No'.
How was this patch tested?
Exists test cases.
Was this patch authored or co-authored using generative AI tooling?
'No'.

ping @heyihong cc @cloud-fan

Merged to master.
@dongjoon-hyun @cloud-fan @LuciferYang @heyihong Thank you!


[BUG] Latest build is not working for local development

Report
This issues is up while i was trying to setup the PEZZO for local development.
[image]
https://cdn.discordapp.com/attachments/1163184916008292483/1167000600706306108/image.png
[video]
https://drive.google.com/file/d/1qr2cj7Vj25oWVBEQpbKiV-LIL_PHpiV2/view?usp=drive_link
Expected behavior
It should open in localhost without any error upfront [without changes in code base].
Steps to reproduce the problem
Pull the latest changes in you code base.

try to open localhost:4200
2 try to open localhost:4200/login
2.1 try to login with credential

you will face same error show above on both 1 and 2 procedure
Thank You
Logs (if applicable)
I ASSUME LOGS ARE VISIBLE IN IMAGE

Pezzo version
0.6.3
How do you use Pezzo?
Local Development Setup

Can i try working on this one?

Sorry @Krithiik but i already started working on it !

@adityadeshlahre Its ok ! Carry on...

Closing this as I have not received any new reports of this, and we have refactored our UI. Make sure you run docker-compose pull before spinning up Pezzo again.


Could use $'' escaping instead of keycodes

This script could be improved to support all ASCII characters, including those that do not have any keycode associated to them, by using the $'' string literal support in the Android terminal. Essentiall it means to run something like adb shell input text "\$'\x61'" to send the letter 'a', where the Android shell would interpret the \x61 and pass 'a' to the input command. Here's an example in bash that shows this works:
https://android.stackexchange.com/a/176590/223695

I've just taken a stab at this on: https://github.com/gcb/AdbPaste/tree/Issue6
All seems to be working on Linux. Haven't tested on Windows, though I don't see why it would be any different.
Currently doesn't implement --fast (just uses it by default).

I just ran your code for a quick test drive, it works as expected here (Linux + Fairphone 2).
Two additional suggestions, though:

You currently use os.system, which requires further quoting and possibly escaping of the arguments because the command is passed through the shell on the host system. I would suggest using the subprocess module, where you can pass a list containing the command and each argument separately, which does not need the shell to split arguments. This should limit potential problems with the shell interpreting things you didn't want to be interpreted.
The tool currently allows sending from the commandline, or from a file. How about, if neither a file or a text are passed, asking for a text to send on the commandline? My usecase is sending passwords to my device. Storing them in a file to pass to AdbPaste is cumbersome, but I also do not want to pass them on the commandline (process arguments are not completely private in a multi-user system, they might end up in my shell history if I'm not careful, etc.). Asking for the text on stdin would solve this and prevent the password from being stored anywhere. As a workaround I can now pass --file /dev/stdin and then paste into stdin + ^D for EOF, but it might be interesting to make this easier.