Start instances with ineo on reboot

I'm pulling my hair out.  I've spent hours trying to figure out how to start instances via ineo on reboot.  BTW, ineo is exactly what I was looking for to manage multiple instances on a single machine. Sweet!  Thanks!!!
Anyway, I'm on a very basic new Debian 9 install.
crontab @reboot doesn't appear to work.  I read others have issues with reboot in cron for a user (vs. root).
I resorted to creating rc.local service like here. https://www.itechlounge.net/2017/10/linux-how-to-add-rc-local-in-debian-9/  It works, but I don't appear to be able to get the environment set correctly to get it to recognize my databases.
The seemingly simple things can be sooo time consuming.  Hoping you might have a quick suggested approach that you've worked with.  It's not an ineo "issue" but hoping you can help.
Thanks again.

@hodgigre - Did you ever get this ironed out? I'm looking at using ineo, but need instances to start at boot as well so they act as if they are services.

Have you tried to use ineo's feature to implement a service as well?
When you enter ./ineo help install, it will show you:
$ ./ineo help install

  USAGE:
    install [options]

  DESCRIPTION:
    Install ineo

    Don't use this command if you already have ineo installed and working
    correctly. If root user installs ineo on a systemd OS, a systemd
    service will also be install to support autostart on instances.

  OPTIONS:
    -d <directory_name>  Directory name (absolute path) where ineo will be
                         installed

                         Default: ~/.ineo or /var/lib/ineo if using -S

    -S                   Install ineo as a service (only on systemd OSes)

Using the -S parameter will install a service to systemd, if supported by OS.


31 frontend profile page allow users to upload their photos

Added 2 user states for adding and previewing files added to edituser profile

Looks good to me!


⚠ GitLab Server has degraded performance

In d65b12d, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11552 ms

Resolved: GitLab Server performance has improved in f7f59a1.


Whilst trying to build slic3r under stretch I hit a problem re libmali-rk-utgard-2th-r7p0_1.5ayufan12_arm64.deb

Can you advise me how to recover?
pdh@rock64:~/installs/Slic3r$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libmali-rk-utgard-2th-r7p0
The following NEW packages will be installed:
libmali-rk-utgard-2th-r7p0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
51 not fully installed or removed.
Need to get 0 B/536 kB of archives.
After this operation, 1608 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 248147 files and directories currently installed.)
Preparing to unpack .../libmali-rk-utgard-2th-r7p0_1.5-4ayufan12_arm64.deb ...
Unpacking libmali-rk-utgard-2th-r7p0:arm64 (1.5-4ayufan12) ...
Replacing files in old package libgbm1:arm64 (13.0.6-1+b2) ...
Replacing files in old package libgles2-mesa:arm64 (13.0.6-1+b2) ...
Replacing files in old package libegl1-mesa:arm64 (13.0.6-1+b2) ...
dpkg: error processing archive /var/cache/apt/archives/libmali-rk-utgard-2th-r7p0_1.5-4ayufan12_arm64.deb (--unpack):
trying to overwrite '/usr/lib/aarch64-linux-gnu/libGLESv1_CM.so.1', which is also in package libgles1-mesa:arm64 13.0.6-1+b2
Errors were encountered while processing:
/var/cache/apt/archives/libmali-rk-utgard-2th-r7p0_1.5-4ayufan12_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

http://opensource.rock-chips.com/wiki_Graphics
I have just been trying to get X11 to run with openGL ES 2.0 and glamor and installing libmali causes seg faults.
Rockchip have a custom xserver implementation but if you do an apt-cache showpkg [pkg] we are pulling xserver from the main debian distro's.
Maybe because it doesn't work :) I dunno but which version of stretch is that?
I am sort of confused as Rockchip seems to be concentrating on stretch whilst the supposed focus with the community builds is xenial.
http://opensource.rock-chips.com/wiki_Xserver
Branch rockchip-1.8
This branch is used for Rockchip Debian SDK, you could easily use it in your Debian. The current xserver version match the one in Debian stretch. But it would work fine with Debian Jessie if you enabled the Debian stretch repository and using x driver(likes fbdev) from it.
To say I am fair confused on what the xorg.conf should be and which modesettings we should have is an understatement.


Added a BIO chunk extractor for Senna chunk tagger

Added a chunk extractor to extract specific chunk.

Thanks @alvations

Fixed minor typo: https://github.com/nltk/nltk/commit/f7dd6e44b00fe257ba7ca53202651adb7425ee32

Thanks @alvations


Roll engine af42b6dc95bd..8694036a6454 (1 commits)

