rust: Support a more terse form of with-based remapping

Currently with works by operating at the interface level, requiring a specification such as:
generate!({
    with: {
        "pkg:foo/bar": path::to::module,
    }
});

This can get cumbersome for a suite of packages, however:
generate!({
    with: {
        "pkg:a/b1": ...,
        "pkg:a/b2": ...,
        "pkg:a/b3": ...,
        "pkg:b/b1": ...,
        "pkg:b/b2": ...,
        "pkg:c/b1": ...,
        ...
    }
});

I've seen this come up in the context of WASI where a bunch of WASI interfaces are referenced but the types to use should come from somewhere else. Especially with the wasi crate nowadays I think it should be easier to use the wasi crate wholesale. I'm imagining something like:
generate!({
    with: {
        "wasi": wasi, // refers to `wasi`-the-crate
    }
});

I'm also thinking you could do:
generate!({
    with: {
        "wasi:cli": wasi::cli,
        "wasi:io": wasi::io,
    }
});

Where the general idea is that of the "path" that's pkg:a/b you could start chopping off pieces from the right and generate pkg:a and pkg. Both cases would be considered as covering all "children" of those namespaces, meaning that if pkg:a were specified then any interface in the pkg:a package would use the with key for pkg:a. The projections from that key would use the standard naming scheme that wit-bindgen already uses.
Ideally I'd like to see this ported to the wasmtime::component::bindgen! macro eventually too.

It would be good if component:bindgen and maybe wasmtime would allow pass-thru configuration to wit-bindgen

Could you clarify what you mean @sehz? I'm not sure I understand what you mean by pass-thru. Do you mean that the same configuration of wasmtime::component::bindgen! whould work for wit_bindgen::generate!?

I guess what I am looking for is  parity between component:bindgen and wit_bindgen:generate.

Ah ok makes sense! I definitely agree that this work should go into Wasmtime as well when completed


Global: adding imageio to settings

Brief description
ImageIO settings with OCIO config and file rules
Description
Default path is pointing to our distributed aces_1.2 config. File rules are disabled by default as those are usually used on hosts, but times to times we could need to use them for some OIIO conversions on global scope.
Techical notes
This is a first step towards color managed OpenPype. There is at the moment none functionality implemented yet using this settings.
Config and File rules were devaded into separate schemas, because we will need to accompany them to Nuke, Maya, Fusion, Flame to already created ImageIO settings - in future PRs we will replace already created OCIO Config Path in Maya, Nuke, Fusion (read Questions for more info).
Update

all hosts are now having ImageIO settings unified with the global so host overrides can be created in future functionality.
all host's ImageIO settings are disabled by default.

Questions

Should the imageio schema be integrated to all hosts?
We had agreed to do so in this PR with @antirotor

What about host which are already having some variant of cutsomOcioConfigPath input? For example Maya is having project_settings/maya/imageio/colorManagementPreference_v2/configFilePath and it is used in host api.
Depricated label to original schema is signaling future changes and calling for action to migrate to new key project_settings/{app}/imageio/ocio_config/filepath

Testing notes:

open settings and look to Global ImageIO
look to all hosts and notice ImageIO is available but config and filerules are disabled.
[Nuke, Hiero, Resolve, Maya, Houdini, Blender, Unreal, CelAction, Fusion, Flame, TVPaint, Harmony, Photoshop, AfterEffects, TrayPublisher, WebPublisher]

Just to make sure it is clear - putting these configs to hosts that doesn't support OCIO is because the config defines rules to transform DCC native colorspace (via arbitrary mapping) to that OCIO config, right @jakubjezek001 ?

Exactly ;)


[Bug]: exception when using stop sequence on python3.11

Describe the bug
2023-07-08 18:56:50.138 | INFO     | __mp_main__:performance_stats_writer:518 - performance stats writer starting
2023-07-08 18:56:52.262 | INFO     | __main__:read_window_events:487 - _window_data={'title': '314474203/19600', 'left': -9, 'top': -9, 'width': 1938, 'height': 1038, 'window_id': 0}
2023-07-08 18:57:03.823 | WARNING  | openadapt.window._windows:get_active_window_state:31 - No Windows of that application are active
2023-07-08 18:57:09.351 | WARNING  | openadapt.window._windows:get_active_window_state:31 - No Windows of that application are active
2023-07-08 18:57:20.691 | INFO     | __main__:on_press:646 - Stop sequence entered! Stopping recording now.
Unhandled exception in listener callback
Traceback (most recent call last):
  File "C:\Users\erika\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-CpCf7oPf-py3.11\Lib\site-packages\pynput\_util\__init__.py", line 230, in inner
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\erika\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-CpCf7oPf-py3.11\Lib\site-packages\pynput\keyboard\_win32.py", line 299, in _process
    self.on_press(key, injected)
  File "C:\Users\erika\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-CpCf7oPf-py3.11\Lib\site-packages\pynput\_util\__init__.py", line 146, in inner
    if f(*args) is False:
       ^^^^^^^^
  File "C:\Users\erika\OpenAdapt\openadapt\record.py", line 630, in on_press
    keyboard.KeyCode.from_char(stop_sequence[stop_sequence_indices[i]])
                               ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range
2023-07-08 18:57:20.832 | INFO     | __mp_main__:write_events:319 - event_type='window' done
2023-07-08 18:57:20.832 | INFO     | __mp_main__:wrapper_logging:99 -  <- Leave: write_events(None)
2023-07-08 18:57:20.853 | INFO     | __mp_main__:write_events:319 - event_type='action' done
2023-07-08 18:57:20.858 | INFO     | __mp_main__:wrapper_logging:99 -  <- Leave: write_events(None)
2023-07-08 18:57:20.791 | INFO     | __main__:read_screen_events:448 - done
2023-07-08 18:57:20.799 | INFO     | __main__:process_events:194 - done

To Reproduce
python -m openadapt.record foo

@abrichr I'm unable to recreate this bug. What are the exact steps taken after starting the recording?

I wasn't able to repro this either, but from the error, it looks like there's a problem with stop_sequence_indices[i] exceeding the length of the STOP_SEQUENCES list.
One way to handle this might be to update the loop on line 624 of record.py as follows:
        if stop_sequence_indices[i] >= len(stop_sequence):
            # Reset index if it exceeds the length of sequence
            stop_sequence_indices[i] = 0
...

I'm not familiar with this codebase though so I'm not sure what side effects, if any, this may have.


Can I force ollama to produce shorter responses?

Hi,
I want to use the llama2 model available in Ollama to produce shorter outputs. I want to use max_new_tokens, max_length
parameters in https://huggingface.co/docs/transformers/en/main_classes/text_generation. Can I prompt the LLM to generate shorter sequences while keeping the meaning same?
There are some approaches given in https://www.reddit.com/r/LocalLLaMA/comments/14k7f5w/any_way_to_limit_the_output_to_a_specific_line/ but they don't work well.

One easy way to shorten answers would be to create a new model based on your llama2 model of choice and define your brevity instructions in the Makefile, under the SYSTEM section.
For example, I used at the prompt instructions suitable for a SYSTEM section:
ollama run llama2 "Please tell me a joke"

>>> Why don't scientists trust atoms? Because they make up everything! 😂

ollama run llama2 "Please tell me a joke. Don't use more than 5 words"

>>> Sure, here is a short joke:

>>> Kangaroo walks into a bar.

Hi there, you can pass num_predict to the API
{
  "options": {
    "num_predict": 25
  }
}

However, this will truncate messages, so you should also make sure to tell the LLM to answer with short responses in the prompt.


[Bug]: Value mapper taking over 1 hour

Apache Hop version?
2.1.0
Java version?
java version "20.0.1" 2023-04-18 Java(TM) SE Runtime Environment (build 20.0.1+9-29) Java HotSpot(TM) 64-Bit Server VM (build 20.0.1+9-29, mixed mode, sharing)
Operating system
Windows
What happened?
Value mapper keeps running, no end in sight

Makant-extract.zip
Issue Priority
Priority: 2
Issue Component
Component: Pipelines

Can you please provide a fully working example of your case? The example provided is either not working or you missed the instructions to properly execute it


⚠ Aither has degraded performance

In 3dc987b, Aither ($AIH) experienced degraded performance:

HTTP code: 200
Response time: 5490 ms

Resolved: Aither performance has improved in 4c2f405 after 12 minutes.


Can't set marker

After the transfer, I can't set a marker for the ingoing hash. After referencing the outgoing hash, I can use the ingoing as well. I'm not sure if this is normal behaviour.

With ingoing hash he meant the tail transaction, it's also not possible to reference both transactions at once, you have to reference the index 1 transaction first (that works even if you have 3 transactions in the bundle)

fixed in https://github.com/iotaledger/ec.ixi/commit/25d28791f3c1a5ec36fb63b0d56a4899cd54b5ca


WIP: example on how to abstract out remote windows as react components

@keybase/react-hackers @cjb
This is a quick and dirty prototype of how to abstract out the details of a remote window / popup as a React Component.
With this all you have to do to render a component is 2 things:

export a remote component (identical to a connected component)
like so:

export const RemoteComponent = remoteConnect(
  state => { return {} },
  dispatch => {
    // TODO move these actions in their proper place
    const onSubmit = () => { return {type: 'pinentry:onSubmit'} }
    const onCancel = () => { return {type: 'pinentry:onCancel'} }
    return {
      onSubmit: () => dispatch(onSubmit()),
      onCancel: () => dispatch(onCancel())
    }
  },
  (stateProps, dispatchProps, ownProps) => {
    return {
      ...stateProps,
      ...dispatchProps,
      ...ownProps
    }
  }
)(Pinentry)

Add a RemoteWindow Component with the component the path of where to import the Component you want to load
so:

<RemoteWindow
  component='pinentry'  // this will be used like require('react/pinentry')
  // any other props should also be included (e.g. pinentry needs a payload prop)
  payload={payload}/>

and that's it!
Actions work as expected (and they'll even show up in redux dev-tools)
To use
go to the dev-menu -> click Remote Window.
TODO
Update Props (currently only set at the beginning).
reuse existing windows to render components and not pay startup cost.
bunch of todos in the code
Preview

Do we really need to make a special construct for this? Can't we just have regular components that are connected, they can require the shared reducers / actions / store. We can just inject the store (or subset) w/o using the url? Let's chat

@MarcoPolo this branch is pretty :zap: :panda_face: :sparkles:!


[DOCFIX] Add javadoc for PermissionCheckerTest

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14818/
Test PASSed.


[BUG] Some items appear smaller in some mobiles

Describe the bug
The text in buttons in some parts of the website appears very small. It includes the more info, contact us and Download section containing the three buttons.
Steps To Reproduce

Go to Drifty's Website in MS Edge.
Press CTRL + SHIFT + I or open DevTools.
Press CTRL + SHIFT + M or Toggle Device Emulation.
Click on Dimensions and select iPhone SE or iPhone 12 Pro or Pixel 5 or Samsung Galaxy S8+, etc.
See the bug as given in the screenshot below.

Expected Behavior
Texts should have proper size and should be displayed properly.
Operating System
Other
Application Version
v1.1.0
Screenshots
Samsung Galaxy S8+

iPhone SE

Additional information
If anyone wants to work on this issue, you can comment below, and I would assign you with the task.

I'd like to work on this please!

I'd like to work on this please!

Ok @Akshu-on-github. Assigning you with the task. Please link this issue to your PR.

Can you assign to me?

@Akshu-on-github is already assigned. So, after @Akshu-on-github 's PR is merged, @manishgupta416, you may open another PR to modify those changes. Or, you may open another issue and a PR to make any other changes in any part of the project.

@Akshu-on-github How much work has been completed?

@SaptarshiSarkar12 here's a screenshot what I've fixed:

Before
After

The bug in the contact us section was pretty much fixed when the number of words was reduced. But the gif in the hero section is something I'm working on right now - I'll create a PR once I figure it out:

@SaptarshiSarkar12 here's a screenshot what I've fixed:
Before	After

The bug in the contact us section was pretty much fixed when the number of words was reduced. But the gif in the hero section is something I'm working on right now - I'll create a PR once I figure it out:

Great @Akshu-on-github ! Waiting fo your PR.


Chat API returning empty Result for 'pin' method

When using the chat API to pin a message in a conversation, the returned result object is empty:
$ keybase chat api -m '{"method": "pin", "params": {"options": {"message_id": 896, "channel": {"name": "dxb", "members_type": "impteamnative"}}}}'
{"result":{}}

In addition to the issue above, i found that when you pin a message, both the read method in the chat api, and the response in the api-listen command returns a content type of pin, but does not include the message id (or any other information) about the message being pinned.
{
  "type": "chat",
  "source": "remote",
  "msg": {
    "id": 904,
    "conversation_id": "0000324c2608e5fc8eee1a4f188ddd5ddb10aa866df1c0ba882bab5a4d6c08b1",
    "channel": {
      "name": "dxb",
      "members_type": "impteamnative",
      "topic_type": "chat"
    },
    "sender": {
      "uid": "bdf35c21f9812c7afdc73ff26d1a1719",
      "username": "dxb",
      "device_id": "50dc77342c0576331c1a29e39b016f18",
      "device_name": "ArchLap"
    },
    "sent_at":<PHONE_NUMBER>,
    "sent_at_ms":<PHONE_NUMBER>462,
    "content": {
      "type": "pin"
    },
    "prev": null,
    "unread": false,
    "channel_mention": "none"
  },
  "pagination": {
    "next": "cd0388",
    "previous": "cd0388",
    "num": 1,
    "last": false
  }
}


USHIFT-713: rebase.sh - handle etcd/go.mod

/cc
/hold

This PR includes https://github.com/openshift/microshift/pull/1028's commits, only last commit is relevant - when 1028 goes in, this will only show relevant changes which are:

rebase.sh changes
etcd/go.{mod,sum} updates
etcd/vendor

/cc @dusk125 @fzdarsky


About com.alibaba.nacos.client.Worker.fixed-**

About spring-cloud-starter-alibaba-nacos-config
CPU is up to 100% after a period of time
After debugging by visualVW, I found that there are many threads.
"com.alibaba.nacos.client.Worker.fixed-<IP_ADDRESS>_8848"
This problem does not occur when I disable the dependency. This should be the main reason for the high CPU usage. Is there any way to solve this problem?

duplicate https://github.com/alibaba/spring-cloud-alibaba/issues/859.


Control audio

Programmatically control muting and speakerphone on/off.

Added in 1.0.8. You can now call mute(), unmute(), speakerPhoneOn(), speakerPhoneOff(). The only problem is that mute() and unmute() only work on certain iOS devices as explained in the isInputGainSettable docs https://developer.apple.com/documentation/avfoundation/avaudiosession/1616502-isinputgainsettable
If a device doesn't support muting/unmuting, then it's best to just mute/unmute using WebRTC.

I also added onMute and onUnmute events in 1.0.9, but they only work for iOS.


Momentum merger and bug fixes

Hellweg now solves the momentum equations (gamma*beta), instead of velocity (beta)
Fixed the bug with Bessel function series expansion -Fixed the bug when beam radius wasn't renormalized when frequency changes (or after the first drift tube element) -Fixed the bug with multiple sections
-Changed keyword "COULOMB" to "LAPOSTOLLE"

The code is not compiling successfully on linux.
I need to further diagnose this and possibly request assistance from the software team.

@bruhwiler do you want us to look at this?

Yes, please.

The last four PRs had failed the tests. I'm going to have to revert them all, and add them one by one.

@skutsaev @ilyapogorelov This merge was a bit more complicated. Would both review the diffs of Beam.cpp and BeamSolver.cpp to make sure it's ok. Thanks

Looks fine to me.


Aux window: allow views and panels

First of all, thank you for implementing the amazing floating window feature!
Most of the developers use a second monitor with portrait orientation to view and write codes. With a full-screen VSCode, the default side bar at left makes it narrower to write codes, so a general workaround is to move the side bar to the bottom.
However, since we are going to have floating window feature, why not push a step forward: move the side bar into a new window. Then we can move the side bar to another screen, and enjoy a real full-screen code view while we still have the ability to navigate between files in the workspace.
Currently, if we create a floating window from a workspace, then click the files in side bar in the original window will re-focus into the original window, and the new file will be in the original window instead of the floating window. So currently we cannot simulate this feature by writing codes in floating window with original window only having side bar.
There are two approaches to implementing the ability to navigate files in side bar in another window:

Move side bar to another window
Make side bar at primary window to control all file navigation at all floating windows

I think the first approach is better than the second since the second needs to deal with focus.

a general workaround is to move the activity bar to the bottom.

Please see https://code.visualstudio.com/docs/getstarted/userinterface and confirm whether you are talking about the Activity Bar or the Side Bar.

a general workaround is to move the activity bar to the bottom.

Please see https://code.visualstudio.com/docs/getstarted/userinterface and confirm whether you are talking about the Activity Bar or the Side Bar.

Thank you for pointing out. Fixed it.

In debug session, please "allow debug panel to be floatable. Etc variables/call statck/watch panels can be floatable.". Variable name could be very long. Once floatable, people can move them to a different monitor to see the full name.
Also, In debug session, please "allow output/debug console panel to be flotable", because people need run gdb command.
Thanks.

For clarity: our first version of floating windows will not cover moving non-editors out to separate windows.

May I ask a quick Q: now the tab can be detached (etc floatable). When will "re-attach (etc merge them back to the main window after detach) be supported? Is there a ticket for tracking re-attach? (I can file one if none). Thanks

@flyingosprey you can just close the window and all editors will merge back to the active group in the main window.

@flyingosprey you can just close the window and all editors will merge back to the active group in the main window.

@bpasero , the workaround should work. But it defintiely not convient (you won't feel for helloworld. but you will feel if the folder has tons of file).
Other edtior/IDE who supports "detach" geneerally supports "re-attach". So is it possible to add this support? Thanks

@flyingosprey you can already drag an individual tab off an auxiliary window and drop it back onto the main window.

@gjsjohnmurray , I am on 1.85.0-insider, which is on Ubuntu 22 LTS with xfce4. I tried "drop it back". No, it does not work. Maybe I  am missing sth. Thanks.

@flyingosprey here's what I can do on Windows:

@flyingosprey I think having an extra command makes good sense. While at it, I feel there should be commands for floating windows in general, so for opening floating windows I am adding:

And for restoring from a floating window:

Happy for feedback on the wording, I quite like the term "detached" over "floating" or "auxiliary".

I also like 'detached'.
Maybe drop 'a' from the first set of new commands?

I only now found https://github.com/microsoft/vscode/issues/193267 with more upvotes, merging in.


HiveError when opening box

Steps to Reproduce
Opening a box that was previously used suddenly fails on every restart. Seems to be related to #94, but I tried Hive.openBox('yourBox', compactionStrategy: (a,b)=> false); and the error continues to be thrown.
Stacktrace

E/flutter (18286): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: HiveError: This is an iternal error. Please open an issue on GitHub and provide steps to reproduce this problem if possible.
E/flutter (18286): #0      Frame.fromBytes (package:hive/src/binary/frame.dart:48:7)
E/flutter (18286): #1      FrameHelper.framesFromBytes (package:hive/src/binary/frame_helper.dart:17:25)
E/flutter (18286): #2      FrameIoHelper.framesFromFile (package:hive/src/io/frame_io_helper.dart:39:12)
E/flutter (18286): <asynchronous suspension>
E/flutter (18286): #3      StorageBackendVm.initialize (package:hive/src/backend/storage_backend_vm.dart:120:29)
E/flutter (18286): <asynchronous suspension>
E/flutter (18286): #4      BoxBase.initialize (package:hive/src/box/box_base.dart:82:20)
E/flutter (18286): #5      HiveImpl.openBox (package:hive/src/hive_impl.dart:87:17)
E/flutter (18286): <asynchronous suspension>

Version

Platform: Android 9.1
Flutter version: v1.9.1+hotfix.6
Hive version: 1.1.1

Any chance you could share an example project or link to a GitHub repo which shows the problem?

@leisim It's currently a closed source repo. This is the only time this error has happened to me (and since then I cannot reproduce this error when I reinstall the app on my phone). My guess is that the app exited during some sort of write operation that caused it to become corrupt (error seems to be originating here). I'm not sure if this info is very helpful, but please let me know if there are anything else I should share.

If you can reproduce the issue or find any more hints, please let me know :+1:

to follow as I am also getting the same error

Will be fixed in 1.2.0 which will be released soon.


Missing Template error in production

I, [2016-09-08T17:25:44.073936 #41694]  INFO -- : Started GET "/admin/tablets_list" for <IP_ADDRESS> at 2016-09-08 17:25:44 +0530
I, [2016-09-08T17:25:44.107349 #41694]  INFO -- : Processing by Admin::CabinetsController#tablets_list as HTML
I, [2016-09-08T17:25:44.199807 #41694]  INFO -- :   Rendered admin/cabinets/tablets_list.html.erb within layouts/admin/application (63.1ms)
I, [2016-09-08T17:25:44.202837 #41694]  INFO -- :   Rendered shared/_flash_notifier.html.erb (0.6ms)
I, [2016-09-08T17:25:44.203983 #41694]  INFO -- : Completed 200 OK in 97ms (Views: 64.0ms | ActiveRecord: 10.0ms)
I, [2016-09-08T17:25:47.090020 #41694]  INFO -- : Started GET "/download_excel.xlsx" for <IP_ADDRESS> at 2016-09-08 17:25:47 +0530
I, [2016-09-08T17:25:47.091346 #41694]  INFO -- : Processing by Admin::CabinetsController#download_excel as XLSX
I, [2016-09-08T17:25:47.099323 #41694]  INFO -- : Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms)
F, [2016-09-08T17:25:47.100854 #41694] FATAL -- :
ActionView::MissingTemplate (Missing template admin/cabinets/download_excel, admin/base/download_excel, application/download_excel with {:locale=>[:en], :formats=>[:xlsx], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in:
  * "/Users/pulkit/dev/dev-scotta-smartcabinets/app/views"
  * "/Users/pulkit/.rvm/gems/ruby-2.2.1/gems/devise-3.4.1/app/views"
):
  app/controllers/admin/cabinets_controller.rb:12:in `block (2 levels) in download_excel'
  app/controllers/admin/cabinets_controller.rb:11:in `download_excel'

Controller action
def download_excel
  @cabinets = Cabinet.all
  respond_to do |format|
    format.xlsx {render xlsx: 'download_excel',filename: "smart_cab.xlsx"}
  end
end

In development its working fine without any error but in production it's giving me the Template missing error, please help.

@pulkit21 If you could set up a repo with the applicable parts, that would be great. It may be an interaction with another gem. Are you using an admin gem? If you can't do a repo, please create a gist with more code (including the Gemfile) so I can reproduce this. I can see what the problem is, I need to recreate it.

What versions of Rails, Axlsx, axlsx_rails, and rubyzip are you using?

@straydogstudio
Rails- 4.2.1
Axlsx- 2.0.1
axlsx_rails- 0.1.5
rubyzip- 1.0.0

This is a Gemfile gist
https://gist.github.com/pulkit21/1dd8b3424c1dd1742b6bf56f6c5881a2

I don't think it will help, but have you tried Axlsx '2.1.0.pre' and rubyzip 1.1.0?

@pulkit21 I think I have it. You've got axlsx and axlsx_rails inside development/test in your Gemfile. Move that outside and I expect it would work.
If you look in your error, there is no axlsx handler listed. That would fit.

Silly me I didn't notice that the gems are under development/test. Thanks a lot @straydogstudio for pointing out my mistake.

You're welcome.

I am having the same issue of missing template in production environment and my gem are also out of development/test environment in Gemfile
gem 'rubyzip', '>= 1.2.1'
gem 'axlsx', git: 'https://github.com/randym/axlsx.git', ref: 'c8ac844'
gem 'axlsx_rails'
can anyone help me on this.

@nitin-cis Do you have axlsx_rails 0.5.2 in your Gemfile.lock? I would add your comment to issue 100. So far I haven't been able to reproduce the error, but I will keep trying. If you are willing to post your Gemfile.lock to a gist for me to look at that might help.


WebJars plugin breaks GraalVM Native Image building

I tried using GraalVM to build a Native Image of my project using ktor-swagger-ui, but the build failed with the following errors:
Error: Unsupported features in 5 methods
Detailed message:
Error: Detected a ZipFile object in the image heap. A ZipFile object contains pointers to unmanaged C memory and file descriptors, and these resources are no longer available at image runtime. If these objects should not be stored in the image heap, you can use

    '--trace-object-instantiation=java.util.jar.JarFile'

to find classes that instantiate these objects. Once you found such a class, you can mark it explicitly for run time initialization with

    '--initialize-at-run-time=<culprit>'

to prevent the instantiation of the object.
The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.

I spent some time debugging, and was able to figure out that the problem is the presence of the Ktor WebJars plugin. Specifically, this.
I made my own artifact locally of ktor-swagger-ui without the WebJars plugin, and my native image built successfully. Additionally, I tested my application, and the Swagger UI was still available, even with WebJars removed.
Since the WebJars plugin doesn't seem to actually be needed for ktor-swagger-ui to work, is it possible to remove it? Or, if it is needed and I've just missed how it's needed, is it possible to make it a configurable option, so that I can disable the WebJars plugin? (And potentially exclude it from my dependencies, if required)

Hi,
i haven't tested in quite some time without the webjars plugin so i'm not sure why i originally added it, but with your and my testing, it seems like its not required.
I'll remove it  with the next version :+1:


fix(rpc): add basefee to header

basefee is part of header
https://github.com/ethereum/go-ethereum/blob/8990c92aea01ca07801597b00c0d83d4e2d9b811/core/types/block.go#L83-L83

Codecov Report

Merging #2087 (39ab186) into main (84f58e3) will decrease coverage by 56.58%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##             main    #2087       +/-   ##
===========================================
- Coverage   72.03%   15.45%   -56.58%
===========================================
  Files         435      435
  Lines       53255    53261        +6
===========================================
- Hits        38360     8232    -30128
- Misses      14895    45029    +30134

Flag
Coverage Δ

integration-tests
15.45% <0.00%> (-3.88%)
:arrow_down:

unit-tests
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

crates/rpc/rpc-types/src/eth/block.rs
0.00% <0.00%> (-26.30%)
:arrow_down:

... and 322 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[Question]: dependency failed to start: container ragflow-mysql is unhealthy   [Warning] Failed to set up SSL because of the following SSL library error: TLS version is invalid

Describe your problem
docker compose -f docker-compose-CN.yml up -d  run error: :(
(base) [root@UEVLBAIDU01 docker]# docker compose -f docker-compose-CN.yml up -d
WARN[0000] The "MACOS" variable is not set. Defaulting to a blank string.
[+] Running 6/6
✔ Network docker_ragflow    Created                                                                                0.6s
✔ Container ragflow-redis   Started                                                                                2.4s
✔ Container ragflow-es-01   Healthy                                                                                57.0s
✘ Container ragflow-mysql   Error                                                                                35.0s
✔ Container ragflow-minio   Started                                                                                2.3s
✔ Container ragflow-server  Created                                                                                0.1s
dependency failed to start: container ragflow-mysql is unhealthy
(base) [root@UEVLBAIDU01 docker]# docker logs ragflow-mysql
2024-08-01T09:39:55.701533Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2024-08-01T09:39:55.716396Z 0 [Note] mysqld (mysqld 5.7.18) starting as process 1 ...
2024-08-01T09:39:55.745019Z 0 [Note] InnoDB: PUNCH HOLE support available
2024-08-01T09:39:55.745059Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2024-08-01T09:39:55.745062Z 0 [Note] InnoDB: Uses event mutexes
2024-08-01T09:39:55.745064Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2024-08-01T09:39:55.745066Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2024-08-01T09:39:55.745067Z 0 [Note] InnoDB: Using Linux native AIO
2024-08-01T09:39:55.745581Z 0 [Note] InnoDB: Number of pools: 1
2024-08-01T09:39:55.745683Z 0 [Note] InnoDB: Using CPU crc32 instructions
2024-08-01T09:39:55.772639Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2024-08-01T09:39:55.799219Z 0 [Note] InnoDB: Completed initialization of buffer pool
2024-08-01T09:39:55.808232Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2024-08-01T09:39:55.834347Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2024-08-01T09:39:55.866599Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2024-08-01T09:39:55.866682Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-08-01T09:39:55.906603Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2024-08-01T09:39:55.907240Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2024-08-01T09:39:55.907251Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2024-08-01T09:39:55.907522Z 0 [Note] InnoDB: Waiting for purge to start
2024-08-01T09:39:55.958316Z 0 [Note] InnoDB: 5.7.18 started; log sequence number 12139872
2024-08-01T09:39:55.958638Z 0 [Note] Plugin 'FEDERATED' is disabled.
2024-08-01T09:39:55.960120Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2024-08-01T09:39:55.972714Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2024-08-01T09:39:55.972753Z 0 [Warning] Failed to set up SSL because of the following SSL library error: TLS version is invalid
2024-08-01T09:39:55.980490Z 0 [Note] InnoDB: Buffer pool(s) load completed at 240801 17:39:55
2024-08-01T09:39:55.982178Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2024-08-01T09:39:55.982267Z 0 [Note] IPv6 is available.
2024-08-01T09:39:55.982279Z 0 [Note]   - '::' resolves to '::';
2024-08-01T09:39:55.982322Z 0 [Note] Server socket created on IP: '::'.
2024-08-01T09:39:55.995476Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2024-08-01T09:39:55.995530Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2024-08-01T09:39:55.995958Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2024-08-01T09:39:55.996350Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2024-08-01T09:39:56.010904Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2024-08-01T09:39:56.065776Z 0 [Note] Event Scheduler: Loaded 0 events
2024-08-01T09:39:56.065984Z 0 [Note] Execution of init_file '/data/application/init.sql' started.
2024-08-01T09:39:56.067364Z 0 [Note] Execution of init_file '/data/application/init.sql' ended.
2024-08-01T09:39:56.067438Z 0 [Note] mysqld: ready for connections.
Version: '5.7.18'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
2024-08-01T09:39:56.067450Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
2024-08-01T09:39:56.067451Z 0 [Note] Beginning of list of non-natively partitioned tables
2024-08-01T09:39:56.138471Z 0 [Note] End of list of non-natively partitioned tables

Are you using MAC?
If you are, change mysql to mariaDB and set MACOS=1 in docker/.env

Are you using MAC? If you are, change mysql to mariaDB and set MACOS=1 in docker/.env

i am using oracle linux 9,

I have the same problem on my macbook m1.

docker-compose-CN.yml has been deleted in main. Please use newer release.


llvmPackages_16.compiler-rt: fix static build on Darwin

Description of changes
This fixes two issues on Darwin to allow pkgsStatic to work with LLVM 16

It fixes an infinite recursion where Darwin was using a regular stdenv to build compiler-rt instead of one without compiler-rt; and
It disables sanitizers that won’t build statically and makes sure the build can find the cross-lipo.

This should fix the evaluation error blocking #241692.
Testing was done by cherry-picking #241692 and running nix build .#pkgsStatic.hello on an aarch64-darwin machine.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Just want to call attention to CI reporting the following failure:
> [531/677] Building CXX object lib/interception/CMakeFiles/RTInterception.osx.dir/interception_type_test.cpp.o
> [532/677] Building CXX object lib/stats/CMakeFiles/clang_rt.stats_osx_dynamic.dir/stats.cpp.o
> [533/677] Linking CXX shared library lib/darwin/libclang_rt.stats_osx_dynamic.dylib
> FAILED: lib/darwin/libclang_rt.stats_osx_dynamic.dylib
> : && /nix/store/nf88qx6vd8plhvb4ldwqsajik6c42wbj-clang-wrapper-16.0.6/bin/clang++ -Wall -Wno-unused-parameter -O3 -DNDEBUG -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names -stdlib=libc++ -lc++ -lc++abi -fapplication-extension -mmacosx-version-min=10.10 -isysroot /nix/store/v302y65qc8gyxqc49zv6gr08klvr6lg5-SDKs/MacOSX10.12.sdk -nodefaultlibs -nostdlib++ -Wl,-U,___asan_default_options -Wl,-U,___asan_default_suppressions -Wl,-U,___asan_on_error -Wl,-U,___asan_set_shadow_00 -Wl,-U,___asan_set_shadow_01 -Wl,-U,___asan_set_shadow_02 -Wl,-U,___asan_set_shadow_03 -Wl,-U,___asan_set_shadow_04 -Wl,-U,___asan_set_shadow_05 -Wl,-U,___asan_set_shadow_06 -Wl,-U,___asan_set_shadow_07 -Wl,-U,___asan_set_shadow_f1 -Wl,-U,___asan_set_shadow_f2 -Wl,-U,___asan_set_shadow_f3 -Wl,-U,___asan_set_shadow_f4 -Wl,-U,___asan_set_shadow_f5 -Wl,-U,___asan_set_shadow_f6 -Wl,-U,___asan_set_shadow_f7 -Wl,-U,___asan_set_shadow_f8 -Wl,-U,___ubsan_default_options -Wl,-U,___sanitizer_free_hook -Wl,-U,___sanitizer_malloc_hook -Wl,-U,___sanitizer_report_error_summary -Wl,-U,___sanitizer_sandbox_on_notify -Wl,-U,___sanitizer_symbolize_code -Wl,-U,___sanitizer_symbolize_data -Wl,-U,___sanitizer_symbolize_demangle -Wl,-U,___sanitizer_symbolize_flush -Wl,-U,___sanitizer_symbolize_set_demangle -Wl,-U,___sanitizer_symbolize_set_inline_frames -o lib/darwin/libclang_rt.stats_osx_dynamic.dylib -install_name @rpath/libclang_rt.stats_osx_dynamic.dylib lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_allocator.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_common.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_deadlock_detector1.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_deadlock_detector2.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_errno.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_file.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_flags.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_flag_parser.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_fuchsia.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_libc.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_libignore.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_linux.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_linux_s390.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_mac.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_mutex.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_netbsd.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_freebsd.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_linux.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_netbsd.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_posix.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_platform_limits_solaris.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_posix.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_printf.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_common.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_bsd.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_fuchsia.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_linux.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_mac.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_solaris.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_solaris.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_stoptheworld_fuchsia.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_stoptheworld_mac.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_stoptheworld_win.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_suppressions.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_tls_get_addr.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_thread_registry.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_type_traits.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_win.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_termination.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_common_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_allocator_checks.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_linux_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_mac_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_posix_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_stoptheworld_linux_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.osx.dir/sanitizer_stoptheworld_netbsd_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_allocator_report.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_chained_origin_depot.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_stack_store.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_stackdepot.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_stacktrace.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_stacktrace_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_stacktrace_printer.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_stacktrace_sparc.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_libbacktrace.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_mac.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_markup.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_posix_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_report.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_symbolizer_win.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_unwind_linux_libcdep.cpp.o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonSymbolizer.osx.dir/sanitizer_unwind_win.cpp.o lib/stats/CMakeFiles/clang_rt.stats_osx_dynamic.dir/stats.cpp.o  -lc && :
> clang-16: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
> ld: library not found for -lc++
> clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/h577p2y0mhby8fkjdv57i6sf2gq1vpjr-compiler-rt-libc-16.0.6.drv'.

Just want to call attention to CI reporting the following failure:

Thanks for the head up. I’ll look into it Monday evening.

My guess is it’s failing without the clang 16 stdenv. I probably need to copy whatever logic I’m using there to make sure the sanitizers can still build.

I simplified the patch. I confirmed both that pkgsStatic.hello built with the clang 16 stdenv and llvmPackages_16.compiler-rt build with both the clang 11 and clang 16 stdenvs.

As a follow up once this is merged, I can port this to llvmPackages_git and possibly the other ones (12–15) as well for consistency. I don’t want the scope of this one to creep up since it is blocking #241692.


Discussion: should unitless line-height be preferred?

See this post by Eric Meyer. Should scss-lint incorporate a bias towards unitless line-height values? It makes sense to me and I would argue that united line-heights most likely would stem from lack of knowledge about the subject (e.g. why pixel values should be avoided and how the consequences of em- and unitless values differ).

:+1: I would love a linter to enforce unitless line heights

PropertyUnits can enforce unitless line heights (see here for the exact example of line-height).
I guess the suggestion is to change the default config of PropertyUnits?

I didn't even know PropertyUnits could do that. That solves it for me personally

Didn't know about PropertyUnits either. That works fine. :thumbsup:


PGN Editor: Stockfish cannot be loaded on non-analysis pages

Probably PGN Editor should always open https://lichess.org/analysis#pgnEditor

fixed in v2.3.121


No network access with networkingMode=mirrored

Windows Version
10.0.22635.2771
WSL Version
2.0.9
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-microsoft-standard-WSL2
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
ping google.com
Expected Behavior
I am expecting to see a successful ping
Actual Behavior
ping: google.com: Temporary failure in name resolution
If I am in NAT mode everything works, but the VPN is super broken and my previous workarounds no longer work with 2.0.9. I do not have HyperV installed
Diagnostic Logs
WslLogs-2023-11-18_11-23-14.zip

+1

I don't see network anywhere. Maybe you wanted networkingMode?

@aentwist sorry, it was a typo in my issue title.
I updated to 2.0.14 and I am seeing the same issue
ping: google.com: Temporary failure in name resolution
just nothing at all in mirrored

Could you please follow the steps below and attach the diagnostic logs? https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

I am having the same issue - if I enable networkingMode=mirrored I can do DNS (probably because I turned on the dnsTunneling) but cannot connect/ping any IP except my PC's own IP

Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues
It should create a folder like [WslNetworkingLogs-date_ver.zip]

I am WSL networking product manager from Microsoft. Please follow the instructions from the link above and share WSL networking logs so we can help you.

Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues
It should create a folder like [WslNetworkingLogs-date_ver.zip]

I have the same problem
WslNetworkingLogs-2023-12-20_10-46-38.zip
.wslconfig
[wsl2]
networkingMode=mirrored
#dnsTunneling=true
#firewall=true
#autoProxy=true
#swap=0

[experimental]
autoMemoryReclaim=dropcache
sparseVhd=true

wsl.conf
[boot]
systemd=true

[network]
generateResolvConf=false

Same problem, mirrored networking fine at first but drops after only a few minutes
C:\Users\conan>wsl --version
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.57
MSRDC version: 1.2.4485
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.22631.3235

.wslconfig
[experimental]
networkingMode = mirrored

wsl.conf
[boot]
systemd=true

WslLogs-2024-03-07_10-14-51.zip

same here

I just enabled dnsTunneling and it now works:
[wsl2]
dnsTunneling=true

I am WSL networking product manager from Microsoft. Please follow the instructions from the link above and share WSL networking logs so we can help you.

when does the help come?😭

As a workaround I disabled systemd-networkd with sudo systemctl mask systemd-networkd.

Workaround: Use Windows local IP address.
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.5247


Allow to pass marker's label as object

Google Maps API allow to pass string or object with defined structure. This PR will allow to do the same and follow official API.

Thanks! added some comments

LGTM


Issues with configparser with python 3.12.x

Hi,
first thanks for iocsearch, love it to use. I upgraded my python to latest version and experience this issue:
searcher = Searcher()
^^^^^^^^^^
File "/opt/gms/venv/lib/python3.12/site-packages/iocsearcher/searcher.py", line 96, in init
num_patterns = self.read_patterns(self.patterns_ini)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/gms/venv/lib/python3.12/site-packages/iocsearcher/searcher.py", line 792, in read_patterns
config = ConfigParser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
┌──(venv)─(root㉿kali)-[/opt/gms/prod/bc]
└─# python --version
Python 3.12.6
would be great to receive an advice how to fix it. Thanks

Hi,
There was some legacy configparser code that has been removed in Python 3.12
I have replaced that code and submitted a new package version 2.4.2 that should fix it
Please upgrade and close this issue if the update works for you

Works, much appreciated!


#110 Add an option to automatically scroll to the first faulty input

Fixes #110

Thanks for this.  Could you add a test for the functionality?

Tests added ;)

Thanks for this.  I'll release this today

Released in version 1.19.1


Add Unit / Component / System Tests

Tasks:

unit tests: back up all critical Chord.Lib API functionality
component tests: make sure all Chord node endpoints work properly
system tests: launch a little docker-compose deployment simulating real network communication between Chord nodes

unit test coverage is being built
already covers bootstrapping and forwarding via finger table


No wheels available for Linux

It looks like there are currently no wheels available on Linux, no clue about other platforms.
This means that every install has to build bonsai from source.
Are there plans to build and upload wheels for the current version?
Maybe create a Github action for building and publishing?

It's a little bit complicated to create manylinux wheels for bonsai.
It has quite significant library dependencies. One of them is libssl, which included in a wheel could cause problems in certain cases with other modules depending on it (e.g. the ssl module). By distributing the SSL library with the wheel would also mean that any security vulnerabilities found in the library would require a new module release as well to fix them (while the source distribution can rely on a simple OS package upgrade).
These are the reasons why the psycopg2 module has a completely separate package (psycopg2-binary) that's not recommended for production use, just for quick start.
Nevertheless, I've tried to create a manylinux wheels for the module recently, thought that I would distribute it similar to the psycopg2 module with the same restrictions. But I ran in to another problem related to the sasl2 library. This library loads other libraries dynamically at run-time, depending on which authentication mechanism is used for binding. That makes it even trickier to create a working wheel. Unfortunately, I'm lack of knowledge about library linking and wheel distribution to solve this problem. :/


pyQT5 support added

python pyQT5 version supported

but there is a problem with 3D simulation of the drone

The log seems to work after i reinstalled it. But now the gui for 3d
representation doesnt seems to work.
On Wed, Sep 5, 2018, 6:28 PM LP<EMAIL_ADDRESS>wrote:

@Marxlp requested changes on this pull request.
After reading you pull request, I think the list operation you add on the
map function is needed. But I can't figure out what's the purpose of others
changes like importing FigureCanvas.
In src/analysis.py
https://github.com/Marxlp/pyFlightAnalysis/pull/11#discussion_r215256222
:

@@ -13,6 +13,9 @@
from pyulog.core import ULog
from pyqtgraph.Qt import QtCore,QtGui
import pyqtgraph as pg
+from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas

You add this, but it seems that you didn't use it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Marxlp/pyFlightAnalysis/pull/11#pullrequestreview-152478571,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYJPVMe0EC3YVrzskBcPmNnaJaEjwXs6ks5uX8pggaJpZM4WJXU6
.


Adding a new line after a commented out line ignores indentation

Godot version:

3.2.3
OS/device including version:

Linux
Issue description:

happened:
https://user-images.githubusercontent.com/16458555/112558231-1346b300-8df0-11eb-9c8a-b9f63452903f.mp4
expected:
https://user-images.githubusercontent.com/16458555/112558236-15a90d00-8df0-11eb-83bc-f72005f66801.mp4
Steps to reproduce:

Create a script
Create a function with some code (one line is enough) and comment it (Control+K)
Press Enter or Control+Enter to add a new line (right after the commented out one)
As you can see, indentation level is not taken into account, but it should.
As a result you need to hit Tab key to keep indentation

This is a bit annoying, especially when you have multiple levels of indentation (and have to press Tab several times)
Minimal reproduction project:

I think indentation after comment is working as expected. It's the comment feature (CTRL-K) that's ignoring indentation.
Creating a new line after the comment beblow indents as expected.
func _init():
    var a
    # print(a)

@timothyqiu when I do this in the middle of a function, I don't expect this behavior and I need to press Tab each time.
When you need to press Tab five times because the indentation level of the line is 5, it can be boring.
I see 2 options to solve it:

Make it "smarter", so that it could respect indentation;
Implement https://github.com/godotengine/godot-proposals/issues/110


StrictRedisCluster().info() not returning all nodes

I'm using INFO to get usage stats for each of the nodes in my Redis Cluster, but it seems that .info() always fails to return details for a specific node (a slave node).
Using RedisClusterMgt().info() returns the details of all six nodes in the cluster and redis-cli reports the same data. Running INFO on the node which is always excluded from StrictRedisCluster().info() returns the expected stats: running as a slave in the correct cluster.
The missing node is not included in my startup_nodes (only the 3 masters).
I'm guessing this could be a bug in NodeManager, but I'd appreciate a pointer or two before I dive into trying to debug the problem.... Thanks!

I'm using INFO to get usage stats for each of the nodes in my Redis Cluster, but it seems that .info() always fails to return details for a specific node (a slave node).
The missing node is not included in my startup_nodes (only the 3 masters).

I can't reproduce above on redis-py-cluster 1.0.0 and the latest unstable branch.
What is your reproducible code?
$ redis-cli --version
redis-cli 3.0.2
$ redis-cli -p 7000 cluster nodes | sort -k 2
473c2eaabd94a1bdaae6b82569c29d6e6d0c3868 <IP_ADDRESS>:7000 myself,master - 0 0 1 connected 0-5460
9af5e607cb44c79671e4292ad95ef37e0878b8f7 <IP_ADDRESS>:7001 master - 0<PHONE_NUMBER>775 2 connected 5461-10922
7b7b43609ce3ac1be56f05c2c45f2d2412407fa4 <IP_ADDRESS>:7002 master - 0<PHONE_NUMBER>775 3 connected 10923-16383
931cb6d7e36b916853651883db595b3b8b6cb2bf <IP_ADDRESS>:7003 slave 473c2eaabd94a1bdaae6b82569c29d6e6d0c3868 0<PHONE_NUMBER>273 4 connected
552286c8c325884c4ada547a2ecb158b9d1ffd3d <IP_ADDRESS>:7004 slave 9af5e607cb44c79671e4292ad95ef37e0878b8f7 0<PHONE_NUMBER>773 5 connected
da2eb13079edceebd0ca4a2aba82053fd31aa3ae <IP_ADDRESS>:7005 slave 7b7b43609ce3ac1be56f05c2c45f2d2412407fa4 0<PHONE_NUMBER>771 6 connected

$ python
Python 2.7.9 (default, Mar  1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from rediscluster import StrictRedisCluster
>>> startup_nodes = [{"host": "<IP_ADDRESS>", "port": "7000"}, {"host": "<IP_ADDRESS>", "port": "7001"}, {"host": "<IP_ADDRESS>", "port": "7002"}]
>>> rc = StrictRedisCluster(startup_nodes=startup_nodes, decode_responses=True)
>>> import json
>>> print json.dumps(sorted(rc.info().items(), key=lambda t: t[0]), indent=2)
[
  [
    "<IP_ADDRESS>:7000",
    {
      "aof_rewrite_in_progress": 0,
      ...
  ],
  [
    "<IP_ADDRESS>:7001",
    {
      "aof_rewrite_in_progress": 0,
       ....
  ],
  [
    "<IP_ADDRESS>:7002",
    {
      "aof_rewrite_in_progress": 0,
      ....
    }
  ],
  [
    "<IP_ADDRESS>:7003",
    {
      "aof_rewrite_in_progress": 0,
      ....
    }
  ],
  [
    "<IP_ADDRESS>:7004",
    {
      "aof_rewrite_in_progress": 0,
        ....
    }
  ],
  [
    "<IP_ADDRESS>:7005",
    {
      "aof_rewrite_in_progress": 0,
      ....
    }
  ]
]

Thanks @mumumu - have been digging deeper and it seems that the slave node in question is not returning the correct response to CLUSTER SLOTS (it is not reporting itself as a slave, but CLUSTER INFO states that the slave is connected). Not sure what the issue is here, but it's clearly not with redis-py-cluster so I'll close this. Thanks for taking the time to check it out.


Implement keyboard accessibility for navigation links

Top <nav> is not accessible for keyboard users for either mobile or desktop. Spacebar and Enter should activate dropdowns. Consider using <button> element or role="button" instead of <href> to avoid empty links and implement <ariahaspopup> set to true. When menu is visible, button has <aria-expanded> set to true and when menu is hidden it is set to false.

@HaSistrunk Should the page content navigation be accessible in the same way as the top nav?

Oh yes, good point. For the mobile version with the Open/Close Page Menu button on the page content nav, that should also be keyboard accessible and have the ARIA states for haspopup and aria-expanded

note to self: https://github.com/Heydon/inclusive-menu-button

Page content nav 922964a929c341d6d8af45e1506771dc1050d6e5
Top nav accessibility


Rule 932370 has false positive for "At" after newline

Description
"At" after a newline triggers rule 932370. For example, this:
Go to store.
At the store, shop.

https://github.com/coreruleset/coreruleset/blob/44b82683028188f770541567db760e24810e84ca/regex-assembly/932370.ra#L37
How to reproduce the misbehavior (-> curl call)
curl -H "x-format-output: txt-matched-rules" "https://sandbox.coreruleset.org/?msg=Go%20to%20store.%0AAt%20the%20store%2C%20shop."

932370 PL1 Remote Command Execution: Windows Command Injection
949110 PL1 Inbound Anomaly Score Exceeded (Total Score: 5)
980170 PL1 Anomaly Scores: (Inbound Scores: blocking=5, detection=5, per_pl=5-0-0-0, threshold=5) - (Outbound Scores: blocking=0, detection=0, per_pl=0-0-0-0, threshold=4) - (SQLI=0, XSS=0, RFI=0, LFI=0, RCE=5, PHPI=0, HTTP=0, SESS=0, COMBINED_SCORE=5)

Your Environment

CRS version (e.g., v3.3.4): 4.8.0
Paranoia level setting (e.g. PL1) : PL1
ModSecurity version (e.g., 2.9.6): 3.0.13
Web Server and version or cloud provider / CDN (e.g., Apache httpd 2.4.54): Nginx 1.26.1
Operating System and version: Linux

Confirmation

[X] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.

Hi @ssigwart,
thanks for letting know this issue. As I remember there was a discussion about the word "at", but it seems that finally we added that. It's sad that rule is on PL1.
Unfortunately what you can do is that create an exclusion against that FP. Feel free to ask help if you need.

Thanks, @airween. I can create an exclusion. I just try to report things here in case others have similar issues.


Demo for slidesPerColumn broken?

I would expect, that the demo for Slides per column would show some multirow layout like:

Instead it looks broken:

Tested in latest Chrome and Firefox.
Link to the Demo CodeSandbox
This is also true for the Swiper 6 Demo (which I have to work with).

It seems, that it should be using the grid module  instead:
https://codesandbox.io/s/swiper-slides-per-column-forked-dm7776?file=/index.html


Move reading of scopes yaml file out of generator

Currently, you must provide the generator with a yaml file containing
the scope descriptions and it reads that file.  Having the generator
read from the file system feels out of place since that should really be
the plugins responsibility.
Added a new scopes property to Oauth2Configuration that will hold a
map of the scopes and descriptions.  The plugin now reads in the yaml
file and populates this new scopes property instead of just passing
the file to the generator.

@mduesterhoeft this should be ready to go as well.  Similar comment to my other pull request regarding code coverage.  It looks like all the files that led to code coverage decreasing don't currently have any coverage as it is.  So I would need to write tests for all of them.  Let me know if this is an issue for you.

Very good point - it is much better with you change.
Regarding the coverage. The plugin coverage is not correctly reported. I have to figure out how to measure coverage for everything that the GradleRunner does internally.


fix issue 804 and add trivy ignorance(confirmed)

1.Fix issue 804, user can only enter lowercase in "Centre ID" box
2.Add trivy ignorance (confirmed it's a bug we could ignore this vul)

https://github.com/wmo-im/wis2box/issues/804


Log not showing proper source_ip

Hello,
I recently had to add a second traefik in front of my existing traefik to have this mddleware disabled for some routers as it doesn't play nice with HEAD requests.
Doing so, I got it fully working, but the logs are quite missleasing.
I think the source_ip is somehow compared correctly in the rules but not logged properly when too many x-forwarded-for headers are piled on.
In my forward.ini I have this rule :
rule.allow-range.action = allow
rule.allow-range.rule = HeadersRegexp(`X-Real-Ip`, `^10\.0\.30\.[1-254]`)

And in my logs I see this :
time="2022-01-04T09:18:22Z" level=debug msg="Allowing request" cookies="[<lots of things>]" handler=Allow host="portainer.example.com:8443" method=GET proto=https rule=allow-range source_ip=<IP_ADDRESS> uri=/

As you can see, this <IP_ADDRESS> should not match the rule, and in fact the request was indeed made from a client in the 10.0.30.x range so the match was correct but the log was not.`
And when I switch my client to another ip otside the range, I do get a log saying Authenticating request matching the rule default, but also with the wrong source_ip.
In fact, this <IP_ADDRESS> is the IP of the second traefik I added in front of the traefik that is configured with this forwardauth middleware. I think I have setup both traefiks properly and it seems to be the case as the behaviour seems to be correct, only the log seems wrong. (I did not use forwardedHeaders.insecure but simply added my front traefik's IP in the trustedIPs of the original traefik using forwardAuth)
Somehow I did not have this problem before adding the second traefik in front and I do get the proper source_ip in the logs when clients talk to my original traefik directly and not through the second one I added in front.
I'm finding this strange as it does work properly it seems, but logs something that is not usefull anymore and quite confusing to me.
Thanks in advance for any kind of help,
Best Regards,
Toxic.

Disable the docker userland proxy.

I just added "userland-proxy": false to my /etc/docker/daemon.json and did a service docker restart but no luck, the source_ip changed to <IP_ADDRESS> but that is only the new IP of my "front traefik", so same behaviour as before.
Maybe I shall not use the alias in my traefik front :
  [http.routers]
    [http.routers.maintraefik]
      service = "maintraefik"
      rule = "HostRegexp(`{host:.+}`)"
  [http.services]
    [http.services.maintraefik.loadBalancer]
      [[http.services.maintraefik.loadBalancer.servers]]
        url = "https://traefik:443"

But regardless, my "main" traefik has this :
  [entryPoints.websecure]
    address = ":443"
    [entryPoints.websecure.http]
      middlewares = ["sso@file","organizrFrame@file"]
    [entryPoints.websecure.http.tls]
      certResolver = "le"
    [entryPoints.websecure.forwardedHeaders]
      trustedIPs = ["<IP_ADDRESS>/16"]
    [entryPoints.websecure.proxyProtocol]
      trustedIPs = ["<IP_ADDRESS>/16"]

So <IP_ADDRESS> should fall into the <IP_ADDRESS>/16 CIDR and it seems it does.


Closing the game during the recruitment can descync the quicksave.

I don't know much details of what exactly happened but i managed to do destroy my quick save doing it.
data.zip
this file contains a video from real game perspective and the final result of the give up replay.

Fix in https://github.com/RogueCollab/RogueEssence/commit/ffe2b316ac6fbedcc0170b46492a4f701116836e


Events with a . character in the name break the templates

EPD-1423 (P2)

will close and track internally @WesleyDRobinson !


Add default minimize and maximize icons to flex layout components

@ddelpiano Here are the icons made by Paul
Expand
Collapse


iCubWaterloo01 robot

@julijenv @violadelbono this is the draft PR to add iCubWaterloo01.
Please use a fork next time.

cc @Nicogene

@julijenv @violadelbono I've applied the fixes introduced via #220 also to iCubWaterloo01: see https://github.com/robotology/robots-configuration/pull/219/commits/5fe7797f6650736a4bb4b38c7faf4a8b41544275.
Thus, you may want to pull these locally.

I did a pull on robots-configuration. I think we are ready to merge


fix(help): Generalize --ignore-rust-version

What does this PR try to resolve?
This is part of #9930 and updates for the help to accommodate #13738 and adding --ignore-rust-version to cargo update  for when they are stable
How should we test and review this PR?
Additional information

Blocked on #13738

:pushpin: Commit a0ba72918a63e706c46625889d6fd91279cf9719 has been approved by Muscraft
It is now in the queue for this repository.

:hourglass: Testing commit a0ba72918a63e706c46625889d6fd91279cf9719 with merge 6208c52b4cdb80a65c5ce2fa1dae58b50a476e03...

:sunny: Test successful - checks-actions
Approved by: Muscraft
Pushing 6208c52b4cdb80a65c5ce2fa1dae58b50a476e03 to master...


[feature]: convert dependency integration code to code blocks

Is there an existing feature request for this?

[X] I have searched the existing issues

Summary
Currently, the instructions to wrap a dependency are shown in an accordion as code without formatting.

Why should this be worked on?
A code block can be added to enhance the readability of code and easily cope with it.

@nehagup  will love to work on this. Please assign me this issue.

@Anshika-sona we can assign one issue to an individual at a time. :)

@Hermione2408 sure you can work on this. It's a bit stale because the UI has not been maintained and thus the GraphQL contracts might be breaking.

Sure I will start working on this and if I face any issue I will ping you


Nadekobot updater should have an option to download ffmpeg

She would add it to the nadekobot folder and it should work.
Let users pick linux/windows and 32/64 bit (or just recognize it in the code and download required version)

too hacky


More guidance about System Requirements

Explain how system dependencies are installed on the different platforms. On some platforms, if something is missing, you won't be able to do anything about it yourself but will need to open an issue.

Explain how to check a package's SystemRequirements field is parsed. Recommend to locally use sysreqs to check that for one's package?

Part of this in the docs, maybe another part in a blog post.

Mention fonts/TeX stuff explicitely.

For that to happen, the official guidance about fonts/TeX would need to be clearer. Note that there are less fonts issues nowadays, but tex installation remains present in issues.

This issue is about the previous R-hub system, it does not apply to the new system, so I am closing it now.


Fix: Only seeing "in progress" status

Pull Request Template
:loudspeaker: Type of change

[x] Bugfix
[ ] New feature
[ ] Refactoring
[x] Enhancement

:scroll: Description

The function getWorkflowRunStatus() was working incorrectly. I added a new way to get the current status of jobs.
You can see that job.name didn't match with process.env.GITHUB_JOB most part of time. Because of this, when we try to find step conclusion in array of steps, we'll get nothing, because jobs object is null.
There is another point here. This way bellow we don't get the success or skipped scenarios. We just have: in progress (default)  and  some failure cases.  Following the docs, I assumed that we just have these steps conclusion: skipped, failure, success and cancelled.
So I created some logic to get the previous steps conclusion and I assumed that if nothing has failed we got some success scenario. I also discarding the current step, notification step. Most part of time we need to send a notification about previous steps or jobs and not to the current one.
example:
Before changes 😴
  let lastStep;
  const stoppedStep = job?.steps.find(
    (step: Octokit.ActionsListJobsForWorkflowRunResponseJobsItemStepsItem) =>
      step.conclusion === "failure" ||
      step.conclusion === "timed_out" ||
      step.conclusion === "cancelled" ||
      step.conclusion === "action_required"
  );
...

After changes: 😄
let lastStep = {} as Octokit.ActionsListJobsForWorkflowRunResponseJobsItemStepsItem
  let jobStartDate

  /**
   * We have to verify all jobs steps. We don't know
   * if users are using multiple jobs or not. Btw,
   * we don't need to check if GITHUB_JOB env is the
   * same of the Octokit job name, because it is different.
   *
   * @note We are using a quadratic way to search all steps.
   * But we have just a few elements, so this is not
   * a performance issue
   *
   * The conclusion steps, according to the documentation, are:
   * <success>, <cancelled>, <failure> and <skipped>
   */
  let abort = false
  for(let job of workflowJobs.data.jobs) {
    for(let step of job.steps) {
      // check if current step still running
      if (step.completed_at !== null) {
        lastStep = step
        jobStartDate = job.started_at
        // Some step/job has failed. Get out from here.
        if (step?.conclusion !== "success" && step?.conclusion !== "skipped") {
            abort = true
            break
        }
       /**
        * If nothing has failed, so we have a success scenario
        * @note ignoring skipped cases.
        */
        lastStep.conclusion = "success"
      }
    }
    // // Some step/job has failed. Get out from here.
    if (abort) break
   }

:green_heart: How did you test it?
manually
:pencil: Checklist

[x] I reviewed submitted code
[ ] I added tests to verify changes

:crystal_ball: Next steps
:camera_flash: Screenshots / GIFs

Any chance this is getting merged @aldwyn-acn ? I actually use the fork now because I didn't find another way to get the status working for reusable workflows.

@patrickpaulin: How to avoid the IN_PROGRESS card being shown?

Do we have something similar like, show-on-start, show-on-exit, show-on-failure - for instance, show-in-progress?

@patrickpaulin  It is not working for me. If it is working for everyone you should publish on market place. It will be easy for everyone.

name: Build and Deploy DEV2
'on':
  workflow_dispatch:
jobs:
  deploy_dev2:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: MS Teams Notification Setup
        uses: patrickpaulin/ms-teams-deploy-card@master
        if: always()
        with:
          github-token: ${{ secrets.TOKEN_PIPELINE }}
          webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
          environment: ${{ secrets.ENV }}
          card-layout-exit: complete
          show-on-failure: true
          allowed-file-len: 10
          timezone: Asia/Kolkata
      - name: Terraform Plan Status
        if: steps.plan.outcome == 'failure'
        run: exit 1
      - name: Build succeeded
        if: steps.plan.outcome == 'success'
        run: echo "App built and deployed" && exit 0

Above is my workflow file. I am not getting success status after completion of the job. Let me know If doing something wrong.


Examples

Add examples that test the waters of the usefulness of this so-called "component system".
Ideas for examples:

[X] Basic posts example on bl.ocks.org
[X] Spinner
Swap out React with D3 components in Redux Examples

counter
todos
todomvc

Line chart component from Towards Reusable Charts
Reusable Bar Chart
Dynamic Baseball Scatter Plot

Would be great to have examples for Bootstrap UI elements

Radio Buttons
Checkboxes
Menus
Tabs

Inspired by this question on the D3 mailing list https://groups.google.com/forum/#!topic/d3-js/PDjtJJjABpU

A minimal version of Google's timer/stopwatch app would be a really cool example

This would also be a good one

More inspiration for examples: 10 React mini-patterns


NARA harvest delta

Add merge strategy to build.sbt

Add XML file filter

Add AVRO file filter

Fix issue where harvest data was only available to master node. Harvested Avro file in /tmp/nara/ is now copied to HDFS so it can be read by Spark (needed for processing NARA deletes)

Now allows for providing multiple files which define IDs to be removed. Files should be provided in a /deletes/ folder along side data to be harvested.
Note this still does not support adding back a record that was previously marked for deletion. That feature will require a more substantial rewrite to this harvester.

./nara_original_records/
./nara_original_records/20191104-nara-delta.tar.gz
./nara_original_records/deletes/201905_deletes.xml
./nara_original_records/deletes/NAC_Deletes_0001.xml

@mdellabitta @AudreyAltman I think a second look at this might be helpful after the last round of changes


Ethereum Login button broken in Brave Browser with Metamask

Ethereum Login button does nothing when pushed.
Environment:
Operating System: Manjaro Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.10.89-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Brave Version:
Version 1.33.106 Chromium: 96.0.4664.110 (Official Build) unknown (64-bit)
Could be related to this error from the browser execution log.
inpage.js:1 Uncaught Error: MetaMask detected another web3.
     MetaMask will not work reliably with another web3 extension.
     This usually happens if you have two MetaMasks installed,
     or MetaMask and another web3 extension. Please remove one
     and try again.
    at Object.<anonymous> (inpage.js:1)
    at Object.<anonymous> (inpage.js:1)
    at Object.1../lib/setupWeb3.js (inpage.js:1)
    at i (inpage.js:1)
    at e (inpage.js:1)
    at inpage.js:1

See also regarding use of web3.
This problem goes away when using Chromium browser.

inpage.js:1 Uncaught Error: MetaMask detected another web3.

This is most likely because you have Brave wallet installed and enabled.

Yes!
To fix, if ON, toggle to OFF the "Crypto Wallets" setting in  Manage Extensions.

When "Crypto Wallets" toggled to OFF, Metamask login works.


Importing a library using an invalid URL crashes the Home page

When importing a library, if an invalid url is used the Home page will throw an error message.
Steps to reproduce the behavior:

Go to the Library section
Click on the add library button
Fill the required fields but make sure that the url isn't valid
Click on "Create"
Go to the Home page
You'll be able to see the error.

Expected behavior:
The invalid url shouldn't be accepted as a valid field preventing the user from creating an unsupported library.
Using a non valid URL

The library is created

The bug shows up

Desktop:

OS: Ubuntu VM
Browser: Firefox
Version: 75.0

I think this might be fixed by changes in PR #327
Please checkout development branch and try to reproduce the bug

working on a new fix,

For some reason, even if I enter a valid URL, it makes me an error. My solution was to download the complete RobotFramework 3.2.1 ZIP

@Daniel-Ruiz-Gtz to create an issue card to track the issue you found in login/home page

@filus-1 working on to identify the code that is generating this error.

@filus-1 try to debug BlueXolo code with support of Adolfo @capikp


[SPARK-17162] Range does not support SQL generation

What changes were proposed in this pull request?
The range operator previously didn't support SQL generation, which made it not possible to use in views.
How was this patch tested?
Unit tests.
cc @hvanhovell

Test build #64110 has started for PR 14724 at commit e0e12e3.

Test build #64110 has finished for PR 14724 at commit e0e12e3.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64110/
Test PASSed.

Merged build finished. Test PASSed.

Can you make the options for logical plan optional?

Test build #64230 has started for PR 14724 at commit c47635a.

Updated, ptal

Test build #64232 has started for PR 14724 at commit 04744fc.

LGTM - pending jenkins.

Test build #64230 has finished for PR 14724 at commit c47635a.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64230/
Test FAILed.

Test build #64232 has finished for PR 14724 at commit 04744fc.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64232/
Test PASSed.

Merging in master/2.0.


[Q] Is it possible to change default index programmatically?

I have a Swiper at my screen that shows product images, user swaps and changes the index of the slider, user is seeing third image now (e.g) now clicks on image and as I'm just sending image array to ImageZoom it shows the first image by default, Am I able to pass the index I want to see the third image at ImageZoom?

@AlirezaAkbarix did you solved it?

I found the way:
<ImageViewer imageUrls={images} index={1}/>
You have to use 'index' prop

Is this more related to the sister repo, https://github.com/ascoders/react-native-image-viewer than this one?

Yes, you need to use react-native-image-viewer for that. Or some other package altogether.
This package isn't really built to work with other swipers out of the box. I mean it can, but you'll have to figure out it for your specific case. 🙁


[RFC][EXPR] Formalize Integer Arithmetic Analysis

The integer analysis (arith namespace) serves as a foundational tool for the low-level code generation. At this point, the analysis code is somewhat scattered in the codebase. This RFC proposes to revamp them.
Here is the list of currently related code:

Symbolic integer simplification

Canonical form based simplification(as in CanonicalSimplify)
Rewrite-rule based simplification(Simplify in HalideIR)

Symbolic interval bound analysis
Modulo analysis(DetectLinearEquation)
Deep equivalence checking

We have also seen issues on this topic.

https://github.com/dmlc/tvm/issues/2455
https://github.com/dmlc/tvm/issues/2418
https://github.com/dmlc/tvm/issues/1711
https://github.com/dmlc/tvm/issues/2173

Most of the current analysis functions can be put into two categories:

Symbolic equivalent analysis: maps a symbolic expression e1 to e2 such that e2 and e1 are equivalent to each other (in the case of simplification)
Relaxed integer set analysis: for e1, provide a set representation S, such that we ensure e1 \subset S.

For example, the result of DetectLinearEquation can be viewed as an integer set {x * factor + base}

Relaxed integer set analysis only requires us to find a superset of the corresponding set.
Here is a list of observations about these analysis functions.

They can use results from each other.

For example, we can use the result of a modulo analysis when simplifying divisions.

They can complement each other.

Constant integer bound and symbolic bound can give us two different perspectives.

They are context dependent

We need the context information about(bound, positiveness and other properties) about variables in an expression to get the best analysis result.

Given these observations, the new API is a super analyzer that carries states about the context information, and bundles sub-analyzers.
Proposed sub-analyzers

CanonicalSimplifier
RewriteSimplifier
Deep equality class(via possibly via union-find)
Symbolic interval finder
Constant integer bound
LinearEquation detector(modulo analysis)
Integer polynomial(optional, its special case of the linear equation should be sufficient)
Make it easy to plug-in a "new-view" when we have a new analysis

Each sub-analyzer will use memoization to cache the intermediate result. Importantly, each sub-analyzer has a handle(weak reference) back to the super analyzer to allow them to call other sub-analyzers. A user needs to create a super analyzer, populates related context states, and run the analysis.
Followup Goals Enabled by This Proposal
There are several things that formalization can enable.

Better context-dependent analysis, we can populate context info(e.g., the shape size is non-negative), and use the information in code generation.
Constant integer bound analysis and automatic integer narrowing.

So far we use int32 for most indices. Ideally, we want to be able to default to int64, and automatically narrows the integers to int32 when we detect all the arithmetic are within the bound.

A centralized arithmetic logic that deals with integer analysis
Improve simplification in general

Proposed Steps

[x] Design discussion and RFC comment(please reply to this thread).
[x] Pattern match utility to better port RewriteSimplification (https://github.com/dmlc/tvm/pull/2589)
[x] Scaffolding of Super Analyzer and sub analyzer structure (https://github.com/dmlc/tvm/pull/2668)
Populating the new infra

[x] constant integer bound
[x] modular set
[x] RewriteSimplifier
[ ] CanonicalSimplifier
[ ] Deep equality

Comments are welcomed.

Concerning using int32/int64 for indices, I think we should create a separate, conceptually unbounded integer type for index arithmetic. Ideally, in compile-time we should use some arbitrary precision integer library for it, but using int64 may do as a starting point. (And of course it should be represented with int32/64 in run-time).

@tqchen I think this is very important direction to improve. Have you thought about using existing libraries like ISL? As far as I know it contains many useful algorithms and, more importantly, well-defined notation for describing formulas and relations of variables.

re conceptual integer index. I think moving toward int64 as default and do optional narrowing is a good starting point as @sgrechanik-h  pointed out.
re ISL. My understanding of isl is that it tries to do exact integer set analysis, and uses a constraint solver based approach(although I am not an expert in isl). As a result, it has some restrictions in terms of operation, as well as speed of solving.
In our case, we aim at providing simple forward solving ways for relaxed integer set analysis. Integer set abstraction and pushing most analysis to integer set primitives are important, and we should learn that perspective from isl.
On the other hand, I think the first pass of scaffolding should aim to build a self-contained analyzer. Then we can see if there is value to bring isl as an optional sub-anlayzer.

Constant bound analyzer https://github.com/dmlc/tvm/issues/2668

Followup discussion with @sgrechanik-h  on memoization.
At the current moment, I have decided instead to avoid memoization as much as possible mainly because memoization can cause problems when we update context information about variable x(and previously computed transformation about x related expression may no longer hold.
One way to get around this problem is renaming (we rename the variable to another one every time its context information changes). This might need some thoughts and change in the IR, but it follows the same spirit as SSA.
Alternatively, the strategy is to actively clean up the cache when there is context information change.
One of the first analyzer memoization analyzer is common sub-expression folding and canonicalization, which maps two instances of x + y into the same address. In this case, because it is not dependent on the context information, we are fine.

In my opinion, analyses should be pure functions, something like (Expr, Context) -> Expr. This makes the problem of memoization much simpler: we just have to use both the arguments as a key.

The main problem of making things pure is the cost of copy when updating the Context(because of the need for context to be immutable) and that may not be best for efficiency.

@tqchen I guess we cannot know for sure: the performance benefits of memoization may outweigh the possible performance losses due to immutability. What is more important is that pure functions often make things more clear to think about.

What I mean is that we can support memoization even if we don’t do the functionally style, as I outlined in the last post

@tqchen One thing I wanted to clarify: why isn't the Analyzer class integrated into the Node hierarchy? Instead some separate closure-based mechanism is used for python integration, which feels strange and seemingly makes it harder to create functions which accept Analyzer objects and work across both languages.

@sgrechanik-h This is a very good point. I have thought about it, but the conclusion then was it may not be as useful. But you are right that we might get to a stage where we need to pass Analyzer objects around and it makes sense to make Analyzer as a Node.

https://github.com/dmlc/tvm/pull/3368 finishes the migration of the analysis stack.


cli: rename repo command group to project

Feeling this is a more natural name for the group of commands that operate on the entire monorepo.
👍  or 👎 ?

This is a tough one. I think even project is a bit subjective in this context as well. In my mind repo is more accurate but also not great imo either. As a 3rd suggestion, could backstage-cli run-all lint or something similar work?

Let's keep searching :grin:
The run-all option fits pretty well, wish it was possible to have in just one word though 😅. Another one I considered was packages, although that felt a bit too close to the existing package group.

Keeping repo for now :>


add requestId

add request id to track every request

Can you add requestId into the unit tests?

sure, here you are


OCI delete image

Related to #158 (Add support for OCI)
Developing a new product build on top of OCI, our team needs to write a test suite of integration/provisioning/e2e tests. I've already started to use Terratest for this epic.
I would like to incrementally add new OCI testing and helper functions, but for now, I just add a simple function for deleting of the custom OCI image which was previously created via packer.BuildArtifact() function.
The very basic test case:
func TestPackerControlPlane(t *testing.T) {
	t.Parallel()

	packerOptions := &packer.Options{
		Template: "../delivery/oci/packer.json",
		Only:     "oracle-oci",
		Vars: map[string]string{
			// Packer variables
		},
	}

	ocid := packer.BuildArtifact(t, packerOptions)

	defer oci.DeleteImage(t, ocid)
}

It produces following output:
TestPackerControlPlane 2018-09-21T13:57:20+02:00 packer.go:33: Running Packer to generate a custom artifact for template ../delivery/oci/packer.json
TestPackerControlPlane 2018-09-21T13:57:20+02:00 command.go:52: Running command packer with args [build -machine-readable -var image_name=BDSQL-CP-terratest -only=oracle-oci ../delivery/oci/packer.json]
TestPackerControlPlane 2018-09-21T13:57:20+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Creating temporary ssh key for instance...
TestPackerControlPlane 2018-09-21T13:57:21+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Creating instance...
TestPackerControlPlane 2018-09-21T13:57:24+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Created instance (ocid1.instance.oc1.phx.abyhqljrc5jqaa3hsz3gofxmfme47xqzzq6jklccp2qpavhddq2pplpaismq).
TestPackerControlPlane 2018-09-21T13:57:24+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Waiting for instance to enter 'RUNNING' state...
TestPackerControlPlane 2018-09-21T13:58:27+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Instance 'RUNNING'.
TestPackerControlPlane 2018-09-21T13:58:28+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Instance has IP: <IP_ADDRESS>.
TestPackerControlPlane 2018-09-21T13:58:28+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Waiting for SSH to become available...
TestPackerControlPlane 2018-09-21T13:59:01+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Connected to SSH!
TestPackerControlPlane 2018-09-21T13:59:01+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Provisioning with shell script: /tmp/packer-shell108054499
.
.
.
TestPackerControlPlane 2018-09-21T14:00:10+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Creating image from instance...
TestPackerControlPlane 2018-09-21T14:01:57+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Image created.
TestPackerControlPlane 2018-09-21T14:01:57+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Terminating instance (ocid1.instance.oc1.phx.abyhqljrc5jqaa3hsz3gofxmfme47xqzzq6jklccp2qpavhddq2pplpaismq)...
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,==> oracle-oci: Terminated instance.
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,Build 'oracle-oci' finished.
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,\n==> Builds finished. The artifacts of successful builds are:
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,oracle-oci,artifact-count,1
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,oracle-oci,artifact,0,builder-id,packer.oracle.oci
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,oracle-oci,artifact,0,id,ocid1.image.oc1.phx.aaaaaaaaf3t66udxprdsczj5fv2havhrv5jmoj5e7h6tyvao4og2dqf2d2uq
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,oracle-oci,artifact,0,string,An image was created: 'BDSQL-CP-terratest' (OCID: ocid1.image.oc1.phx.aaaaaaaaf3t66udxprdsczj5fv2havhrv5jmoj5e7h6tyvao4og2dqf2d2uq) in region 'us-phoenix-1'
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,oracle-oci,artifact,0,files-count,0
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,oracle-oci,artifact,0,end
TestPackerControlPlane 2018-09-21T14:03:12+02:00 command.go:96:<PHONE_NUMBER>,,ui,say,--> oracle-oci: An image was created: 'BDSQL-CP-terratest' (OCID: ocid1.image.oc1.phx.aaaaaaaaf3t66udxprdsczj5fv2havhrv5jmoj5e7h6tyvao4og2dqf2d2uq) in region 'us-phoenix-1'
TestPackerControlPlane 2018-09-21T14:03:13+02:00 compute.go:21: Deleting image with OCID ocid1.image.oc1.phx.aaaaaaaaf3t66udxprdsczj5fv2havhrv5jmoj5e7h6tyvao4og2dqf2d2uq
PASS
ok  	orahub.oraclecorp.com/cloud-bigdata-dev/bdsql-control-plane/tests/terratest	353.750s

@brikis98

I've extended  examples/packer-basic-example/build.json, so it now contains an oracle-oci builder.
I've add a new test  test/packer_oci_example_test.go which follows the similar tests for AWS and GCP.
Moreover, I've added a new function oci.BaseImageOcid which search for the most recent image (in similar manner as aws module already has) which is used in before mentioned test as well.

I'm not sure if I should document this in examples/packer-basic-example/README.md, because it covers AWS only, excluding GCP.

@brikis98 I've added/changed following:

Packer example README.md update for OCI
Packer example README.md update for GCP
Replacement of account specific variables with randomly chosen resources (i.e. availability domain and subnet)
Replacement of account specific variables with TF_VAR_* environment variables (i.e. compartment ID and pass phrase)

I believe that now anyone - following the README - should be able to run the test.

Thx @sw-samuraj. I'm a bit buried today, so I'll take a look at this tomorrow!

@brikis98 I've added two changes reflecting my today's comments. I see your points to have generic and simple test, but I'm afraid it won't be possible to simplify it further. Nevertheless, any suggestion is welcome and I can try to investigate it.


Crashes if project root node renamed.

Will be fixed later.

Closes because I completely re-wrote whole code, and this issue is not relevant anymore.


Home Page

Not to show Logout with Login
Rename 'Submit" to 'Login'
UI Enhancement

Updated the Navbar (Logout Issue)
Fixed access issue without Login


Update free-programming-books.md

Updated the link for:
Free eBook - Hands-On Natural Language Processing with Python

Thanks, and welcome to free-programming-books!


[BUG] Dropdown Text invisible

Describe the bug
The Dropdown Menu on select Elements has invisible Text.
To Reproduce
Go to Settings and click on any Dropdown
Screenshots

Desktop (please complete the following information):
Windows 10 Build 19043
Logs

I'm sorry but I can't reproduce it


i18n(pt-BR): Translate tutorial 5-astro-api first half

What kind of changes does this PR include?

Translated content

Description
PT-BR translation for unit 5-astro-api first half.

Thanks @lumamontes, I appreciate the review! 💜


Check compiler plugins for version conflicts and cleanup

Supersedes #925
The only unresolved thing I see for now is that pluginsDir is by default set to -Xpluginsdir = misc/scala-devel/plugins. I don't know if this directory exists at all, but if not it is filtered out in method validateCompilerPlugins().

Not sure what's going on... I'll have to check it tomorrow

retest this please

retest this please

retest this please

retest this please

Except for the null check, this looks good. I'd like to see a test, though.

retest this please

Sorry for these Jenkins blunders. The "build stuck" plugin has decided the build has frozen and aborting all builds after 3 minutes (it's set to be elastic, and since the last 3 builds finished very fast it thought that's how it should be). I set the timeout to 90 min now

Working on a test now

It's probably better to merge and add the test later than to miss the 4.1 release :)

I opened a ticket for the tests: https://github.com/scala-ide/scala-ide/pull/935


Would you like Fabric as crash-report?

Fabric , former name "Crashlytics" .
You can checkout how many people online using your app as well .

thanks ,i'll try

thanks ,i'll try

thanks ,i'll try