https://github.com/flutter/engine/compare/af42b6dc95bd...8694036a6454
git log af42b6dc95bd..8694036a6454 --no-merges --oneline
8694036a6 Roll src/third_party/skia 420696961c8c..e00fe30b8fe7 (1 commits) (flutter/engine#6094)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.

@rmistry @liyuqian : New roll has been created by https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Trybots failed. These were the failed builds: https://flutter-dashboard.appspot.com/build.html

Commit queue failed; closing this roll.


FileNotFoundError time_window_corrected.csv running basic example

Describe the bug
I'm sure there's something I'm missing, but the program raises the following exception when I try to run the basic example bundled in the repository:
$ python -m src.cmp.main src/cmp/data/data.csv Total_Power src/cmp/results/reports/report.html
2024-09-04 19:40:34,391 [INFO](__main__) Arguments: Namespace(input_file='src/cmp/data/data.csv', variable_name='Total_Power', output_file='src/cmp/results/reports/report.html')
2024-09-04 19:40:34,391 [INFO](src.cmp.utils) ⬇ Downloading file from <src/cmp/data/data.csv>
2024-09-04 19:40:34,410 [INFO](src.cmp.utils) 📊 Data processed successfully
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/agmangas/Documents/Projects/matrix-profile/src/cmp/main.py", line 91, in <module>
    df_time_window = pd.read_csv(os.path.join(path_to_data, "time_window_corrected.csv"))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/agmangas/Documents/Projects/matrix-profile/.venv/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 1026, in read_csv
    return _read(filepath_or_buffer, kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/agmangas/Documents/Projects/matrix-profile/.venv/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 620, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/agmangas/Documents/Projects/matrix-profile/.venv/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 1620, in __init__
    self._engine = self._make_engine(f, self.engine)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/agmangas/Documents/Projects/matrix-profile/.venv/lib/python3.11/site-packages/pandas/io/parsers/readers.py", line 1880, in _make_engine
    self.handles = get_handle(
                   ^^^^^^^^^^^
  File "/Users/agmangas/Documents/Projects/matrix-profile/.venv/lib/python3.11/site-packages/pandas/io/common.py", line 873, in get_handle
    handle = open(
             ^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/agmangas/Documents/Projects/matrix-profile/src/cmp/data/time_window_corrected.csv'

To Reproduce

Clone the repository:

git clone git@github.com:baeda-polito/matrix-profile.git

Install the dependencies:

python3 -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install

Run the tool passing the example dataset as input:

python -m src.cmp.main src/cmp/data/data.csv Total_Power src/cmp/results/reports/report.html

Expected behaviour
The tool should run as explained in the README.

Hi! Just a friendly reminder 😄 Have you had a chance to replicate this issue on your side?

Hi there!
The file was included in the gitignore so you couldn't find it at runtime. Now I committed it in the repository on the dev branch, it will be available on the main branch on the next patch release
PS. By now the file is static but as an improvement it will be generated from the timeseries data uploaded by the user

Oh, thank you for looking into it. Looking forward to next release 😄

New release out, could you try to run it and see if it works? Thanks a lot!


Add workflow run to check code formatting

Description

Add worflow run to check code formatting.
Also added the dependencies to format the code (black formatter).
Updated the documentation.

Resolves: [#787]
Checklist

Before submitting this pull request, kindly verify that the ensuing checkpoints have been reached.

[x] Have you adhered to the repository's defined coding convention rules?
[ ] Have you updated the 'documentation.md' file with the method/function documentation?
[x] Have you sent a message along with the result or response?
[ ] Have you used the try-catch technique?
[x] Has the method/class been added to the documentation (md file)?

Screenshots

Additional Notes/Comments

Formatting make it easy for contributors to explore code

I certify that I have carried out the relevant checks and provided the requisite screenshot for validation by submitting this pull request.
I appreciate your contribution.

the failing is due to the formatting

It should pass the checks now

Again all the extra files are added @MannuVilasara, remove it.

It will fail the checks if I remove that commit. Actually there is no change in the code its just formatted code.

removed the last commit but job will fail again

@nikhil25803 Should I format the code as mentioned in the job


There is persistence?

PS: Hi! Keep up with the good work.

Hi @kuroisuna
I haven't built in any type of persistence as I wanted to keep it lightweight. I acknowledge here is likely a high need for this capability but I do not want to tie it down to just Eloquent. I'm still actively working on this project.
Thanks for the kind words!

Awesome, thanks for answering, I'll be watching this project


missing dependencies in Rider

When I open the project in Rider I get a whole lot of compile issues, and missing dependencies in ClientApp and HybridApp as well as a few other errors and I'm not sure how to resolve. For example the ContentProperty attribute cannot be resolved, the context actions says to install package Microsoft.Maui.Controls.Core but this doesn't work either, just says "Sequence contains more than one matching element"
I'm on Rider 2024.1 and I have the latest .NET 8 sdk installed:
C:\Users\Arvin>dotnet --list-sdks
3.1.426 [C:\Program Files\dotnet\sdk]
5.0.415 [C:\Program Files\dotnet\sdk]
6.0.300 [C:\Program Files\dotnet\sdk]
8.0.303 [C:\Program Files\dotnet\sdk]

If I open in VS2022 it seems to work fine though

Do you have the .NET MAUI workloads installed?
Also see; https://www.jetbrains.com/help/rider/MAUI.html


MessagePack-CSharp returns

#1690

Did we do all the things to universe for this package already?

Changed some of the datetime behavior, didn't change a lot of the tests cause it's tedious, and we haven't 100% decided what we want to do

before
             Method |          Input | HubProtocol |        Mean |     Error |      StdDev |        Op/s |  Gen 0 | Allocated |
------------------- |--------------- |------------ |------------:|----------:|------------:|------------:|-------:|----------:|
  ReadSingleMessage |   FewArguments |     MsgPack |  1,635.8 ns |  32.37 ns |    42.09 ns |   611,325.7 | 0.0057 |     696 B |
 WriteSingleMessage |   FewArguments |     MsgPack |  1,301.6 ns |  26.32 ns |    51.33 ns |   768,305.2 | 0.0038 |     472 B |
  ReadSingleMessage | LargeArguments |     MsgPack | 14,914.1 ns | 296.18 ns |   815.77 ns |    67,050.5 | 0.4578 |   41552 B |
 WriteSingleMessage | LargeArguments |     MsgPack | 25,052.0 ns | 500.19 ns | 1,217.54 ns |    39,916.9 | 0.5798 |   61848 B |
  ReadSingleMessage |  ManyArguments |     MsgPack |  3,192.3 ns |  61.46 ns |    68.31 ns |   313,251.5 | 0.0076 |    1160 B |
 WriteSingleMessage |  ManyArguments |     MsgPack |  2,489.9 ns |  49.07 ns |    70.37 ns |   401,628.6 | 0.0038 |     744 B |
  ReadSingleMessage |    NoArguments |     MsgPack |    618.8 ns |  12.32 ns |    23.43 ns | 1,616,124.4 | 0.0029 |     304 B |
 WriteSingleMessage |    NoArguments |     MsgPack |    508.2 ns |  10.80 ns |    19.48 ns | 1,967,558.0 | 0.0019 |     224 B |

after
             Method |          Input | HubProtocol |        Mean |      Error |     StdDev |        Op/s |  Gen 0 | Allocated |
------------------- |--------------- |------------ |------------:|-----------:|-----------:|------------:|-------:|----------:|
  ReadSingleMessage |   FewArguments |     MsgPack |    700.2 ns |  14.137 ns |  27.904 ns | 1,428,147.7 | 0.0019 |     224 B |
 WriteSingleMessage |   FewArguments |     MsgPack |    827.1 ns |  13.593 ns |  12.050 ns | 1,209,106.2 |      - |      48 B |
  ReadSingleMessage | LargeArguments |     MsgPack | 14,247.5 ns | 283.278 ns | 552.511 ns |    70,187.5 | 0.2441 |   30912 B |
 WriteSingleMessage | LargeArguments |     MsgPack | 14,890.8 ns | 293.065 ns | 337.495 ns |    67,155.7 | 0.1678 |   20528 B |
  ReadSingleMessage |  ManyArguments |     MsgPack |  1,294.3 ns |  25.044 ns |  24.597 ns |   772,628.6 | 0.0038 |     400 B |
 WriteSingleMessage |  ManyArguments |     MsgPack |  1,615.4 ns |  38.943 ns |  43.285 ns |   619,041.2 |      - |      72 B |
  ReadSingleMessage |    NoArguments |     MsgPack |    360.6 ns |   7.037 ns |   8.643 ns | 2,773,000.1 | 0.0010 |     120 B |
 WriteSingleMessage |    NoArguments |     MsgPack |    538.5 ns |  10.987 ns |  20.904 ns | 1,856,853.8 |      - |      40 B |

Small Op/s regression for the NoArgs Write, but that's something we can look into later

Thank you for merged!

Small Op/s regression for the NoArgs Write, but that's something we can look into later

I think this is caused by MemoryBufferWriter : Stream and private void WriteMessageCore(HubMessage message, Stream packer) is not good choice.
MessagePackBinary.WriteXxx(Stream) write to internal memory pool and copy to stream.
core api can change to
public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
{
    // concept...
    var writerOriginal = ArrayPool<byte>.Shared.Rent(4096);
    var writer = writerOriginal;
    try
    {
        var len = WriteMessageCore(message, ref writer);

        BinaryMessageFormatter.WriteLengthPrefix(writer.Length, output);
        output.Write(new ReadOnlySpan<byte>(writer, 0, len));
    }
    finally
    {
        ArrayPool<byte>.Shared.Return(writerOriginal);
    }
}

Small Op/s regression for the NoArgs Write, but that's something we can look into later

Regained by https://github.com/aspnet/SignalR/pull/1915

@neuecc we'd have to handle growing the buffer as well.


SSL problems on python:3.11.8-bookworm image?

I decided to upgrade an image of mine to Python 3.11, and I thought to use the bookworm version (I've used bullseye so far).
This is the image I try: https://hub.docker.com/layers/library/python/3.11.8-bookworm/images/sha256-72afb375030b13c8c9cb72ba1d8c410f25307c2dbbd7d59f9c6ccea5cb152ff9?context=explore
I can build the image for amd64 architecture (no errors), but on arm64 I get SSL errors for bookworm, like (truncated snippet):
#18 [linux/arm64 4/9] RUN . /usr/src/app/.virtualenvs/webEnv311/bin/activate     && pip3 install --no-cache-dir -r /tmp/requirements.txt --trusted-host https://my-pypi.domain.io     && rm -f /tmp/requirements.txt

#18 [linux/arm64 4/9] RUN <log removed I just install requiremements>

#18 16.08 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
#18 16.91 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /packages/
#18 17.42 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /packages/
#18 18.42 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /packages/
#18 20.43 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /packages/
#18 24.44 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /packages/
...
#18 32.01 Could not fetch URL https://pypi.org/simple/arrow/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/arrow/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
#18 32.09 ERROR: Could not find a version that satisfies the requirement arrow<2.0.0,>=1.3.0 (from versions: none)
#18 32.10 ERROR: No matching distribution found for arrow<2.0.0,>=1.3.0
#18 32.17 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

I was able to reproduce this locally. And I can confirm that when building 3.11.8-bullseye, everything works fine on both amd64 and arm64 architectures (builds succeed without those errors).
Is there some problem with the Python 3.11.8 on the bookworm image when building for arm64 (did not check other versions apart from amd64 which works).

A couple of ideas -- it looks like you're connecting to a custom python modules server, and I think bookworm might've updated some of the configuration to block older TLS versions?  Is it possible your server doesn't support some of the newer TLS standards?
It could also be something like the libseccomp2 issues we've seen that crop up in weird looking ways (and could show up like what you're seeing) -- the easiest/quickest way to try is --security-opt seccomp=unconfined on a docker run test (but with the understanding that doing so is insecure).  If that works / the correct solution there is to make sure your Docker, runc, and most importantly libseccomp2 on the host are up-to-date (possibly even more up-to-date than your distro has available :see_no_evil:).
 It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@333fb6b04f60:/# python3
Python 3.11.8 (main, Feb 13 2024, 09:03:56) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> r = requests.get('https://google.com')
>>> r.status_code
200

Thanks for replying @tianon !
I am using docker buildx build and --security-opt seccomp=unconfined setting is not available to it.

Keep looking at it. This one seems relevant? https://github.com/actions/setup-python/issues/721

After more digging, I see that the error appears when I try to install ANY python package in a virtual environment (using pip install virtualenv) inside the container, when I try to build with docker buildx. For example, this fails:
RUN . ${VENV_HOME}/${VENV_NAME}/bin/activate \
    && pip3 install --no-cache-dir -r requirements.txt

but this works:
# No virtual environment
RUN pip3 install --no-cache-dir -r requirements.txt

It's very hard to reproduce and debug, because it seems to appear only when I try to build a multi arch image with docker buildx; when I run my container (3.11.8-bookworm) and run all steps manually, I can install things via pip in the virtual environment.

Yeah, what you wrote makes sense.
I think we had this install since an old installation of the app, in older images where we needed some stuff for other packages, safely for us to remove.
Not sure what could be done if someone needs to install those extra python headers, if they are not included in the distributed image, but I guess it's another topic.
Closing.


Filter configured under default-filter vs GlobalFilter

Based on the my analysis the default filter configured in application.yaml and a class implemented with GlobalFilter are doing the same job? Are there any specific usecases when to use one versus the other?

I think the main difference is that GlobalFilter cannot be disabled via configuration. If you want your users to be able to add/remove the filter in configuration then a GlobalFIlter is not a good fit.

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.


fix: add orientation lock in permission gate

Closes #1205

@israr002 are you still working on this? If not I'll close.

@kueda  I haven't been able to get the root cause yet, but I'll continue working on it and aim to have it resolved by tomorrow. I'll keep you updated on the progress.

@kueda The issue was caused by the orientation: "all" parameter in CAMERA_SCREEN_OPTIONS, which was added to allow the camera screen to rotate. However, it unintentionally removed the portrait lock.
this parameter is unnecessary because the camera library automatically handles screen orientation without affecting the portrait lock. Therefore, I've removed the orientation setting to restore the intended behavior.

Thanks again, @israr002. That's a much simpler fix.


Not persisting.  Store is reset every time extension icon is clicked

Project is at https://github.com/IPFC/ipfc-extension

// store.js
import Vue from 'vue';
import Vuex from 'vuex';
import VuexWebExtensions from 'vuex-webextensions';
import * as getters from './getters';
import mutations from './mutations';
import * as actions from './actions';

Vue.use(Vuex);

export default new Vuex.Store({
  plugins: [
    VuexWebExtensions({
      persistentStates: ['jwt', 'pinataKeys'],
      loggerLevel: 'verbose',
    }),
  ],
  state: {
    jwt: 'initial',
    jwtValid: false,
    pinataKeys: null,
  },
  getters,
  mutations,
  actions,
});
```as you can see in the screenshot from the console.logs, the mutation ('setJwt') is successful, but as soon as i click elsewhere and reclick the extension icon, it gets reset and goes back to the store staring value.

Is this still an open issue? Have you found a workaround @Jewcub?
I'm facing the same problem unfortunately and any nudge in the right direction would be appreciated!

This project is abandoned.


iOS 13.5 Support

Is the iPhone X 13.5 supported?  The description only says 13.3 (?) so I wasn’t sure.  I’ll be testing AirPod Pro 2’s.
If not, would providing the bluetoothd file help?

It's not supported, but yes providing the bluetoothd binary would help.


Erratum linear_algebra.ipynb Line 117

Citing matrix/vector closure of addition and multiplication. Original proof by Sir Arthur Cayley in his dissertation on Cayley Tables, Sir Arthur Cayley's dissertation is supported by Hermann Grassman's work in his proof of non-commutative vector products.

Cayley, Arthur. “A Memoir on the Theory of Matrices.” Philosophical Transactions of the Royal Society of London, vol. 148, 1858, pp. 17–37. JSTOR.
A New Branch of Mathematics: The Ausdehnungslehre of 1844 and Other Works: Hermann Grassmann, Lloyd C. Kannenberg:<PHONE_NUMBER>761: Amazon.Com: Books. https://www.amazon.com/New-Branch-Mathematics-Ausdehnungslehre-Other/dp/0812692764. Accessed 14 Nov. 2019.

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


Errors when running the  ' brownie bake nft-mix '  command

I'm coming into the following error when attempting the brownie bake nft-mix command, any ideas why?
I'm running Ubuntu on WSL.
wardu@win:~$ brownie bake nft-mix
Brownie v1.16.4 - Python development framework for Ethereum

Downloading from https://github.com/brownie-mix/nft-mix/archive/main.zip...
46.8kiB [00:00, 812kiB/s]
  File "brownie/_cli/__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File "brownie/_cli/bake.py", line 26, in main
    path = project.from_brownie_mix(args["<mix>"], args["<path>"], args["--force"])
  File "brownie/project/main.py", line 617, in from_brownie_mix
    project_path.parent.joinpath(f"{project_name}-mix-{default_branch}").rename(project_path)
  File "/usr/lib/python3.8/pathlib.py", line 1359, in rename
    self._accessor.rename(self, target)
PermissionError: [Errno 13] Permission denied: '/home/wardu/nft-mix-main' -> '/home/wardu/nft'

Try adding sudo to the start, or something.
Let's continue this here: https://stackoverflow.com/questions/69505029/permissionerror-errno-13-im-running-into-this-error-on-my-ubuntu-wsl-set
Closing for now.


Exporting Array of JSON objects fails

Hello,
First of all - super awesome plugin, paired with Playfab it's an absolute blessing when it comes to live game balancing!
Unfortunately, I hit an issue that I can't solve and it looks like a simple but painful bug. Namely Arrays don't work with JSON objects. Super simple repo:
JA_test
{"Price":5}
{"Price":5},{"Price":5}

And this will export:
{
  "Balancing": [
    {
      "test": [
        {
          "Price": 5
        }
      ]
    },
    {
      "test": [
        {}
      ]
    }
  ]
}

As you can see, the same JSON object will export properly if there's just one element in array, but multiple will simply not work
I have tried all possible export settings, messed with array separator characters, putting the array in brackets and removing JA_ prefix (which produces an ugly result: "test": "[{"Price":5},{"Price":5}]")  etc. Nothing will work
Please help, you're our only hope ;)

What settings are you using? Can you link to a repro sheet please? It sounds like you want to export a sheet as an array of JSON objects which should be doable, but I'd like to see how you're formatting your data as that can sometimes throw a wrench in things.

I don't think there's really any need for repro sheet, just open any sheet and paste this in A1, this is full repro and nothing else is needed:
JA_test {"Price":5} {"Price":5},{"Price":5}
And yes - that's exactly what I want to do. Settings
https://gyazo.com/dee8cefbb38437e35be57a11c712481c
https://gyazo.com/19247c3f47ac11298789b66d6ae87078
Thanks for being so quick!

Ah, I see what's going on. The Export cell objects option is largely supposed to be used for entering whole JSON objects in a single cell. If you want to export an array of JSON objects, you should format your sheet like so (extra fields added for GitHub formatting purposes):

Price
Available

5
false

6
true

Then you should just need to enable Export sheet arrays and get your expected result:
{
  "Test": [
    {
      "Price": 5,
      "Available": false
    },
    {
      "Price": 6,
      "Available": true
    }
  ]
}

Well, but what you pasted is just the default exporting option, isn't it? We use it extensively as it is, but we need to go beyond that
The whole object structure is a lot more complicated, but basically it's an item that can be upgraded. So there's a lot of stuff that can be formatted the "normal" way, but we also need to export an array/list of prices required for upgrading the item. I updated the example to make it more obvious:
https://docs.google.com/spreadsheets/d/1wiQiTjPMCM5rDCRGoLUvnFrKmVAE63-_g1XqJtoUyxQ/edit#gid=0
I know that you're using Unity, so basically we need to deserialize the JSON into something similar to this:
https://gyazo.com/772576899a69b54202e4d014fd780737
So... Array of objects (price) within the object (item)

I also tried to do it by avoiding the Array Prefix and putting the formatted JSON array directly, but this didn't work either:
This: [{"Price":5},{"Price":5}]
Gets auto converted to this:
"[{"Price":5},{"Price":5}]"

Hmm. It sounds like you are going to need Nested Elements. Do you have an example of what JSON you are expecting? From your screenshot I would guess something like:
{
  "F" : 1,
  "I" : 0,
  "S" : "",
  "List" : []
}

This example was just something found on Google, can't share the actual data here as it's deep in NDA territory...
But yes - that's pretty much what we need. An array of Objects within the object. But definitely more than a regular array of ints or strings (which work without issues)
Here's an example of what we need to fill in-game:
Currency/Price class (need to be have both type and amount as we have multiple currencies)

    public class CurrencyData
    {
        [SerializeField] private int m_type;
        [SerializeField] private int m_amount;
    }

And Item class with array/list of prices and upgrades, which both need to be populated with array of JSON objects:

    public class Item
    {
        string m_itemName;
        CurrencyData[] m_upgradePrices;
        UpgradeData[] m_upgrades;
    }

Hey, apologies for bugging you about it, but it's somewhat critical for us and is blocking moving vast parts of game data for online balancing / LiveOps
Do you think this can be fixed somewhat soon? I truly believe that this is a bug, as exporting object lists should "just work"
Thanks

Sorry for the delayed response! It's been a hectic worklife for me this past week. Did you have a chance to look at the Nested Elements link I posted above? Unfortunately, exporting object lists by directly writing multiple objects into a cell does not work but I can see that being useful so I may try allowing that. This would probably require some special formatting, specifically wrapping square brackets like this:
[ {"field01":1}, {"field01":2} ].
I'll take a look to see if I can get something usable based on your structure comments. If you can post an example of what exactly you expect the JSON to look like that will be immensely helpful. You don't need to post identifying info, just the structure you are expecting with some dummy content. This is mostly so I don't misunderstand what you are expecting, but I think I can get something usable based on your requests.

Hey, thanks for the answer!
Yes, I did look at the Nested Elements but I don't think they can be used conveniently when requiring a list of objects multiple items long...
Yes, the example you posted with brackets is exactly what we would like to have in the cell itself. This is from the example sheet I'm using:
https://gyazo.com/e43373fb5703ab65b0a601766cce3d25
And the results as it is today:
https://gyazo.com/3ac567a8ced33636ec5574482cf9acb3
As you can see currently test1 and test3 fail on formatting (they add extra characters) and test2 "just" fails and doesn't serialize anything
Here's the test scenario copied to the new sheet + expected output. This is with the exports settings as in my previous post, basically this:
https://gyazo.com/e2a1995f6c1fc0151014df1f0b75b670
https://docs.google.com/spreadsheets/d/13EOItmPrBMxM4FXeacLvXIsWqoDUZpFracM6r_Ey6y8/edit#gid=0

Before I make an estimate, does this JSON work for what you are wanting?
{
  "Items": [
    {
      "id": "Sword",
      "upgradePrices": [
        {
          "Price": 5
        },
        {
          "Price": 10
        }
      ]
    },
    {
      "id": "Spear",
      "upgradePrices": [
        {
          "Price": 10
        }
      ]
    }
  ]
}

YES!
The actual object can be much larger than price, but this is exactly what I asked about :) list of JSON objects within a JSON object

Oj, just noticed that there was some update to the source and quickly tested:
https://gyazo.com/6fc23138dce1b0d4fc2f05d6af99b240
List of objects (JA_test2) does not work and is empty, but placing a complete JSON object like in test3 works. While test2 option would be the "cleaner" one, the test3 option is definitely workable for what we need :)
Thank you!

Happy to help! If you don't mind, would you be able to post a link to the game you are working on? (if not now for NDA reasons, after release if fine) As a game developer myself, I always take an interest in other developers using ESD and like to see games that use it!
As for the formatting, the square brackets were the easiest way to handle exporting arrays without me having to write my own JSON parser (which I started to do before thinking of a faster, more universal solution). I do still recommend using Nested Elements instead of manually writing JSON in cells, but this should allow developers a little extra control over their data without being as complicated as Nested Elements.
In any case, I hope you are able to move forward without ESD blocking you now. Good luck on the game!

Damn, it was working ~14 hours ago and now it's not working again. Using same PC, same browser, same sheet, same export settings and suddenly get such output again...
https://gyazo.com/051873bcf5b808777c476d32b249e943
Any idea what might have happened? Here are the objects that I'm trying to export, they are proper valid JSONs....
https://gyazo.com/1ac9eed9ad9aa2d8c1ecacfccfa6f523

It looks like the published version got into a weird state were it should be v57 but is instead using code from v56 for some reason? I'll try re-publishing it to see if that fixes the issue.

New version should be pushed again. Not sure what happened there, but it seems like Google automatically rolled the code back to v56 but still listed the version as being 57.


Use same type for measurement results everywhere

Fixes #1052
I thought it was confusing that the same concept is being represented in different places as Dict[str, np.ndarray], Dict[str, List[np.ndarray]], and Dict[str, List[List[bool]]]. Is there a reason for this?

Why won't CirqBot automerge for me?


Release 114.0

I am assuming that the RAML contained in 114.0 is complete and accurate with respect to API released as 114.0.  Is this correct?
Is 114.0 available in all environments?

0.114.0 is a Pre-Release. It is not available is any of the public facing environments.
Versions in Sandbox and Production.
Sandbox - 0.112.0
Production - 0.100.1

@rakeshavasarala
Ok.  I note the label has been changed from Release to Pre-Release
Thank you for listing the versions in the other environments.  I was surprised to see 112 is in the sandbox.  How would I have found out this fact?

I changed 0.114.0 to Pre-Release within 2 minutes of it being visible of UI. You were quicker.
In the latest release to Sandbox i.e version 0.112.0, we have added a section Changelog (SDST sent comms to all Developers using Sandbox) which points to the CHANGELOG.md file, but this is for production. There is a link to CHANGELOG-ET.md file which is for Sandbox.
We understand that this is not ideal and you would prefer to see the release version/changelog in the documentation.


/tmp directory is being deleted

Hello,
The BootStack team recently ran into an issue with juju-backup-all on some of our clouds. In some instances, the entire /tmp directory is removed.
This may be due to cases where the action_output results are an empty string  which would result in the deletion of the entire /tmp directory:
https://git.launchpad.net/juju-backup-all/tree/jujubackupall/backup.py#n84
https://git.launchpad.net/juju-backup-all/tree/jujubackupall/backup.py#n87
https://git.launchpad.net/juju-backup-all/tree/jujubackupall/backup.py#n74
Thanks.

Imported from Launchpad using lp2gh.

date created: 2022-05-19T17:07:27Z

owner: nicholas-malacarne

assignee: thogarre

the launchpad url

(by thogarre)
It looks like an old version of the snap is running where this is happening. This line looks to be the culprit line (note that it’s the parent, not the path to the file):
rm_command = "sudo rm -r {}".format(filepath.parent)

This line has since been removed [0], but a new version the snap has not yet been built, so it hasn't been tested/rolled out anywhere yet.
In the current version of the file, the -r flag is still being provided, despite all the backups being individual gzip files. I've submitted MR 424592 [1] to address this.
Note that I've also updated the ownership of the snap, and created a snap recipe [2] so that new snaps will automatically be built and published to the latest/edge edge when the master branch of this repo is updated.
I'll mark this as pending review to reflect the current status.
[0] https://git.launchpad.net/juju-backup-all/commit/?id=16c68c9cfe7ce5f48313c79e4e5a90a982ab2383
[1] https://code.launchpad.net/~thogarre/juju-backup-all/+git/juju-backup-all/+merge/424592
[2] https://launchpad.net/juju-backup-all/+snaps


enable searching by multiple address roles

At it is, I cannot construct a query that that mentions two different addresses for different purposes.

@jeapostrophe it's going to be easier to prioritize these if you describe the use case that you're having trouble with. Could you describe what you're trying to do so that I can better understand this request?
Maybe you're trying to search for transactions between two particular accounts? For example all transactions from account A to account B? There currently isn't a good way to do that.
Also, the sender and receiver roles are abstractions. For example "receiver" means the address matches payment receiver, asset receiver, payment close-to or asset close-to. How would you expect the proposed fields to act in these cases?

This abstraction of "sender" and "receiver" is not useful to me. I want to query the actual transaction parameters, as documented here --- https://developer.algorand.org/docs/reference/transactions/#common-fields-header-and-type
So when I say "sender", I mean the "snd" parameter in the codec. I don't mean the "asset sender", or the "asnd" parameter.

You can search for the "snd" parameter by using the "sender" address-role and setting the transaction type to "pay".

Yes, thanks @winder. The problem is that I need to check the sender AND the receiver, but as I understand it, the way that the indexer works right now you can only use one address in one way. My request in this issue is to just expose all of the fields directly in the query API so I can craft my only query for whichever parameters of transactions I care about.

I would like the ability to specify two addresses as well, for the sender and receiver

Any updates on this?

Having the possibility to specify two addresses (sender & receiver) would indeed be helpful!


Support for ip as-path access-list

Issue Type

[X] New Feature

Summary
In eos_cli_config_gen we have support for both extended and standard access-lists.  We however are requesting support for ip as-path access-lists either permitting a list of AS#'s pr denying a list of AS#'s.
For example,
ip as-path access-list BGP-ACL deny 65400 any
ip as-path access-list BGP-ACL deny 65400 any
ip as-path access-list BGP-ACL deny 65200 any
ip as-path access-list BGP-ACL deny<PHONE_NUMBER> any
ip as-path access-list BGP-ACL permit .* any
ip as-path access-list BGP-ACL deny 65400 any
ip as-path access-list BGP-ACL deny 65200 any
ip as-path access-list BGP-ACL deny<PHONE_NUMBER> any
ip as-path access-list BGP-ACL permit .* any
I would imagine this would have a dictionary containing the following..
as-path:
    - name: string
      action: permit || deny
      aspath: list
      any: optional any string

Component Name
eos_cli_config_gen/templates/eos/acess-lists.j2
eos_cli_config_gen/templates/documentation/acess-lists.j2
If agreed upon I can put through a PR referencing the  eos_cli_config_gen/templates/eos/acess-lists.j2 &&
eos_cli_config_gen/templates/documentation/acess-lists.j2 adding this to the current access-list jinja2 templates unless we want to add a new one?

Alternative data model proposal - see inspiration in the other filters.
ip_as_path_access_lists:
  < as_path_acl_1 >:
    - type: < permit | deny >
      regexp: "< string >"

LGTM


Some .NET problem when trying to start server....

Don't know why, but almost always this error show up:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ALVR.ControlSocket.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ALVR.ControlSocket.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ALVR.Launcher.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
************** Loaded Assemblies **************
mscorlib
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
ALVR
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Topo/Desktop/ALVR/ALVR.exe
System.Windows.Forms
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/System.Drawing.dll
MetroFramework
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Topo/Desktop/ALVR/MetroFramework.DLL
System.Configuration
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/System.Configuration.dll
System.Core
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Core.dll
System.Xml
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Xml.dll
MetroFramework.Fonts
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Topo/Desktop/ALVR/MetroFramework.Fonts.DLL
Accessibility
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/Accessibility.dll
Microsoft.CSharp
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/Microsoft.CSharp.dll
System.Runtime.Serialization
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Runtime.Serialization.dll
System.Xml.Linq
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Xml.Linq.dll
SMDiagnostics
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_<IP_ADDRESS>__b77a5c561934e089/SMDiagnostics.dll
System.ServiceModel.Internals
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_<IP_ADDRESS>__31bf3856ad364e35/System.ServiceModel.Internals.dll
System.Dynamic
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/System.Dynamic.dll
Anonymously Hosted DynamicMethods Assembly
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.7.3062.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_<IP_ADDRESS>__b77a5c561934e089/mscorlib.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
From time to time, i can bypass it, after closing many times the steamvr and vrserver process and trying again. Rebooting the system is useless.
Any idea on how to fix it?

I don't know this issue was really fixed, but I fixed some Exceptions on v2.1.0.
Please check it.

Seems fixed for now. Thanks!


add MEL spectrograms transform and fixed a few tests.

Added an MEL spectrogram transform with librosa.  If librosa is not installed this fails gracefully.
added two convenience permutation transformations.
Removed the old tests in test/test.py and redid the relevant ones in the unit tests.
created unit tests for the MEL spectrogram transform and the permutation transforms.

good stuff!


KOGITO-9681 CI: Use cloud shared libraries

@radtriste could you rebase?

Closing this PR as stale, please reopen if this is relevant


DynamoDB tests spin forever and fail when running against DynamoDB Local

In TableOperationTest.cpp, I modified line 51 to look like
static const char* ENDPOINT_OVERRIDE = "localhost:8000";

In addition, I also ran DynamoDB Local following instructions in the following page: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html#Tools.DynamoDBLocal.DownloadingAndRunning
After compiling and running runDynamoDBIntegrationTests, I get a large number of failed gtest assertions and consequently test failures. They appear to be taking an extremely long time to run as well, which I don't expect (> 15 minutes and still going?).
Please advise if I am doing something wrong as I am new to this particular database service and SDK in general. Thanks.

Hi jeremyong,
I do not think we have ever tried the SDK with dynamodb-local, but it should work.
Some of the tests may wait for certain things to become consistent. if they never do, they will time out. This may be why the tests are taking long time to run, as the expected outcome never occurs.
Can you attach the log file generated by the dynamodb test executable? Please scrub any personal information or credentials in the logfile before attaching, if there is any.

 This sort of confuses me given that the local database is a single shard and there isn't any network link breakage or something that could prevent replica copies from merging.

Hi Jeremy, you attached the stdout. In the same directory as the executable should be a log file. Please attach this one.

http://paste.ubuntu.com/13219062/

I disabled the usage of HTTPS to bypass curl error 35 (failure to negotiate https handshake) which resulted in
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Making request to http://localhost:8000
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Including headers:
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] content-length: 46
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] content-type: application/x-amz-json-1.0
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] host: localhost
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] user-agent: aws-sdk-cpp/0.9-493-gcbf1dc0 Darwin/15.0.0 x86_64
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] x-amz-target: DynamoDB_20120810.DescribeTable
[DEBUG] 2015-11-10 14:19:46 CurlHandleContainer [0x7fff75aaa000] Attempting to acquire curl connection.
[DEBUG] 2015-11-10 14:19:46 CurlHandleContainer [0x7fff75aaa000] Returning connection handle 0x7ff981809e00
[DEBUG] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Obtained connection handle 0x7ff981809e00
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] HTTP/1.1 100 Continue
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000]
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] HTTP/1.1 400 Bad Request
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Content-Type: application/x-amz-json-1.0
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] x-amzn-RequestId: 282a86d2-2055-4685-ab49-ea21f3d81146
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Content-Length: 173
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Server: Jetty(8.1.12.v20130726)
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000]
[TRACE] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] 173 bytes written to response.
[DEBUG] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Returned http response code 400
[DEBUG] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Returned content type application/x-amz-json-1.0
[DEBUG] 2015-11-10 14:19:46 CurlHttpClient [0x7fff75aaa000] Releasing curl handle 0x7ff981809e00
[DEBUG] 2015-11-10 14:19:46 CurlHandleContainer [0x7fff75aaa000] Releasing curl handle 0x7ff981809e00
[DEBUG] 2015-11-10 14:19:46 CurlHandleContainer [0x7fff75aaa000] Notifying waiting threads.
[DEBUG] 2015-11-10 14:19:46 AWSClient [0x7fff75aaa000] Request returned error. Attempting to generate appropriate error codes from response
[TRACE] 2015-11-10 14:19:46 AWSClient [0x7fff75aaa000] Error response is {
"__type" : "com.amazonaws.dynamodb.v20120810#MissingAuthenticationToken",
"message" : "Request must contain either a valid (registered) AWS access key ID or X.509 certificate."
}

Do you have your credentials file configured?
The C++ SDK follows the same conventions set by the other SDKS. See this blog post: https://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs

OK I didn't realize that was necessary for talking to the local db as well. After setting the credentials file and disabling HTTPS the test cases pass.

Excellent! I didn't realize DynamoDB local required credentials either.
Good to know our tests pass  with DynamoDB Local!


Load project metadata file only when needed

Every single time when get_project_metadata() or set_project_metadata() is used, the ConfigFile will be loaded again. These functions are used quite a lot in the editor, so it causes many wasteful I/O operations.
This PR ensures that the file is loaded only when needed, i.e. once at launch and in case of external modification (this is sometimes needed for testing).

Ok I removed the modified time checks. Now the metadata is loaded only once, so you can't modify it externally while the editor is running.

This will cache the file, so any changes to it will require an editor restart.

Only external changes and this file is not edited externally, because it's in a folder that's usually ignored.

Thanks!

Cherry-picked for 4.2.2.


Failing to Build on Windows: /Werror

I am trying to build on Windows and get an error:
cl : command line error D8021: invalid numeric argument '/Werror' [D:\XXX\Documents\debugir\build\debugir.vcxproj]

When removing /Werror from the file, I get the same for -Wextra, -Wno-unknown-pragmas -Wno-unused-parameter. After removing all of them, it still fails to build.
Output of running cmake -DCMAKE_BUILD_TYPE=Release ../:
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30143.0
-- The CXX compiler identification is MSVC 19.29.30143.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- We are on a Windows system
-- Build type: Release
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- Found LLVM 18.1.2
-- Using LLVMConfig.cmake in: D:/XXX/Documents/Programming/LLVM/clang+llvm-18.1.2-x86_64-pc-windows-msvc/lib/cmake/llvm
-- LLVM does not have RTTI enabled. Building with -fno-rtti
-- Configuring done (3.9s)
-- Generating done (0.1s)
-- Build files have been written to: D:/XXX/Documents/debugir/build

When building anyway, after many warnings it fails with:
LINK : fatal error LNK1104: cannot open file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\DIA SDK\
lib\amd64\diaguids.lib' [D:\XXX\Documents\debugir\build\debugir.vcxproj]

Thanks for your time and help!

@Remodor Thank you for reporting the Issue. Unfortunately I do not have access to a windows machine to repro and fix this :-(

I understand, thx for your effort! I will try to build it using WSL.
Is the generated debug file independent of the operating system?
I.e. would it make a difference if I created the file on Windows or Linux?

Is the generated debug file independent of the operating system?

More or less. I guess there could be a target triple that has some OS info, but that shouldn't matter much in this case.

I.e. would it make a difference if I created the file on Windows or Linux?

It shouldn't, but I can't say for sure as I haven't tried it on anything but Linux

Thanks for the quick reply. I will try and post an update 👍


chore: migrate to hatch + use hatchling for the build backend, drop Python 2 support

Description

Stemmed off from #618 – the packaging infrastructure for autograd has been migrated to use hatchling.build instead of setuptools.build_meta as the build backend. Some missing metadata entries have been added in pyproject.toml.
Dependence on the six and future libraries has been removed, since all of the code is compatible with Python 3.
Python 2 support has been dropped and the wheels are tagged with py3 for the Python tag instead of py2-py3.
Lastly, I added some future TODOs so that I can keep track of them sometime soon.

What issue does this PR close/address?
Closes #606
Closes #513, since we won't need setuptools-specific files anymore.
Caveats (i.e., tasks for future PRs)

to enable VCS versioning via dynamic = ["version"] and the hatch-vcs plugin to derive the version from Git; and
to use hatch environment commands in place of tox through the addition of a [tool.hatch.run] table in pyproject.toml.

Additional notes
The conda.yaml file doesn't look like it's going to work anyway; I'll modify this in another PR and switch to an environment.yaml file if needed, or we can drop it sometime soon: all of our dependencies both for regular usage and development work are available via PyPI.

I'm hitting the same error as the other PR, which suggests that the problem is with either Hatch or PyPy-3.10-Windows – changing the build backend did not work. Either way, I'm sure these changes are beneficial. I guess it should be safe to drop this platform and test PyPy-3.10-Ubuntu instead. @fjosw, what do you think?

Similar error: https://github.com/actions/runner-images/issues/5009 – I bumped setup-python to v5 and then to v5.1.1; that doesn't resolve it either. It could be a bug in PyPy itself since 322122547 means it's trying to access an invalid memory address.

Looking at the logs, the installation time for all platforms on PyPy is unusually high. It shouldn't take thirteen minutes just to install a pure Python project at all.

Hey @agriyakhetarpal, I would be fine with not running PyPy tests on windows, or even dropping all PyPy tests if they cause so many troubles, whatever you prefer.

Sure, I dropped it for just Windows for now, since it's tested elsewhere and PyPy 3.9 is passing for Windows. I have a branch locally for switching to nox because it will be easier for us to modify the testing infrastructure and bring it closer to the Scientific Python ecosystem's guidelines – but I don't wish to hold up your PR at this time, so this is ready for review.

Lots of potential improvements and maintenance to do, I'm excited 😄

Just realised I pushed the previous commit to master when I meant to do so here – we should set up branch protections.

I don't have access to change branch protection rules in the settings. @j-towns, could you please help us out with this? Also, since not many PRs are active, we could additionally look at renaming master to main.

Yep, since they're not urgent I'll look at those things in around 10 days when I'm back from holiday.

Sure, thanks!

Sure, thanks! Enjoy your holiday!

@fjosw, please let me know if this is good to go for you – I'm awaiting your review :) I think it is, at least from my end.

Thanks for the review, and no worries about the delay! Yes, the upper pin is just temporary – just updated your branch in the other PR where the pin doesn't exist 😄


[SPARK-42934][SQL][TESTS] Move spark.hadoop.hadoop.security.key.provider.path from systemPropertyVariables of maven-surefire-plugin to systemProperties of scalatest-maven-plugin

What changes were proposed in this pull request?
When testing OrcEncryptionSuite using maven, all test suites are always skipped. So this pr move spark.hadoop.hadoop.security.key.provider.path from systemPropertyVariables of maven-surefire-plugin to systemProperties of scalatest-maven-plugin to make OrcEncryptionSuite can test by maven.
Why are the changes needed?
Make OrcEncryptionSuite can test by maven.
Does this PR introduce any user-facing change?
No, just for maven test
How was this patch tested?

Pass GitHub Actions
Manual testing：

run
build/mvn clean install -pl sql/core -DskipTests -am
build/mvn test -pl sql/core -Dtest=none -DwildcardSuites=org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite

Before
Discovery starting.
Discovery completed in 3 seconds, 218 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:57:58.344 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@5af5d76f doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:37)
- Write and read an encrypted table !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@5ad6cc21 doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:65)
- SPARK-35325: Write and read encrypted nested columns !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@691124ee doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:116)
- SPARK-35992: Write and read fully-encrypted columns with default masking !!! CANCELED !!!
  [] was empty org.apache.orc.impl.NullKeyProvider@5403799b doesn't has the test keys. ORC shim is created with old Hadoop libraries (OrcEncryptionSuite.scala:166)
21:58:00.035 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 5 seconds, 41 milliseconds.
Total number of tests run: 0
Suites: completed 2, aborted 0
Tests: succeeded 0, failed 0, canceled 4, ignored 0, pending 0
No tests were executed.

After
Discovery starting.
Discovery completed in 3 seconds, 185 milliseconds.
Run starting. Expected test count is: 4
OrcEncryptionSuite:
21:58:46.540 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
- Write and read an encrypted file
- Write and read an encrypted table
- SPARK-35325: Write and read encrypted nested columns
- SPARK-35992: Write and read fully-encrypted columns with default masking
21:58:51.933 WARN org.apache.spark.sql.execution.datasources.orc.OrcEncryptionSuite:

===== POSSIBLE THREAD LEAK IN SUITE o.a.s.sql.execution.datasources.orc.OrcEncryptionSuite, threads: rpc-boss-3-1 (daemon=true), shuffle-boss-6-1 (daemon=true) =====

Run completed in 8 seconds, 708 milliseconds.
Total number of tests run: 4
Suites: completed 2, aborted 0
Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
All tests passed.

cc @dongjoon-hyun FYI

Thanks very much @dongjoon-hyun 😄


Event Detection methods are raising FutureWarning

Running hydrotools.events.event_detection.decomposition.list_events results in several FutureWarning from pandas.
from hydrotools.events.event_detection.decomposition import list_events

events = list_events(
    df['value'],
    halflife='6H',
    window='7D',
    minimum_event_duration='6H',
    start_radius='7H'
)

miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:117: FutureWarning: 'H' is deprecated and will be removed in a future version. Please use 'h' instead of 'H'.
  smooth = series.ewm(halflife=halflife, times=series.index,
miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:261: FutureWarning: 'H' is deprecated and will be removed in a future version. Please use 'h' instead of 'H'.
  minimum_event_duration = pd.Timedelta(minimum_event_duration)
miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:262: FutureWarning: 'H' is deprecated and will be removed in a future version. Please use 'h' instead of 'H'.
  start_radius = pd.Timedelta(start_radius)
miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:156: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  forward_shift = event_points.shift(1).fillna(False)
miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:161: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  backward_shift = event_points.shift(-1).fillna(False)
miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:156: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  forward_shift = event_points.shift(1).fillna(False)
miniconda3/lib/python3.10/site-packages/hydrotools/events/event_detection/decomposition.py:161: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  backward_shift = event_points.shift(-1).fillna(False)

@aaraney @hellkite500 @christophertubbs FYI: Ran into this warning while fixing this issue.
DeprecationWarning:
  Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0)

Hmmm, thanks for bringing this to our attention. I don't know if this will effect us or not? This might be hard to track, but my suggestion would be that we test against pandas release candidates once they release >=3.x. Thoughts?

Hmmm, thanks for bringing this to our attention. I don't know if this will effect us or not? This might be hard to track, but my suggestion would be that we test against pandas release candidates once they release >=3.x. Thoughts?

Maybe a good idea for reasons other than the PyArrow dependency.


update dependencies

Which issue(s) this PR fixes:
resolve https://github.com/karmada-io/website/issues/294

/assign @Poor12


Add a way to stream output to a UI via sockets

@sonichi @davorrunje
Why are these changes needed?
Because it is nice to use AutoGen as a backend and stream to a frontend

I added a Singleton, which can be used by multiple scripts.  The singleton gets defined in the main script, and we store a socket connection in one of its variables.  Then we can easily pass that socket connection down to oai\client.py and use that script to stream back text to a UI.
Related issue number

Closes Issue #1199
Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

@tyler-suard-parker thanks for the PR, there is another PR that seems to address the same issue. I wrote some comment there. Do you want to take a look? #1414

PR closed: using a singleton would prevent multiple users from accessing the same Autogen instance running on a server.
@ekzhu Thank you, I am also @Tylersuard, so I will be happy to join forces with myself 😄


Add support for local npm prefix

This pull request adds support for the npm_config_local_prefix environment variable as well as the npm_config_prefix one documented here.
This enables submodules to work with a Go binary:
const path = require('path');
const { spawn } = require('child_process');

spawn(`${path.dirname(require.main.filename)}/node_modules/.bin/binary`);

Thanks @dnicolson!


Fix mis-copied path in kokoro config

Kokoro makes you specify this path at least five times, which does not make it less error prone.
Fixes a mistake in https://github.com/google/iree/pull/4183. Will re-run the manual presubmits to verify that things work as expected.
Edit: Found #4195, which I'm getting around temporarily by moving all of the PR files into an iree/ sub directory and then using /src/github/iree/ as the base for an out-of-tree build.

Kokoro makes you specify this path at least five times

I read this in my head as

Manual checks:
cmake_bazel_x86-swiftshader_tensorflow_integrations
cmake_bazel_x86-turing_tensorflow_integrations


Performance comparison from readme seems a bit unfair

Hi!
First of all thanks for this library! This sounds like a very good idea.
However, what I noticed is that since it evaluates fields lazily, comparing it directly to other JSON libraries that provide you with the full dictionary right away is a bit unfair.
Assuming you will use the whole dict anyway, IMHO, a more fair comparison would be with .export() call.
>>> _json_string = '{"a fairly": "expensive", "json": "goes-in", "here": 121}'
>>> timeit(lambda: cysimdjson_parser.parse_string(_json_string).export(), number=100000)
3.6677306999990833
>>> timeit(lambda: orjson_parser.loads(_json_string), number=100000)
2.9754124999963096

Then however, it is slower than orjson.
It gets a lot faster if you will not use the whole dictionary.
>>> timeit(lambda: cysimdjson_parser.loads(_json_string)[7]['revisionNumber'], number=100000)
0.4328116000033333
>>> timeit(lambda: orjson_parser.loads(_json_string)[7]['revisionNumber'], number=100000)
3.0126906000004965

However, in my experience this is rarely the case.

Hi,
yes, this is because the conversion to Python dict (and other types) is the most expensive bit of the whole JSON parsing.
The idea behind this is to harvest the raw power of SIMDJSON in Python; not to race against orjson.
It is also - as you point out correctly - not universal replacement, you need to make some trade-offs (read-only parsing output which is not a dictionary).
The message is that: (1) these speeds are possible in Python (2) you need to adjust your design if you want to be in this performance range.
In our case, we parse rather big (10kb) JSONs in very high frequency (>50000 per second), we don't need to access all attributes (by far) and we don't need to modify the dictionary.
For this SIMDJSON is ideal choice.
I'll try to highlight that in the README.

https://github.com/TeskaLabs/cysimdjson/blob/main/README.md#trade-offs


How to cargo deny only for normal deps?

As in, not build or dev deps, similar to how it works with cargo tree:
cargo tree -e features,no-build,no-dev

My config, for context:
# This cargo deny file makes sure that for the Mac target, we don't take on OpenSSL
# deps for the normal (not build / dev) dependencies.

# It doesn't actually check for just normal deps right now:
# https://github.com/EmbarkStudios/cargo-deny/issues/563

all-features = false
no-default-features = false
targets = [
    { triple = "aarch64-apple-darwin" },
]

[advisories]
vulnerability = "allow"
unmaintained = "allow"
notice = "allow"
unsound = "allow"
yanked = "allow"

[licenses]
unlicensed = "allow"
copyleft = "allow"
default = "allow"

[bans]
multiple-versions = "allow"
wildcards = "allow"
workspace-default-features = "allow"
external-default-features = "allow"
# We need to make this only check for the normal deps, not build or dev.
deny = [
    { name = "openssl" },
    { name = "openssl-sys" },
    { name = "openssl-macros" },
]

[sources]
unknown-registry = "allow"
unknown-git = "allow"

Hey @repi @Jake-Shadle I don't suppose you know the answer to this?

You can't currently only check normal dependencies when checking for bans.

I see, thanks! I'll rename this issue then and turn it into a feature request hahah. If I get time I can look into it but I doubt that'll happen in the near future.


adds support for MQTT mirror containers

This commit is part of my fork and I would like to have it upstreamed, so that others can make use of the functionality, even using MQTT containers.

in distributed MQTT setups, we need to wait shortly for incoming messages before we determine if our container is done
in mirrored MQTT containers, the Receiver ID might exist only in the mirrored container, making the warning of unknown receiver ids less useful

I just had a simulation in which the distributed simulation clock did react before messages were received.
This boils down to this situation:

while this is wanted:

One could use priority in the messages, though this does not seem to be implemented completely to sort messages in the container - only for the Role API?
Other than that, this PR seems fine and does not have merge conflicts anymore :)


Scheduler don't uses env-variable handed over via docker-compose

Laravel Version
10.4.1
PHP Version
8.2.4
Database Driver & Version
10.10.2-MariaDB
Description
We have the following setup:
docker-compose containing the environment variable for the affected container:
environment:
            APP_ENV: int

The .env inside the Laravel root directory doesn't include the APP_ENV variable.
The config/app.php is being configured, to use "production" in case the APP_ENV variable is not being configured.
'env' => env(
   'APP_ENV',
   'production'
),

In app/Console/Kernel.php several jobs are being defined, which also make use of the environment variable.
We also added Log::info('Environment: '.config('app.env')); to the schedule.
Furthermore there is a cronjob being defined, that triggers the scheduler:
* * * * * /usr/local/bin/php /app/artisan schedule:run >> /var/log/cron.log 2>&1
The cronjob is running with the root-user, however the given env-variable is not being used, but the default instead:
[2023-05-04 09:40:01] production.INFO: Environment: production
[2023-05-04 09:41:01] production.INFO: Environment: production
[2023-05-04 09:42:02] production.INFO: Environment: production
[2023-05-04 09:43:01] production.INFO: Environment: production

Even the variable is being set:
root@2a57ec5602df:/app# export | grep APP_ENV
declare -x APP_ENV="int"

When running the scheduler manually (also with the user root)  /usr/local/bin/php /app/artisan schedule:run, everything is being fine
[2023-05-04 09:38:38] int.INFO: Environment: int
[2023-05-04 09:38:44] int.INFO: Environment: int

php artisan config:clear has already been executed to make sure, that there is no caching issue.
Steps To Reproduce
See example above

Hey @Orscheler
I've tried to replicate your issue, but It seems that I cannot reproduce the bug. How does your docker-compose file look like?
The setup I've used to replicate:

Set the APP_ENV as an environment in the php container;
remove the APP_ENV from .env file;
check that 'env' => env('APP_ENV', 'production'), exists in config/app.php;
use the bellow setup

docker-compose.yml:
version: '2.4'

services:
    php:
        image: php:8.2-fpm
        environment:
            APP_ENV: int
        volumes:
            - .:/var/www/html
        networks:
            - test

    nginx:
        image: nginx:latest
        volumes:
            - .:/var/www/html
            - ./default.conf:/etc/nginx/conf.d/default.conf
        ports:
            - 8080:80
        networks:
            - test

networks:
    test:

default.conf:
server {
    listen 80;
    root /var/www/html/public;

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ ^/index\.php(/|$) {
        fastcgi_pass php:9000;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;

        fastcgi_buffer_size 128k;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;

        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS off;

         proxy_set_header Host $host;
         proxy_set_header X-Forwarded-Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-Server $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    error_log /var/log/nginx/laravel_error.log;
    access_log /var/log/nginx/laravel_access.log;
}

routes/web.php:
Route::get('/', function () {
    dd(config('app.env'));
});

@Orscheler, have you managed to resolve the issue yet? If not, you could attempt to set the environment variable at the service > php level as instructed by @andumy:

services:
    php:
        image: php:8.2-fpm
        environment:
            APP_ENV: int

In case this solution doesn't work, would you be willing to create an open-source repository with a new Laravel application, the necessary changes to reproduce the issue, and your Dockerfile? This will help us to attempt reproducing the issue on our local environment. No worries, if we are able to verify that there is an issue here, I will re-open this issue.

I am also facing this issue today.
@andumy the problem here is a little different than using a http request. If you use the scheduler to boot jobs or other things it simply cannot read environment variables from anywhere but the .env file.
[2024-04-24 20:19:02] production.DEBUG: env vars {"vars":{"mongodb":{"driver":"mongodb","dsn":"://user:secret@development-1.v39lgpg.mongodb.ne/?retryWrites=true&w=majority","database":"default"},"system-db":{"driver":"mongodb","dsn":"://user:secret@localhost/?retryWrites=true&w=majority","database":"default"}}}
[2024-04-24 20:19:02] production.ERROR: Failed to parse MongoDB URI: '://user:secret@localhost/?retryWrites=true&w=majority'. Invalid URI Schema
.env file:

Kernel.php:

config/database.php:

artisan tinker has no problem seeing env vars outside of .env:

My examples are from a production GKE environment with configMaps, but nonetheless the same scenario as OP with their env vars defined in their docker-compose.yml.

@nunomaduro the issue is not resolved and the suggested tip is unrelated to the issue. Please review it.

What I found out: When cron executes a job, it doesn’t load the environmental variables from files like ~/.bashrc, ~/.bash_profile, /etc/profile and others. This is because cron runs jobs from a non-interactive, non-login shell.
Therefore those variables need to be loaded before starting the cron. I'm doing this via a supervisor job.
[program:cron]
command=/bin/bash -c "printenv > /etc/environment && /usr/sbin/cron -f"

This was fixing my issue with the environment values handed over by the container.
In case you are using the .env file to set the variables, you're not facing this issues.

If you in docker container and since the environment variables only need to be written once, you may do it with entrypoint file.
Here is a example of Entry Point Usage:
#!/bin/bash

# Export all environment variables to /etc/environment for cron jobs
printenv > /etc/environment

# Start the cron service (if it's not started elsewhere)
cron

# Start your main process (e.g., PHP-FPM, nginx, Supervisor, etc.)
exec "$@"


feature: E2E framework supports testing wasm plugins

Ⅰ. Describe what this PR did
Finished E2E framework supports testing wasm plugins function.  issue
Ⅱ. Does this pull request fix one issue?

No
Ⅲ. Why don't you add test cases (unit test/integration test)?
yes, had added.
Ⅳ. Describe how to verify it
make wasmplugins test
Ⅴ. Special notes for reviews
None

@Xunzhuo @johnlanni please help me to review this PR.

Why not enable it in build and test workflow?

Because the wasmplugins building is time-consuming, so i separate the api test and wasmplugin test.

@Hinsteny yes I get it, but why not enable the wasm-conformance-test in CI ?

Codecov Report

Merging #369 (2128c57) into main (80d6ecf) will increase coverage by 0.26%.
The diff coverage is 50.00%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #369      +/-   ##
==========================================
+ Coverage   41.57%   41.84%   +0.26%
==========================================
  Files          44       44
  Lines        5879     5877       -2
==========================================
+ Hits         2444     2459      +15
+ Misses       3262     3245      -17
  Partials      173      173

Impacted Files
Coverage Δ

pkg/ingress/kube/ingressv1/status.go
0.00% <0.00%> (ø)

pkg/ingress/kube/ingress/status.go
14.06% <100.00%> (-1.33%)
:arrow_down:

... and 1 file with indirect coverage changes

@Xunzhuo Just added it, please check.

https://github.com/alibaba/higress/actions/runs/5206737597/jobs/9393699575?pr=369

https://github.com/alibaba/higress/actions/runs/5206737597


Codebase Completeness

Great work! We are currently trying to reproduce your results such that we can build on top of your insights. I see that you are still working on this codebase. Are there already some benchmarks that are fully implemented in this repository that you do not intend to develop further in the near future? Because when I am running the different benchmarks I sometimes run into some errors and I am not sure when the error is from my side, or just because some functionality is missing.
For example: When I am running the CommonGen benchmark on a reduced test set, I observe a lot of errors in the output file. My main source of error seems that the feedback from GPT does not have the intended structure, such that exceptions in the code occur. I did not change any of the training prompts/instructions prompts you provide in this file and use "gpt-3.5-turbo". Did you also observe this behaviour?
I also noticed two different things, which I thought I would notify you about:

Compared to other benchmarks you do not include the refinement history in the GSM-8k benchmark. You only use the training prompt, the instruction prompt and the current iteration. Is this intended?
The run.py file is missing for the sentiment_reversal benchmark and I can't find the training data for the Code Readability Improvement

Thanks a lot!

Hey,
Thanks for pointing out the issues, and sorry about the missing files. We have a private repo where some of the development happens, and it went out of sync. I've added these files.
The GSM with prompting being updated is now located here.
Re errors, unfortunately some of it is due to the inability of gpt-3.5-turbo to faithfully follow the prompt format. Please see the discussion here for more.


Fixed link for Machine Code for Beginners

Original linked to a page whose download links were all broken. Linked instead to publisher's website, where the book can be downloaded for free.

Thanks!


Coloring scheme not consistent

In some messages, "enabled" or "disabled" does not appear red or green

Please name which, so I can fix this or do a pull request with the corrected sentences in the language files

most of the messages which toggle something


Configurate Protractor to ignore browser console errors

Hi.
I have a little problems with protractor, please help me to resolve it.
I try to write tests for web application, but there are some difficulties. When i use the web application I get some angular errors in browser console. It is not fatal errors, and they do not interfere for application execution.
But when I run Protractor test, it fail on the first of this browsers console errors.
Is there a way to configure Protractor test to carried out test scenarie and checked the scenarie  results, ignoring these browser console errors?
I also try to using protractor console plugin with with
failOnWarning: false,
failOnError: false,

flags, but it does not help me.
here is my config file:
exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['spec/authorization.js'],

    capabilities: {
        //'browserName': 'firefox'
        'browserName': 'chrome'
    },
    plugins: [{
        package: 'protractor-console-plugin',
        failOnWarning: false,
        failOnError: false,
        logWarnings: false
    }]
};

And it is my test file
var
    testingAdress = 'http://localhost:1340';

    describe('admin avtorization test', function(){
    beforeEach(function(){
        // should be called before each it block
    });

    it('should avtorizate as admin', function(){

        browser.get(testingAdress);

        expect(browser.getCurrentUrl()).toEqual('localhost:1340'+'/#!/');

        //element(by.linkText('Sign Up')).click();

        //expect(browser.getCurrentUrl()).toEqual(testingAdress + '/#!/signup');

        //element(by.id('myLink').click());
        //expect(browser.getCurrentUrl()).toEqual("http://myUrl.com");
    });

});

What's the test output?

Here is logs from console
roman@rmk-pc:~/agroapp/test$ protractor conf.js
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Started
F

Failures:
1) admin avtorization test should avtorizate as admin
  Message:
    Failed: unknown error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
    Watchers fired in the last 5 iterations: []
    http://errors.angularjs.org/1.5.2/$rootScope/infdig?p0=10&p1=%5B%5D
      (Session info: chrome=49.0.2623.108)
      (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 4.2.0-34-generic x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 506 milliseconds
    Build info: version: '2.52.0', revision: '4c2593c', time: '2016-02-11 19:06:42'
    System info: host: 'rmk-pc', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-34-generic', java.version: '1.7.0_80'
    Session ID: 70733d9c5143e563f76bba58632d98dc
    Driver info: org.openqa.selenium.chrome.ChromeDriver
    Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.6v59V5, chromedriverVersion=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=49.0.2623.108, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]
  Stack:
    WebDriverError: unknown error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
    Watchers fired in the last 5 iterations: []
    http://errors.angularjs.org/1.5.2/$rootScope/infdig?p0=10&p1=%5B%5D
      (Session info: chrome=49.0.2623.108)
      (Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 4.2.0-34-generic x86_64) (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 506 milliseconds
    Build info: version: '2.52.0', revision: '4c2593c', time: '2016-02-11 19:06:42'
    System info: host: 'rmk-pc', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-34-generic', java.version: '1.7.0_80'
    Session ID: 70733d9c5143e563f76bba58632d98dc
    Driver info: org.openqa.selenium.chrome.ChromeDriver
    Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.6v59V5, chromedriverVersion=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=49.0.2623.108, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]
        at WebDriverError (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/error.js:27:10)
        at Object.checkLegacyResponse (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/error.js:580:13)
        at /usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:360:15
        at Promise.invokeCallback_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1329:14)
        at TaskQueue.execute_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2790:14)
        at TaskQueue.executeNext_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2773:21)
        at /usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2652:27
        at /usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7
        at process._tickCallback (node.js:369:9)
    From: Task: Run it("should avtorizate as admin") in control flow
        at Object.<anonymous> (/usr/lib/node_modules/protractor/node_modules/jasminewd2/index.js:81:14)
        at /usr/lib/node_modules/protractor/node_modules/jasminewd2/index.js:18:5
        at Promise.invokeCallback_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1329:14)
        at TaskQueue.execute_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2790:14)
        at TaskQueue.executeNext_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2773:21)
        at /usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2652:27
    From asynchronous test:
    Error
        at Suite.<anonymous> (/home/roman/agroapp/test/spec/authorization.js:13:5)
        at Object.<anonymous> (/home/roman/agroapp/test/spec/authorization.js:8:5)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)

1 spec, 1 failure
Finished in 3.142 seconds
Warning from "protractor-console-plugin" plugin: SEVERE: http://localhost:1340/js/application.js 84237:24 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.5.2/$rootScope/infdig?p0=10&p1=%5B%5D
    at http://localhost:1340/js/application.js:71011:12
    at Scope.$digest (http://localhost:1340/js/application.js:87720:19)
    at Scope.$apply (http://localhost:1340/js/application.js:87946:24)
    at bootstrapApply (http://localhost:1340/js/application.js:72656:15)
    at Object.invoke (http://localhost:1340/js/application.js:75568:19)
    at doBootstrap (http://localhost:1340/js/application.js:72654:14)
    at Object.angular.resumeBootstrap (http://localhost:1340/js/application.js:72682:12)
    at <anonymous>:248:41
    at callFunction (<anonymous>:237:33)
    at <anonymous>:247:23
Warning from "protractor-console-plugin" plugin: SEVERE: http://localhost:1340/js/application.js 84237:24 Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.5.2/$rootScope/infdig?p0=10&p1=%5B%5D
    at http://localhost:1340/js/application.js:71011:12
    at Scope.$digest (http://localhost:1340/js/application.js:87720:19)
    at Scope.$apply (http://localhost:1340/js/application.js:87946:24)
    at done (http://localhost:1340/js/application.js:82267:47)
    at completeRequest (http://localhost:1340/js/application.js:82465:7)
    at XMLHttpRequest.requestLoaded (http://localhost:1340/js/application.js:82406:9)
Warning from "protractor-console-plugin" plugin: SEVERE: http://localhost:1340/js/application.js 71011:12 Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
http://errors.angularjs.org/1.5.2/$rootScope/infdig?p0=10&p1=%5B%5D
[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #01 failed 1 test(s)
[launcher] overall: 1 failed spec(s)
[launcher] Process exited with error code 1
roman@rmk-pc:~/agroapp/test$

The problem is not that you're getting the error logs, but that your javascript is actually failing. Protractor tries to execute some scripts on your page to do waiting logic and such, but if those fail, the test will fail. Your application's errors are causing our scripts to fail.
You could potentially get around this by setting browser.ignoresynchronizaton = true and never using by.binding or by.model, but I would really suggest looking into your application to fix those errors. Even if they're not causing problems now they're not a good sign :)


100% Reproducible crash on http://www.newegg.com

I have a 100% reproducible test case on Debian wheezy
Steps to reproduce the issue
1>Navigate to www.newegg.com
2>Immediately polipo crashes
Here is the stacktrace.I tried with latest master codeline as well
oot@bhavesh:/media/develop/polipo/polipo# gdb --args polipo -c /etc/polipo/config
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /media/videos/develop/polipo/polipo/polipo...done.
(gdb) run
Starting program: /media/videos/develop/polipo/polipo/polipo -c /etc/polipo/config
polipo: event.c:517: findEvent: Assertion `!(revents & 0x020)' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff7a83165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff7a83165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff7a863e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff7a7c311 in __assert_fail ()
from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00000000004048fc in findEvent (events=0x63cc70, revents=32)
at event.c:517
#4  eventLoop () at event.c:710
#5  0x0000000000402aa1 in main (argc=3, argv=)
at main.c:165

It typically crashes in httpServerDirectHandlerCommon in server.c on line 2598(ObjectPtr object = request->object;) and 2629(assert(end >= 0);)

I cannot reproduce that. Are you still experiencing this problem?  What version of polipo do you use?

I can reproduce the crash if I poke around a few urls on newegg.com, within less then 60 seconds
I am on version 1.1.1-5 which is debian jessie.


Fix wrong url for toggleTheme query

Was querying dev...

Coverage remained the same at 39.68% when pulling 0cbe447c3d68819e674f392522723e4c00ecfc18 on query-url-fix into e4767d42b561b2bf08c61fd393826c07518c23b8 on dev.

Coverage remained the same at 39.68% when pulling ca488ac8c9d0eb6aa23483bf8c6035e897846e3a on query-url-fix into 6f6f03f7baef0619d39e53f8f257c5542f34b18c on dev.