gha bundle diff memory

Debugging memory in GHA

Warnings

:warning:
Please add the JIRA issue key to the PR title (e.g. MB-123)

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against ffd8c9990c30a71df819e611ae01ed03c7119ad4


Slack demo

SUMMARY
This PR adds a ChatOps demo. The objective is to demonstrate integration of tools like slack that can trigger the Ansible Tower API to execute interactive playbooks
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
Tower API calls from slack
ADDITIONAL INFORMATION

I need to test this out, but merging because it will not affect other demos, provisioner or exercises this is safe


No animation when expanding

Hi, I'm suffering some problem with animation. When I call collapseGroupWithAnimation, the animation works well. But when I call expandGroupWithAnimation, the listview just expand immediately, without any animation.
I have downloaded the example and it works well. I also compared my code carefully with the example and still don't understand how could this happened.
Do you have any idea about how this could happens? Thanks a lot, really need helps!

Is the item not expanding the last item in your list?

@captainbupt & @gitanshu This is happening, if you have only single parent in your list.


MWPW-131411 Add internal campaign id to report

Add missed column "Internal Campaign ID" to report
Keep "Onsight Campaign ID" column

Resolves: MWPW-131411
Test URLs:

Before: https://main--bacom--adobecom.hlx.page/docs/reports/faas-us-resources?martech=off
After: https://methomas-report-bug--bacom--adobecom.hlx.page/docs/reports/faas-us-resources?martech=off

Codecov Report

Merging #114 (a60019c) into main (56c3acd) will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   96.25%   96.36%   +0.11%
==========================================
  Files           6        6
  Lines         454      468      +14
==========================================
+ Hits          437      451      +14
  Misses         17       17

Impacted Files
Coverage Δ

blocks/faas-decode/faas-decode.js
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Preload not working as expected

Your Question
When using Preload the behavior is extremely strange
db.Model(models.Member{}).Preload("Organization").Preload("Organization.PrimaryZone").Preload("Organization.SessionSetting").Where(&models.Member{ID: &id}).Find(&emp)

In this case, the Organization.PrimaryZone might yield no result. If this is the case, the entire &emp will not be populated. I haven't seen the issue in the documentation. Moreover, the most natural way of handling this would be to load everything but the association that doesn't exist.
models.Member{ID:(*uuid.UUID)(nil), OrganizationID:(*uuid.UUID)(nil), Organization:(*models.Organization)(nil), Email:(*string)(nil), FirstName:(*string)(nil), LastName:(*string)(nil), Role:(*string)(nil), Password:(*string)(nil), AccessToken:(*string)(nil), CreatedAt:<nil>, UpdatedAt:<nil>, LastEvent:(*models.Event)(nil)}

The document you expected this should be explained
https://gorm.io/docs/preload.html
Expected answer
I'd like to know if there's any option to load the original model and other associations skipping the failing association instead.

That was a mistake on my end. The behavior is correct in GORM.


ssl.p.jwpcdn.com

This is breaking embedded videos on news sites
eg https://globalnews.ca/news/8625291/green-puppy-middle-sackville/

@muxcc


problems with ingesting lineage

Affected module
this is impacting the lineage
Describe the bug
I'm working with SQL server. I've granted the user with the GRANT VIEW SERVER STATE.
When i run the metadata ingestion I run into this problem:
[2024-03-20T11:15:37.230+0000] {sql_lineage.py:385} DEBUG - Running lineage with query: CREATE VIEW [dbo].[An_View] AS

SELECT DISTINCT
    ColumnA,
    ValueLiteral1 AS AliasIDType,
    'TypeLiteral1' AS AliasType,
    ColumnB,
    CASE
        WHEN ColumnCondition1 = 'Value1' THEN
            (SELECT SubColumn1 FROM SubTable1 WHERE IndustryGroupCondition = ColumnCondition2)
        WHEN ColumnCondition1 = 'Value2' THEN 'ValueLiteral2'
        ELSE 'ValueLiteral3'
    END AS AliasAssetClass,
    CASE
        WHEN RankCondition = 'Value3' AND CollatCondition = 'Value4' THEN
            (SELECT Description FROM SubTable2 WHERE NameCondition = RankCondition)
        ELSE
            (SELECT Description FROM SubTable2 WHERE NameCondition = CollatCondition)
    END AS AliasAssetRank,
    MainTable.AliasCountryCode
FROM MainTable
WHERE TimestampCondition = (
    SELECT MAX(InnerTimestamp) FROM MainTable AS InnerTable WHERE InnerTable.ColumnMatch = MainTable.ColumnMatch
)
AND MainTable.ColumnA NOT IN (
    SELECT ExclusionColumn FROM ExclusionTable WHERE MarketBookCondition AND CodeCondition <> 'ExclusionValue'
)
AND MainTable.ColumnA NOT IN (
    SELECT InnerColumnA FROM SubTable3 WHERE InnerColumnMatch = MainTable.ColumnMatch AND InnerTimestamp > MainTable.TimestampCondition
)
AND MainTable.ColumnA <> 'SpecificExclusion'

UNION

SELECT DISTINCT
    ColumnA,
    ValueLiteral4 AS AliasIDType,
    'TypeLiteral2' AS AliasType,
    ColumnC,
    CASE
        WHEN RankCondition = 'Value3' AND CollatCondition = 'Value6' THEN
            (SELECT Description FROM SubTable4 WHERE NameCondition = ColumnD)
        ELSE
            (SELECT Description FROM SubTable4 WHERE NameCondition = CollatCondition)
    END AS AliasAssetRank,
FROM SubTable5
WHERE RequestDateCondition = (
    SELECT MAX(InnerRequestDate) FROM SubTable5 AS InnerTable2 WHERE InnerTable2.ColumnMatch = SubTable5.ColumnMatch
)
AND SubTable5.ColumnA NOT IN (
    SELECT ExclusionColumn FROM ExclusionTable WHERE MarketBookCondition2
)

UNION

SELECT DISTINCT
    ExclusionTable.Code AS ColumnA,
    ValueLiteral7 AS AliasIDType,
    'TypeLiteral3' AS AliasType,
    ExclusionTable.BondsName,
    ExclusionTable.IssueAmount,
    ExclusionTable.CurrenciesShortname,
    ExclusionTable.CouponRate,
    Countries.AliasCountryShortName
FROM ExclusionTable
INNER JOIN BondsTable ON BondsCondition
WHERE ExclusionTable.MarketBook = LiteralValue8
AND ExclusionTable.Code <> 'ExclusionValue'
AND ExclusionTable.Code NOT IN (
    SELECT DISTINCT ColumnA FROM MainTable
    UNION
    SELECT DISTINCT ColumnA FROM SubTable5
);
11:15:37.560+0000] {parser.py:439} DEBUG - Lineage with SqlFluff failed for the [tsql] query: [CREATE   view dbo.AllCWDT as
(the same query again)

I also get the following error for some other queries:
Lineage computed with SqlFluff did not perform as expected for the [tsql] query: [CREATE view  Vw_table
These errors appear multiple times in the metadata logs. And only the lineage of view tables is present, and the lineage of regular tables is missing.
I've also observed that when a view's query employs a UNION, the lineage mapping (when it works) includes the entire query. However, if the query utilizes a JOIN that involves a subquery, the lineage is only mapped to that subquery. For example, with this query, we have the lineage for all the views that are mentioned in the query
CREATE VIEW [dbo].[vw_ARSV] AS

SELECT
    Column1,
    Column2,
    Column3,
    SUM(Column4),
    IIF(SUM(Column5) > 0, SUM(Column5), 0) AS POS,
    IIF(SUM(Column5) < 0, SUM(Column5), 0) AS FX
FROM Table1 AS t1
GROUP BY
    Column1,
    Column2,
    Column3

UNION ALL

SELECT
    Column1_2,
    Column2_2,
    Column3_2,
    SUM(Column4_2),
    IIF(SUM(Column5_2) > 0, SUM(Column5_2), 0) AS CMV,
    IIF(SUM(Column5_2) < 0, SUM(Column5_2), 0) AS CMVN
FROM Table2 AS t2
GROUP BY
    Column1_2,
    Column2_2,
    Column3_2

UNION ALL

SELECT
    Column1_3,
    Column2_3,
    Column3_3,
    SUM(Column4_3),
    IIF(SUM(Column5_3) > 0, SUM(Column5_3), 0) AS ABC,
    IIF(SUM(Column5_3) < 0, SUM(Column5_3), 0) AS CBA
FROM Table3 AS t3
GROUP BY
    Column1_3,
    Column2_3,
    Column3_3;

But for this query, the lineage only shows the table Table3 but not the Table1 table. It should show both. Is that related to the fact that we are using sub-queries?

I also leave the link to the thead in Slack for any more information you may need:
https://openmetadata.slack.com/archives/C02B6955S4S/p1710935109949359
Version:

OS: Linux
OpenMetadata version: 1.3.0

tracking here https://github.com/open-metadata/OpenMetadata/issues/7427#issuecomment-2032538352

I keep looking into the views and the lineage, trying to find anymore structures that aren't working and I found that if I also use this way to indicate my coluns:
FROM [DBName].[SchemaName].[TableName1] ac, [DBName].[SchemaName].[TableName2] t, [DBName].[SchemaName].[TableName3] c, [DBName].[SchemaName].[TableName4] a
the lineage also doesn't work. I'll Keep posting any more finds I make


Update idl

Coverage remained the same at 77.863% when pulling ece30b156bf61cd588a0ca227f5a6f8e108713ce on update_idl into 5665b016f36d7b552e56dbd805c990fd4c6dc621 on master.


(feature request): Can move the addressbar to the bottom

Can we make a default CSS to apply always, to enable addressbar in the bottom of the UI such as suggested here https://support.mozilla.org/en-US/questions/1248277?page=2 ?

If you go to about:profiles, click "Open Directory" on the profile in use, then go to chrome/ShadowFox_customization, there should be a file called userChrome_customization.css, inside that file you can paste any customizations you want, such as the one you just posted, and then after running the updater again the changes should be applied


Error executing service:

Sometimes when I when I want to change color there happens such bug:
Эта ошибка возникла в кастомной интеграции.
`Logger: homeassistant.core
Source: custom_components/tapo/tapo_entity.py:33
Integration: Tapo Controller (documentation, issues)
First occurred: 10:41:19 (3 occurrences)
Last logged: 18:47:35
Error executing service: <ServiceCall light.turn_on (c:83e4f5f4b3e68fc9ac93f88e5b545028): entity_id=['light.tapo_2'], params=hs_color=(120.0, 71.42857142857142)>
Error executing service: <ServiceCall light.turn_on (c:f5e7d4ed92b757320d88911ff520d9e7): entity_id=['light.tapo_2'], params=hs_color=(240.0, 85.71428571428571)>
Error executing service: <ServiceCall light.turn_on (c:1ca72b17a5689dfbf3b18148cf267970): entity_id=['light.tapo_2'], params=brightness=255>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1025, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect
return await fut
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 528, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('<IP_ADDRESS>', 80)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/tapo/tapo_entity.py", line 31, in _execute_with_fallback
return await function()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 121, in set_hue_saturation
return await self.set_device_info(LightParams(hue=hue, saturation=saturation))
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 76, in set_device_info
await self._set_device_info(device_params.as_dict(), terminal_uuid)
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 94, in _set_device_info
response = await self.http.async_make_post_cookie(f"{self.url}?token={self.token}", request_body,
File "/usr/local/lib/python3.8/site-packages/plugp100/core/http_client.py", line 18, in async_make_post_cookie
async with self.session.post(url, json=json, cookies=cookie) as response:
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1117, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1051, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 1020, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/usr/local/lib/python3.8/site-packages/aiohttp/connector.py", line 975, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host <IP_ADDRESS>:80 ssl:default [Connect call failed ('<IP_ADDRESS>', 80)]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1507, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result()  # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 760, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 417, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/tapo/light.py", line 94, in async_turn_on
await self._change_color([hue, saturation])
File "/config/custom_components/tapo/light.py", line 123, in _change_color
await self._execute_with_fallback(
File "/config/custom_components/tapo/tapo_entity.py", line 33, in _execute_with_fallback
await self.coordinator.api.login()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 69, in login
await self._handshake()
File "/usr/local/lib/python3.8/site-packages/plugp100/api.py", line 146, in _handshake
self.tp_link_cipher = self.encryption.decode_handshake_key(resp_dict['result']['key'], self.key_pair)
File "/usr/local/lib/python3.8/site-packages/plugp100/core/encryption.py", line 38, in decode_handshake_key
do_final = cipher.decrypt(decode, None)
File "/usr/local/lib/python3.8/site-packages/Crypto/Cipher/PKCS1_v1_5.py", line 169, in decrypt
m_int = self._key._decrypt(ct_int)
File "/usr/local/lib/python3.8/site-packages/Crypto/PublicKey/RSA.py", line 154, in _decrypt
raise ValueError("Ciphertext too large")
ValueError: Ciphertext too large`
Also this one:
`Эта ошибка возникла в кастомной интеграции.
Logger: custom_components.tapo
Source: helpers/update_coordinator.py:219
Integration: Tapo Controller (documentation, issues)
First occurred: 08:38:50 (215 occurrences)
Last logged: 18:57:06
Error fetching tapo data:`

Problem was solwed by removing an old repo from custom components.


Failed cron job tests

Compiling all of the consistently failing cron job tests here to avoid constantly scrolling through all the logs
Also makes it easier to track
Tests that failed multiple times in past 30 days:
Cron prod

test_retrieve_interim_results, test_run_program_failed link
test_stream_results_done, test_retrieve_job_running link
test_retrieve_job_queued, test_cancel_job_queued, test_delete_job_queued link

Cron staging

make test 1 class not set up correctly link
test_callback_cancel_job link
test_interim_result_callback link

Slow test

test suite exceeds 6 hours link
test_callback_cancel_job, test_retrieve_interim_results link

Terra main

test_run_program_real_device link
many failed jobs that don't fail consistently

will check the cron jobs daily to keep this issue updated

Cron prod

test_retrieve_interim_results, test_run_program_failed link
test_stream_results_done, test_retrieve_job_running link

These are all connection issues. Hopefully #92 will help. #33 will help too once done; polling for job status creates a lot of requests.

test_retrieve_job_queued, test_cancel_job_queued, test_delete_job_queued link

These are related to ibmq_berlin being retired but not removed fro the account. Should be fixed by #75.


Source to add Senshi manga

Source name
Senshi manga
Source link
https://senshimanga.com
Source language
Spanish
Other details
No response
Acknowledgements

[X] I have checked that the extension does not already exist by searching the extension listing and verified it does not appear there.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[X] I will fill out all of the requested information in this form.

Que rápido jaja


Add website for futaba with explanations and usage documention

Probably at https://programming.im/futaba or something.

Ideally the documentation could be at least partially generated from the source.

For now this is not going to be implemented. See also #239


refactor(source): let SourceParser construct StreamChunk directly

Signed-off-by: TennyZhuang<EMAIL_ADDRESS>I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Refactor the SourceParser.
Previously, the SourceParser::parse will return an Event struct, which is very low-efficiency in memory and introduce many unnecessary allocations.
In our current implementation, SourceParser::parse can construct StreamChunk directly.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

All tests are fixed and the PR is ready for review. I will try to add more clear comments.


dead kernel on ox.project_graph

If you're having trouble with OSMnx, first search the previously opened issues to see if the problem has already been noted. If not, fill in the template below. You can delete any sections that don't apply.
Problem description (what did you do, what did you expect to happen, and what actually happened)
Every time I run ox.project_graph I get a dead kernel. For example, following the jupyter notebook from the examples (01-overview-osmnx.ipynb) the kernel fails at cell 4:
G1 = ox.project_graph(G1)
What operating system, architecture, Python version, and OSMnx version are you using?
Mac OSX Sierra
Python 3.6.2
OSMnx 0.5.3
Complete list of your environment's packages and their versions (for example, run conda list or pip list then paste the output below)

#
appnope                   0.1.0                    py36_0    conda-forge
bleach                    2.0.0                    py36_0    conda-forge
branca                    0.2.0                    py36_0    conda-forge
certifi                   2016.2.28                py36_0
click                     6.7                      py36_0    conda-forge
click-plugins             1.0.3                    py36_0    conda-forge
cligj                     0.4.0                    py36_0    conda-forge
curl                      7.54.1                        0    conda-forge
cycler                    0.10.0                   py36_0    conda-forge
decorator                 4.1.2                    py36_0    conda-forge
descartes                 1.1.0                    py36_0    conda-forge
entrypoints               0.2.3                    py36_1    conda-forge
expat                     2.2.1                         0    conda-forge
fiona                     1.7.7               np112py36_0    conda-forge
folium                    0.3.0                    py36_0    conda-forge
freetype                  2.7                           1    conda-forge
freexl                    1.0.2                         2    conda-forge
gdal                      2.2.1               np112py36_0    conda-forge
geopandas                 0.3.0                    py36_0    conda-forge
geopy                     1.11.0                   py36_0    conda-forge
geos                      3.5.1                         1    conda-forge
giflib                    5.1.4                         0    conda-forge
hdf4                      4.2.12                        0    conda-forge
hdf5                      1.8.18                        0    conda-forge
html5lib                  0.999999999              py36_0    conda-forge
icu                       58.1                          1    conda-forge
ipykernel                 4.6.1                    py36_0    conda-forge
ipython                   6.1.0                    py36_0    conda-forge
ipython_genutils          0.2.0                    py36_0    conda-forge
jedi                      0.10.2                   py36_0    conda-forge
jinja2                    2.9.6                    py36_0    conda-forge
jpeg                      9b                            0    conda-forge
json-c                    0.12.1                        0    conda-forge
jsonschema                2.6.0                    py36_0    conda-forge
jupyter_client            5.1.0                    py36_0    conda-forge
jupyter_core              4.3.0                    py36_0    conda-forge
kealib                    1.4.7                         2    conda-forge
krb5                      1.14.2                        0    conda-forge
libdap4                   3.18.3                        2    conda-forge
libgdal                   2.2.1                         0    conda-forge
libgfortran               3.0.0                         0    conda-forge
libiconv                  1.14                          4    conda-forge
libnetcdf                 <IP_ADDRESS>                       5    conda-forge
libpng                    1.6.28                        0    conda-forge
libpq                     9.6.3                         0    conda-forge
libsodium                 1.0.10                        0    conda-forge
libspatialindex           1.8.5                         1    conda-forge
libspatialite             4.3.0a                       15    conda-forge
libssh2                   1.8.0                         1    conda-forge
libtiff                   4.0.6                         7    conda-forge
libxml2                   2.9.4                         4    conda-forge
markupsafe                1.0                      py36_0    conda-forge
matplotlib                2.0.2                    py36_2    conda-forge
mistune                   0.7.4                    py36_0    conda-forge
mkl                       2017.0.3                      0
munch                     2.2.0                    py36_0    conda-forge
nbconvert                 5.2.1                    py36_1    conda-forge
nbformat                  4.3.0                    py36_0    conda-forge
networkx                  1.11                     py36_0    conda-forge
notebook                  5.0.0                    py36_0    conda-forge
numpy                     1.12.1                   py36_0
openjpeg                  2.1.2                         2    conda-forge
openssl                   1.0.2l                        0
osmnx                     0.5.3                    py36_0    conda-forge
pandas                    0.20.3                   py36_1    conda-forge
pandoc                    1.19.2                        0    conda-forge
pandocfilters             1.4.1                    py36_0    conda-forge
pexpect                   4.2.1                    py36_0    conda-forge
pickleshare               0.7.4                    py36_0    conda-forge
pip                       9.0.1                    py36_1
proj4                     4.9.3                         4    conda-forge
prompt_toolkit            1.0.15                   py36_0    conda-forge
psycopg2                  2.7.3                    py36_0    conda-forge
ptyprocess                0.5.2                    py36_0    conda-forge
pygments                  2.2.0                    py36_0    conda-forge
pyparsing                 2.2.0                    py36_0    conda-forge
pyproj                    <IP_ADDRESS>                  py36_0    conda-forge
pyqt                      5.6.0                    py36_4    conda-forge
pysal                     1.13.0                   py36_0    conda-forge
python                    3.6.2                         0
python-dateutil           2.6.1                    py36_0    conda-forge
pytz                      2017.2                   py36_0    conda-forge
pyzmq                     16.0.2                   py36_2    conda-forge
qt                        5.6.2                h9e3eb04_4    conda-forge
qtconsole                 4.3.1                    py36_0    conda-forge
readline                  6.2                           2
requests                  2.13.0                   py36_0    conda-forge
rtree                     0.8.3                    py36_0    conda-forge
scipy                     0.19.1              np112py36_0
setuptools                36.4.0                   py36_0
shapely                   1.6.1                    py36_0    conda-forge
simplegeneric             0.8.1                    py36_0    conda-forge
sip                       4.18                     py36_1    conda-forge
six                       1.10.0                   py36_1    conda-forge
sqlalchemy                1.1.13                   py36_0    conda-forge
sqlite                    3.13.0                        0
terminado                 0.6                      py36_0    conda-forge
testpath                  0.3.1                    py36_0    conda-forge
tk                        8.5.18                        0
tornado                   4.5.1                    py36_0    conda-forge
traitlets                 4.3.2                    py36_0    conda-forge
vincent                   0.4.4                    py36_0    conda-forge
wcwidth                   0.1.7                    py36_0    conda-forge
webencodings              0.5                      py36_0    conda-forge
wheel                     0.29.0                   py36_0
xerces-c                  3.1.4                         3    conda-forge
xz                        5.2.3                         0
zeromq                    4.2.1                         1    conda-forge
zlib                      1.2.11                        0

Code that reproduces the issue
# define a bounding box in San Francisco
north, south, east, west = 37.79, 37.78, -122.41, -122.43

# create network from that bounding box
G1 = ox.graph_from_bbox(north, south, east, west, network_type='drive_service')
G1 = ox.project_graph(G1)
fig, ax = ox.plot_graph(G1)

console out:
graph_from_bbox() returning graph with 259 nodes and 514 edges
Created a GeoDataFrame from graph in 0.04 seconds
Projected the GeoDataFrame "unnamed_nodes" to UTM-10 in 0.02 seconds
[I 09:41:44.878 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel ee4dfe44-2313-4e79-b9bf-dff26ca9ea05 restarted

Strange. I don't own a Mac to test this on, but I'm not able to reproduce it on my Linux or Windows machines. I just created a new virtual environment, then installed Jupyter, OSMnx and all dependencies up to their latest versions. Ran your snippet no problem. Can you try this in a new virtual environment?
Lastly, have you seen https://github.com/jupyter/notebook/issues/990

FWIW, Just ran the query and re-projection methods locally (not in a Jupyter notebook) on macOS Sierra 10.12.5, with Py 3.6 and it ran smoothly. Looking at the console logs, I wonder if it failed during the plot operation. I did not run that step from the command line prompt, but am aware that there's some issues with Matplotlib (generally, but also specifically with playing well with macOS).


Improve changelog generation

Add support for commit annotations:

[ ] https://github.com/rerun-io/rerun/pull/2958
[ ] [changelog:link(<commit hash>)] - group together with <commit hash>

Use the above annotations to improve the generated part of the changelog

We have made several improvements to generate_changelog.py. It is now very nice to use it, and the manual work needed to group similar entries in the changelog is, I believe, easier to do at release time than using custom annotations when building PRs.


Integration Test - Release - 2019/02/13 19:05:16

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#backlog'

#pri2

#backlog

#please-close


Is there a way to add multiple collumns?

So i can have something like ..
----title---- (100% width)
-----id --- name --- dob ----
----title2----
-----other stuff ----

I think you are talking about merging cells...
worksheet.getCell('A1').value = 'Title';
worksheet.mergeCells('A1:A3');
worksheet.getCell.('B1').value = 'id';
worksheet.getCell.('B2').value = 'name';
worksheet.getCell.('B3').value = 'dob';
// etc


Data quality assurance checks [rebase]

Pull Request Checklist:

[x] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #65

[x] Tests for the changes have been added (for bug fixes / features)
[x] Documentation has been added / updated (for bug fixes / features)
[x] HISTORY.rst has been updated (with summary of main changes)
[x] bumpversion (major / minor / patch) has been called on this branch
[ ] Tags have been pushed (git push --tags)

What kind of change does this PR introduce?

This PR is a rebase of #268 onto the current master. As of August 2021, this has been fully reimplemented and checks are presenting working.

Does this PR introduce a breaking change?

~The deprecated xclim.core.checks, which was slated to be removed in xclim v0.19.0, has been removed. This will be noted as a breaking change in the version history.~
Several functions that were in xclim.core.cfchecks have been removed. These were not used anywhere in the data checking logic of Indicators.

Other information:

#268

@aulemahal I think I understand the design principles, but how would I go about enabling these checks?

Hum, I was thinking of these checks being standalone. Like the data_flags function being a top level and used before performing any indicator computation?

@huard If you have any ideas on how to implement the final missing data flag (dry periods receive flag = 1 (suspect), if the amount of dry days lies outside a 14·bivariate standard deviation), I'd greatly appreciate the help!

@aulemahal @tlogan2000, This is ready for review, thanks!

Final notes:

I've elected to not return the indexes of for bad data, as there isn't a memory-efficient way of saving this data (no one wants lots of "False flags"). We leave it to the user to investigate why a flag is being raised.
To add the user with (1), docstring examples now show how to gain access to the arrays that raise the flags.
If we don't want to have users needing to poke through the xarray object, they can call data_flags() with raises_flag=True, and they'll get a neat stacktrace summary of issues, e.g.:

E xclim.core.dataflags.DataQualityException: Data quality flags indicate suspicious values. Flags raised are:
E  - Temperatures found in excess of 60 degC
E  - Temperatures found below -90 degC
E  - Mean temperature values found above maximum temperatures
E  - Mean temperature values found below minimum temperatures
E  - Runs of repetitive values for 5 or more days
E  - Values found that are outside of 5 standard deviations from climatology.

After discussion, the following considerations still need to be addressed:

We need to benchmark this with some fairly large datasets to get an idea of performance issues.
We should consider integrating more data flag indices based on the ICCLIM data quality checks (https://www.ecad.eu/documents/atbd.pdf)
We should provide the option of returning the entire boolean array for each flag. This could be made consistent with xarray-like terminology by providing perhaps a dims={"all" | "none" | "time" | "lat" |"lon"| etc} keyword argument for reducing along specifc dimensions (default being all).
We could also provide this checking feature as a CLI utility for quick evaluation (This could/should be in a follow-up PR).

@bzah I'd greatly appreciate your thoughts on this PR, given that we are basing ourselves off of the ICCLIM model. Do you feel as though we are missing something?

Trying the data_flags on a mfdataset (10 yrs * 4 variables * daily) and definitely seeing memory consumption issues. We might need to write these checks to leverage dask by default.

@bzah I'd greatly appreciate your thoughts on this PR, given that we are basing ourselves off of the ICCLIM model. Do you feel as though we are missing something?

I'm happy to help if I can.
However, theses checks are not implemented on icclim v4 (the current release). I suppose they never have been implemented, so any check you add is already better than what icclim does at the moment.
Now that I'm here, I guess you can't do run these checks on each indice computation.
It could be cool if xclim provides a "dry run" on a dataset. It could do all these checks, raise errors/warnings and maybe set a metadata in the dataset likexclim_valid: True or ecad_quality_controlled: True.
Then when computing indices, depending on this flag, xclim could show a warning if the dataset has not been checked or an error if the dataset is invalid.
I have not followed all the discussions so it may not be what you have in mind for the API.

I'm happy to help if I can.

Thanks so much!

However, theses checks are not implemented on icclim v4 (the current release). I suppose they never have been implemented, so any check you add is already better than what icclim does at the moment.

Good to know. Presently, I'm trying to add a few more I found in the ECAD ATBD document. The only one missing for the main variables is (dry periods receive flag = 1 (suspect), if the amount of dry days lies outside a 14·bivariate standard deviation). If you have any idea on how best to implement an indice-like check for this, I'd greatly appreciate it.

Now that I'm here, I guess you can't do run these checks on each indice computation.

The idea behind these checks is to examine the source data before calculation of indices, IE: "garbage in, garbage out".

It could be cool if xclim provides a "dry run" on a dataset. It could do all these checks, raise errors/warnings and maybe set a metadata in the dataset likexclim_valid: True or ecad_quality_controlled: True.

Currently, the implementation returns a xarray object (flagged_ds) that contains "data_vars" for each check. The behaviour is to raise a flag as True if there happens to be an issue. We're thinking of providing the option to resample along dims (e.g. If I just want the lat and lon, dims={"lat", "lon"}, and flatten "time") but presently we return just a dimensionless boolean value with some attrs.
Adding an option to return a single variable for ecad_quality_controlled: bool should be simple to add to the main data_flag function. We would need to add this variable to the Dataset passed to data_flag.

Then when computing indices, depending on this flag, xclim could show a warning if the dataset has not been checked or an error if the dataset is invalid.
I have not followed all the discussions so it may not be what you have in mind for the API.

I've added a raise_flags option which displays some information to the user (I'm thinking of making this a CLI tool for quick checking). If we were to add this to the Indicators checks, it would need to be in another PR and would imply potential breaking changes. It would be nice to have, though. We're still finalizing the API, so this is the time to do it.

@Zeitsperre I don't really understand what 14·bivariate standard deviation means, so I can't help you on that :/

@Zeitsperre Just to be sure, are we confident that all data flags will be boolean?
If so, we could take the aggregation (.any()) out of the individual flags? And thus reduce code duplication a lot for the dims handling! I can do that today.

I can't speak for the future, but IMO the goal of flags to raise awareness of strange patterns/values in the data. We already have means of checking for missing data, and we can't speak to flags regarding info about the data capture process (like trace flags, confidence flags, etc.). We're also trying to be conscious of array sizing (hence the desire to reduce/aggregate dims).
If it were up to me, boolean arrays would be the way forward. @tlogan2000 do you agree?

I can't speak for the future, but IMO the goal of flags to raise awareness of strange patterns/values in the data. We already have means of checking for missing data, and we can't speak to flags regarding info about the data capture process (like trace flags, confidence flags, etc.). We're also trying to be conscious of array sizing (hence the desire to reduce/aggregate dims).
If it were up to me, boolean arrays would be the way forward. @tlogan2000 do you agree?

Since the discussion last week I think a use case for this would be :

@tlogan2000 As this PR is presently written, the behaviour you outline can be very simply added without breaking the API.
@aulemahal If you want to go forward with your idea, by all means. If there's anything I can do to help with this last set of changes, let me know!

@Zeitsperre Here is my proposition!

Move dims to data_flags, i.e. : the functions do not aggregate, data_flags takes care of that.
Add freq : allow special periodic aggregation over coord "time" (i.e resampling).
Add arg flags : allow passing a dict of flags.
Added an example that uses the 3 above.
Modify suspicious_run so that is doesn't aggregate along "time", so it fits the new logic in data_flags.
Make ds optional, I guessed one wouldn't always have a dataset to give.

* Move `dims` to `data_flags`, i.e. : the functions do not aggregate, `data_flags` takes care of that.

Yes. Very faster. Much idiomatic.

* Add `freq` : allow special periodic aggregation over coord "time" (i.e resampling).

Yes.

* Add arg `flags` : allow passing a dict of flags.

Neat. Alright.

* Added an example that uses the 3 above.

:+1:

* Modify `suspicious_run` so that is doesn't aggregate along "time", so it fits the new logic in `data_flags`.

Great. It should follow the same design patterns are all other utilities when it comes to dims.

* Make `ds` optional, I guessed one wouldn't always have a dataset to give.

Yes, that would be useful for quick assertions in scripts. nice addition.

I think it's a great idea to have the checks from the CLI.
I'm currently in a ESIWACE training and there are people interested in netCDF validation but (probably) not that much in climate indices.

@aulemahal I think I've gone as far as I can with this. Would appreciate your keen eye here.
The data_flags function could use some refactoring to pull some handling logic out of the CLI code and I can't seem to get any output file to be written, but the rest seems to be working like a charm.

I'm currently designing the check indice names to be reflective of passed kwargs, IE:
values_of_thresh_repeating_for_or_more_days with n=5, thresh=5 mm d-1 →
values_of_5_mm_d-1_repeating_for_5_or_more_days.
The painfully obvious issue right off the bat is we can't easily access data_vars when they have hyphens in their names. I'm wondering which of the following makes sense:

Create a regex that finds [word]-1 and replaces it with per_[word].
Create a regex that finds [word]-[num] and replaces it with  [word]_minus_[num]
Drop all string segments that look like [word]-[num (e.g. 5 mm d-1 → 5_mm)

What makes the most sense?

I note that this translation function could be useful elsewhere! I suggest we move it to xclim.core.formatting, but in another PR as there would be a need for generalization, more tests and blablabla.

@huard @tlogan2000
Sorry to ping, but I just want to verify whether there are any issues here that jump out at you. I just want to ensure there's time to address them before the v0.30 milestone. Thanks!

@huard @tlogan2000
Sorry to ping, but I just want to verify whether there are any issues here that jump out at you. I just want to ensure there's time to address them before the v0.30 milestone. Thanks!

Will likely have a minute tomorrow to double check all this.. .

I think this is a very solid piece of work.
I'm uncomfortable with disabling the output unit checks, however. Apart from that, all good.

The check_output has been removed. Thanks again for your lengthy review!


Allow advertisement to contain multiple types of data

Per issue #86, implementation as discussed there.

@asharov thanks for the contribution, awesome work!


Rogue Trader Improved rev5 hotfix 3

bug fixing, as reported by user Jason O.
also another attempt at getting the json formatting to look good

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] I have authorization from the game's publisher to make this an official sheet on Roll20 with their name attached.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Character Sheet Info Roll20 Internal Use only.


refactor: common task properties:

add TaskProperties.yml that defines schemas for properties.
in _schemas.yml, define NamedSchemas for the properties so they can be referenced elsewhere.
replace duplicated properties with  to the schemas in TaskProperties.yml
remove cloud TaskCreateRequest, use the common schema
change cloud POST /tasks to use oneOf TaskCreateRequest or TaskWithScriptCreateRequest to define the difference in the schema, not just in the description.
cleanup descriptions.

Docs example for `oneOf'

In request examples, we can do this:

@glinton Please review and let me know if splitting the cloud schema like this will work OK.
Also, if the properties schema works as a pattern.
I don't like having to define each property as a schema individually in _schemas.yml, but that's the only way I could make it work.


cache icons

Hey, first of all, it's a great component.
While debugging ,i've noticed, that every sorting fires a network request  - which some would consider as suboptimal :)
This PR offers one way to tackle this, fetching the svg once on init and inserting it hidden into the dom.

Thanks for pointing this out, it's definitely not ideal to be issuing spurious network requests.
I had thought that by using an SVG sprite for the icons that the sprite would be loaded once then each icon would be fetched from the already loaded sprite. I'll check why this is not the case first as I'd rather avoid adding more code if possible, the svg sprite should be cached by the browser so using native functionality is a cheap easy win.
I'll reply when I've tested it more, thanks.


[APL-2554] Add an agent to monitor the fake intake

What does this PR do?
Deploy a datadog agent as a side car of the fake intake to monitor it.
Which scenarios this will impact?
Motivation
I suspect some test flakiness to be caused by some fake intake instabilities.
Additional Notes
Here is the corresponding dashboard.

/merge


Remove maintainer name from base pptx

Edit to the base pptx file used for creating a new presentation to remove the creator and lastModifiedBy. This doesn't fully resolve the below issue fully however it is a quick resolution for now.

#812

PR-Codex overview
This PR focuses on updating the presentation file located at src/ShapeCrawler/Resources/new-presentation.pptx.
Detailed summary

Updated new-presentation.pptx with new content or design changes (specific details not provided in the diff).

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

LGTM. Tested this end to end. I'd argue this does completely solve the referenced issue as-written. Any more elaborate solution is a new issue, IMO.


two issues

when clicking outside the date picker it does not close. you have to pick a date or click on the picked date. it's annoying.
when changing the value using setState etc. the picked date does not update correspondingly:
this code works. bot when i update greg with setGreg there is no effect on the date picker.
 const [greg, setGreg] = useState(date.greg());

<ReactJewishDatePicker    value={greg}    isHebrew    onClick={(day) => {      handleDatePicker(day);    }} />

Fixed in version 1.0.19


Sprite boss can push players around when in creative, should ignore

its dark but you can see bouncing around .
maybe targeting is fine but it should not have knockback
https://clips.twitch.tv/FragileTangibleLocustPastaThat

Fixed in latest release https://minecraft.curseforge.com/projects/emberroot-zoo/files/2488769


Pass read-only flag to peeked slice in IO::Memory

Prevents potential segfaults or other unintended states caused by ignoring the read-protection of the inherited buffer in IO::Memory.
Reported by a user in Discord who was trying to re-use the buffer prior to pos as they were processing data from peek/read. Unsure how common this kind of scenario is (specifically with ROM), but this seems like a sensible change for safety's sake.
Unsure of the best way to organize the spec. Please feel free to move or change it.

Thank you @z64


feat: simple coo

Summary
Adding Simple COO template into the configuration files
Changes

Included Simple COO template into forms folder
Added the template into forms V2
Update the configuration files using the generator

Issues
https://www.pivotaltracker.com/story/show/179932523

can review https://github.com/TradeTrust/document-creator-website/pull/202? so no need to manually import the forms

thanks, merged 202. rebase this pr yeah?


Deploy the site

so I did not understand how to deploy the site

All HashBrown does is deploy the content through Git (remote), an API (remote) or its own filesystem (local). Your site on the server (remote or local) then presents the content to the world however you like. The content can be in JSON or Jekyll format as of right now.
If you want to add your own format, like XML for instance, you can take a look at how the "json" plugin does it: https://github.com/HashBrownCMS/hashbrown-cms/tree/master/plugins


Adds in the ability to specify 'use_cached' in the pgbouncer config.

During our use of the datadog pgbouncer check, we found an issue where the agent would fail to reconnect to a recovered pgbouncer process.  We simulated this by starting our pgbouncer and datadog-agent processes, and then subsequently stopping pgbouncer, waiting a few minutes, and restarting pgbouncer.
The agent would correctly alert us that pgbouncer was down, but upon recovery, the agent would continue to be in an error state.  We would have to restart the agent to get it reporting "healthy" again. We have reason to believe this is due to the caching of the underlying Postgres connection.
We simulated this again with the change in this PR and the agent behaved as expected.
Please let us know if there's additional testing coverage or simulations we can provide.
Cheers!
What does this PR do?
This enables users to configure whether or not they want to used cached connections to check pgbouncer.
Motivation
As mentioned above, we were evaluating this check in our development environment and we observed that when a pgbouncer process stopped, and restarted again, the datadog agent would continually think it was in an error state.  We have reason to believe it is due to caching the connection object and attempting to call functions on it after it has been closed.
Review checklist

[ ] PR has a meaningful title or PR has the no-changelog label attached
[ ] Feature or bugfix has tests
[ ] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
I'm more than open to explore other possibilities too, like catching a different exception or finding out why ShouldRestartException isn't being thrown in this instance.

We've been running this fork of the core-integrations over night and we've observed the following:

No additional connections seem to be active when viewing SHOW CLIENTS; on the pgbouncer database
No visibile memory footprint from trying to create a new connection each time with each check
Monitor continues to be green, even after stopping and restarting the pgbouncer check, and does not require an agent restart after it gets into an error state.

Let us know any more context or perfomance data you may need when reviewing this PR :)
Thanks!

@ofek Thanks for the feedback!  Let me know if you think I need to address anything else!  Thanks!

LGTM. Also, congratulations on getting PR number 2000 😉


hypnotoad reload needs to wait synchronously in order to work properly with systemd

Mojolicious version: perl-Mojolicious-6.31-2.el7
Perl version: perl-5.16.3-286.el7
Operating system: CentOS 7.2

Steps to reproduce the behavior
See full explanation here: https://stackoverflow.com/questions/11141068/how-to-reload-the-mojolicious-built-in-webserver-daemon/46080842#46080842
Follow the cookbook docs to manage hypnotoad with systemd, http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Hypnotoad
Execute the following:
root$ systemctl start hypnotoad-app
root$ systemctl reload hypnotoad-app
Expected behavior
systemd ExecReload=hypnotoad myapp.pl should wait synchronously before returning. We don't want to loose the asynchronous reload functionality, so we probably want to add a flag to hypnotoad that is usable for systemd, like the following ExecReload=hypnotoad --reload-wait myapp.pl
Expected behavior, hypnotoad myapp.pl (reload) does not return to systemd until the new PID is in the PIDFile that systemd monitors for the process.
The stackoverflow answer in the above link provides a bash script wrapper to produce a synchronous reload for systemd.
Actual behavior
systemd expects ExecReload=hypnotoad myapp.pl to be synchronous - that is to not return until the process has completely reloaded and changed PID.
The systemctl call to the ExecReload= command to reload hypnotoad-app returns immediately, and systemd monitors the PIDFile= thinking the reload is finished completely.
But because either the PID in PIDFile= changes, or because PIDFile is deleted and recreated, systemd thinks that hypnotoad server stopped, and the result is that systemd schedules a restart to hypnotoad-app. The hypnotoad-app ends up getting reloaded by hypnotoad, and then hypnotoad gets restarted by systemd.
The logs show this activity (systemd unit has configured RestartSec=5):
systemd: hypnotoad-app: Starting hot deployment for Hypnotoad server 29344.
systemd: Reloaded hypnotoad-app.
hypnotoad: Starting zero downtime software upgrade
hypnotoad: Listening at "http://<IP_ADDRESS>:4321"
hypnotoad: Manager 30065 started
systemd: hypnotoad-app: Server available at http://<IP_ADDRESS>:4321
hypnotoad: Upgrade successful, stopping 29344
systemd: hypnotoad-app: Hypnotoad server not running.
hypnotoad: Creating process id file "/var/run/hypnotoad-app.pid"
systemd: hypnotoad-app.service holdoff time over, scheduling restart.
systemd: Started hypnotoad-app.
systemd: Starting hypnotoad-app...
hypnotoad: Listening at "http://<IP_ADDRESS>:4321"
hypnotoad: Manager 30134 started
systemd: hypnotoad-app: Server available at http://<IP_ADDRESS>:4321
hypnotoad: Creating process id file "/var/run/hypnotoad-app.pid"

This has already been fixed in 7.01. (https://github.com/kraih/mojo/commit/25471294ef714e2116dd2bbe98de4893285c1121)

Closing this as it's obsolete.


[Idea] Integrate "WAR - WebOS Ad Removal" into the homebrew channel

Repo:
https://github.com/bashalarmist/war-webos-ad-remover
This would be ideal as a toggle, to enable/disable the script's execution on boot.

I wouldn't suggest integrating this to the homebrew channel.
My idea is to just add an uninstall button in the homebrew channel for hidden/non-frontend apps/scripts.
Or perhaps even a non packaged format to easily support scripts only.
https://github.com/webosbrew/webos-homebrew-channel/issues/101


Update Azure SDK Libraries in Kanister

Change Overview
As per Azure guidelines, few modules from azure library are retiring support from 31 March 2023 . Due to which there is need to replace such modules with azure recommended azure-go-sdk modules.

go-autorest being used in the blockstorage package will be out of support from March 2023. Follow the documentation below to replace it with a new supported package.
https://azure.microsoft.com/en-us/updates/support-for-azure-sdk-libraries-that-do-not-conform-to-our-current-azure-sdk-guidelines-will-be-retired-as-of-31-march-2023/
Pull request type
Please check the type of change your PR introduces:

[ ] :construction: Work in Progress
[x] :rainbow: Refactoring (no functional changes, no api changes)
[ ] :hamster: Trivial/Minor
[ ] :bug: Bugfix
[ ] :sunflower: Feature
[ ] :world_map: Documentation
[x] :robot: Test

Issues

fixes #1568

Test Plan

[ ] :muscle: Manual
[x] :zap: Unit test
[ ] :green_heart: E2E

moving to https://github.com/kanisterio/kanister/pull/2368


Fix intoto statement marshal/unmarshal

This pull request addresses a bug in the JSON marshaling of the in-toto statement in verification results. It currently outputs "predicate_type" instead of "predicateType" required by the spec.
The issue is related to in-toto/attestation#363, this applies the fix mentioned there, defining custom marshaler/unmarshaler on the VerificationResult struct and selectively marshaling/unmarshaling the statement using google.golang.org/protobuf/encoding/protojson

For clarity, here is a diff of the output from the example command:
go run cmd/sigstore-go/main.go \
  -artifact-digest 76176ffa33808b54602c7c35de5c6e9a4deb96066dba6533f50ac234f4f1f4c6b3527515dc17c06fbe2860030f410eee69ea20079bd3a2c6f3dcf3b329b10751 \
  -artifact-digest-algorithm sha512 \
  -expectedIssuer https://token.actions.githubusercontent.com \
  -expectedSAN https://github.com/sigstore/sigstore-js/.github/workflows/release.yml@refs/heads/main \
  examples/bundle-provenance.json

diff before.json after.json
4c4
<       "type": "https://in-toto.io/Statement/v0.1",
---
>       "_type": "https://in-toto.io/Statement/v0.1",
13c13
<       "predicate_type": "https://slsa.dev/provenance/v0.2",
---
>       "predicateType": "https://slsa.dev/provenance/v0.2",

Hrm! Thanks for this. Can we get this fixed in intoto-go, I wonder?

Oof, protojson is a pain... I don't think it can be easily fixed upstream due to how the protobuf types are compiled. One thing we can do that could simplify this though: What if we wrap VerificationResult.Statement in a custom type that has Unmarshall/Marshall methods, e.g.:
type Statement struct{
	in_toto.Statement
}

func (s *Statement) MarshalJSON() ([]byte, error) {
	return protojson.Marshal(s.Statement)
}

func (b *Statement) UnmarshalJSON(data []byte) error {
...
}

type VerificationResult struct {
	MediaType          string                        `json:"mediaType"`
	Statement          *Statement            `json:"statement,omitempty"`
...

That would simplify the code here a bit.
Could you also add tests?
Thanks!

@codysoyland I started off by wrapping it but that makes it a breaking change and involves updating types all over.
I'll add some tests tomorrow or over the weekend.

What @codysoyland proppses makes a lot of sense, I like that idea.

Thank you @gillisandrew! I like this better, but before merging, I'd like to see if the in_toto maintainers would be open to adding these marshal/unmarshal methods in the upstream. Otherwise this will continue to bite other folks...
It looks like https://github.com/in-toto/attestation/issues/363 was closed erroneously... perhaps one of us can add those methods in a PR to this file? I think that would be ideal and I bet they would accept it.

@codysoyland Sounds good. I'll open one there and see what they say.

I created an issue to track this: https://github.com/sigstore/sigstore-go/issues/365

Closed in favor of https://github.com/sigstore/sigstore-go/pull/366 (which includes parts of this). Thanks @gillisandrew!


Allow initial System.Text.Json.JsonSerializerOptions to be a copy

Resolves #3206

@CptWesley Got it, looks fine when the build goes green. This will be in 7.13. I don't have any set time for that offhand

The failing test seems flaky, it passes locally most of the time, but fails occasionally. Not sure if that was a known issue.

Known aggravation. Only fails on CI, and very rarely outside of that one specific combo in the CI matrix


Why inline css????

It's horrible headache to adjust/customize anything if you just want to use pure html version. I really can't understand why is there so much inline CSS?
for example, making array with tabs, the selected one get "opacity: 1; background: white;" ... wondering whyyyy..????
and many more examples
And at the same time, lack  of classes in the elements so it's always hard to catch something to aply custom style...

Wou... seems like there is a method 3-4 same methods.. i don't see it apply "active"  class to a tab
markTabActive: function(tab) {
tab.className += ' active';
},


add an endpoint for sending statistics (when enabled)

closes #4860
This endpoint aims to simplify experiments and, when enabled, collect statistics about feature usage in their very first steps. even before a new API that provides a capability is defined.

closes #4860
This endpoint aims to simplify experiments and, when enabled, collect statistics about feature usage in their very first steps. even before a new API that provides a capability is defined.

The original issue with include implementation detail (path) should be updated too.

FYI @NoyDavidson2, we are adding a direct way to send statistics to allow experimenting with features at their very first stages. This means that we see new event classes and names internally.  I'll follow up with you on the first use we are planning for it


TypeScript types for DropTargetHookSpec doesn't pass generic parameters to DropTargetMonitor

Describe the bug
In a TypeScript use case like useDrop<A, B, C>({ drop(item, monitor) { } }), I would expect to see item: A and monitor: DropTargetMonitor<A, B>. Instead I see item: A and monitor: DropTargetMonitor<unknown, unknown>. This is because DropTargetHookSpec doesn't pass along these generic type parameters, so they default to unknown:
https://github.com/react-dnd/react-dnd/blob/e8bd6436548d96f6d6594f763752f424c2e0834b/packages/react-dnd/src/hooks/types.ts#L114-L116
Furthermore, the DropTargetMonitor type is not exported, so working around this issue is difficult. It is possible to work around by passing the type to getDropResult, e.g. monitor.getDropResult<"B">(). But this is inherently less type safe, because the compiler doesn't enforce that this type matches the type passed to the useDrop function.
For comparison, the types for useDrag do correctly pass these generic parameters along to the monitor type: https://github.com/react-dnd/react-dnd/blob/e8bd6436548d96f6d6594f763752f424c2e0834b/packages/react-dnd/src/hooks/types.ts#L55-L57
Reproduction
Live Reproduction
View the type error in App.tsx.
Screenshots

I noticed this problem es well while upgrading from v11 to v14.
I think the better workaround is to type the monitor argument explicitly to receive the result that should be inferred:
drop: (_, monitor: DropTargetMonitor<DragItem, DropResult>) => ({
     // typing for monitor works as expected
}),


Add Bishkek Technical College

Institution/School Name
Bishkek Technical College
Instiution/School Website
Official website
List of all long-term college IT courses
Computer hardware and automated systems software (3 years)
Maintenance of computer equipment and computer networks (3 years)
Email Users
Please place an x between the square brackets if yes

[x] Students
[X] Academic/Teaching Staff
[ ] Other/Support Staff
[ ] Alumni

Education Levels
Please place an x between the square brackets if yes

[ ] Post-graduate research
[ ] Graduate School
[X] College (University) or Undergraduate School or equivalent
[X] Community College or equivalent
[ ] High School or equivalent
[ ] Elementary School or equivalent

@WayupKG First stage of verification passed, official domain is btk.kg as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.


Multiple Plex auth windows are opened in firefox

Using the latest docker image and the firefox browser, clicking the plex sign in button ('click me') opens 2 plex auth windows immediately, which firefox blocks as a popup. This does not appear to occur in chrome.
Edit: looks like there is possibly a branch with a fix?

Update:
The following command works when proxied through nginx with the additional fixes for socket.io and for some reason is unaffected by this double plex auth bug:
sudo docker run --restart=unless-stopped --name=synclounge -p 8088:8088 -p 8089:8089 -e webroot=/slweb -e DOMAIN=sync.domain.com-e 'servers=[{"name": "Hosted server for my users","location": "Join 'public' (no password), or create one of your own!","url": "https://sync.domain.com/slserver","image": "https://sync.domain.com/slweb/synclounge-white.png"}]' starbix/synclounge
The problem is that invites do not work. Invites come out as http://sync.domain.com/invite/2sod0 instead of https://sync.domain.com/slweb/invite/2sod0 which actually works. It is impossible to add the necessary value (-e accessurl=https://sync.DOMAIN.COM/slweb) without breaking the command.
Any way to fix that?

I will close this issue since I was able to mitigate my problems, but just be aware these might happen.


Ansible problem with dnf

Hi Warren,
Tried to install the full lot after the GitHub clone. Works nicely until ansible complains about dnf as the package manager. Is there a setting that I missed to enable dnf ?
[...]
==> joserver: Machine booted and ready!
==> joserver: Checking for guest additions in VM...
==> joserver: Setting hostname...
==> joserver: Configuring and enabling network interfaces...
==> joserver: Mounting shared folders...
joserver: /vagrant => /Users/joachim/Documents/ForgeRock/01_Tech/08_frstack/frstack/vagrant
==> joserver: Running provisioner: ansible...
PYTHONUNBUFFERED=1 ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_FORCE_COLOR=true ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --user=vagrant --connection=ssh --timeout=30 --limit='joserver' --inventory-file=/Users/joachim/Documents/ForgeRock/01_Tech/08_frstack/frstack/vagrant/.vagrant/provisioners/ansible/inventory --sudo -v ../ansible/frstack.yml
ERROR: dnf is not a legal parameter in an Ansible task or handler
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Thanks,
Joachim

Hi Joachim
Fedora is switching from yum to dnf - and the current Ansible package manager has issues dealing with both. I thought I worked around this by using a dnf package. but I think I need to revisit the install to work around this issue until Ansible gets a new package module.
You might try to  s/snf/yum/  and see if that gets around it
I'll keep this open until we get a fix

Hi Warren,
It was an ansible version mismatch. On the Mac, "brew install ansible" installed me version 1.8.4; install with pip gives me 1.9.4 where I don't see this issue. For dnf, it needs minimum 1.9 according to ansible forums. A note in the install instructions should be sufficient wrt version.  Please close the ticket.
Thanks,
Joachim

Hi Warren / Jogre,
I am also facing the same issue with Ansible 1.9.4 using one of the Openstack cloud-image for centos7.
Probably because of the image. Will need to dig further.
Thanks,
Arun

Hi Arun
The problem here is that Ansible's 1.9.x support for Fedora / Centos packages is somewhat broken.
Fedora is in the process of switching to DNF. The current Vagrant image used Fedora / DNF - so it should work on that combination.
Centos is still on rpm - but I gather they are also moving to DNF as well.
Ansible 2.x is supposed to solve this by having a package manager that works on both DNF and rpm.
I am just waiting for 2.x to ship to convert the project - which should solve this issue for good
Until then I think you will have to edit the .yaml files and install packages via yum (or alternatively - move to a Fedora image..)

Updated to Fedora 23 / Ansible 2.0
Now works


app: user_function needs to over-ride repr and str methods

Using str() on a cogent3.app.composable.user_function just displays user_function(type='function') which is not very useful. In contrast, for example, min_length(type='sequences', length=1000, motif_length=1, subtract_degen=True, moltype=None) shows argument values etc..
The over-ridden methods should include the name of the user defined function, at the least.

Suggest just having name attribute and a "provenance" value, which indicates the object provenance (cogent3.util.misc.get_object_provenance).

just write another test method where user_function is being tested.

fixed in #244


Error: Invalid formula: /usr/local/Library/Taps/ska-sa/homebrew-tap/wcslib-old.rb No available formula with the name "wcslib-old"  In formula file: /usr/local/Library/Taps/ska-sa/homebrew-tap/wcslib-old.rb Expected to find class WcslibOld, but only found: Wcslib. Error: Cannot tap ska-sa/tap: invalid syntax in tap!

Please follow the general troubleshooting steps first:

[x] Ran brew update and retried your prior step?
[x] Ran brew doctor, fixed as many issues as possible and retried your prior step?
[ ] If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

You can erase any parts of this template not applicable to your Issue.
Bug reports:
Please replace this line with a brief summary of your issue.
Propose a feature:
Instead of creating an issue here, please create a pull request with your change proposal in the Homebrew Evolution repository using the proposal template.

Please report this to https://github.com/ska-sa/homebrew-tap/issues, thanks!


pin send error

I get the following error when sending pin but I couldn't find the solution
Fatal error: Uncaught DirkGroenenPinterestExceptionsPinterestException: Pinterest error (code: 400)
vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php on line 246

Hi, it's bad request error. Can you post params of pin you are trying to send ?

Notice: Undefined variable: pinid in /var/www/vhosts/domain.com/domain.domain.com/curls.php on line 182
Notice: Undefined variable: pin in /var/www/vhosts/domain.com/domain.domain.com/curls.php on line 188
Notice: Undefined variable: pin in /var/www/vhosts/domain.com/domain.domain.com/curls.php on line 189
Notice: Undefined variable: pin in /var/www/vhosts/domain.com/domain.domain.com/curls.php on line 189
Fatal error: Uncaught DirkGroenen\Pinterest\Exceptions\PinterestException: Pinterest error (code: 400) with message: You need to upload an image or provide the 'image_url' parameter in /var/www/vhosts/domain.com/domain.domain.com/pinte/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php:246 Stack trace: #0 /var/www/vhosts/domain.com/domain.domain.com/pinte/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php(98): DirkGroenen\Pinterest\Transport\Request->execute('POST', 'https://api.pin...', Array) #1 /var/www/vhosts/domain.com/domain.domain.com/pinte/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Endpoints/Pins.php(66): DirkGroenen\Pinterest\Transport\Request->post('pins/?fields=id...', Array) #2 /var/www/vhosts/domain.com/domain.domain.com/curls.php(190): DirkGroenen\Pinterest\Endpoints\Pins->create(Array) #3 {main} thrown in /var/www/vhosts/domain.com/domain.domain.com/pinte/vendor/dirkgroenen/pinterest-api-php/src/Pinterest/Transport/Request.php on line 246

You have this error: You need to upload an image or provide the 'image_url' parameter. Are you sending image url on pin creation params ?

Yes, it sends this error on newly launched sites.

This is a Pinterest error, most likely not caused by the package but rather your implementation.
Please share more of your code so we can either reproduce it, or spot the issue.


Fix sample code

Sample code in the tutorial doesn't work.

The data source should be ./sample_data/train_data.csv.
The pdf('Rplots.pdf') was missing.

Thank you for your pull request! Before I can merge it, you will need to sign the Contributor License Agreement found here: https://cla.developers.google.com .
Thank you very much again.

Signed. Thank you. :-)


Password Resets migration is missing

Describe the bug
Migration for table password_resets is missing in the standard pack of the platform. This leads to Error 500 on password reset action.
Steps to reproduce

Open platform application the browser
On login screen click "Forgot your password?"
Enter email of an existing user and click "Send Password Reset Link" button

Expected behavior
System should show a successful screen and send email with password reset instructions to the user
Actual behavior
System shows Error 500:
Illuminate\Database\QueryException
SQLSTATE[HY000]: General error: 1 no such table: password_resets (SQL: select * from "password_resets" where "email" =<EMAIL_ADDRESS>limit 1)

Hi, this migration comes with the installation of the framework:
https://github.com/laravel/laravel/
At some point, he was removed, and then returned again.
Only users who have installed applications in the past may encounter this.

Yeah, looks like I was unlucky to setup it between Dec 2019 and May 2020.
Thanks!


Support custom command line args and environment variables for test action

Related to #906.

@brentleyjones It appears this test failure is a segmentation fault. I am unable to reproduce locally. Could you try rerunning this test in CI?

Still crashes from a clean workspace.

OK. I will investigate.

For future me, the segmentation fault appears to have been related to something in the remote cache causing the test runner to seg fault. We bumped the cache_bust value to force a rebuild and update the cache.


triggerpipeline: VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed

Hi Maik,
we are getting an error when using 'Trigger Azure DevOps Pipeline' with Release-Pipeline:

2020-11-30T12:48:45.9349713Z ##[section]Starting: Trigger Azure DevOps Pipeline: Release
2020-11-30T12:48:45.9471140Z ==============================================================================
2020-11-30T12:48:45.9471599Z Task         : Trigger Azure DevOps Pipeline
2020-11-30T12:48:45.9472012Z Description  : Build and Release Management task to trigger a Azure DevOps release or build pipeline.
2020-11-30T12:48:45.9472350Z Version      : 1.1.10
2020-11-30T12:48:45.9472602Z Author       : Maik van der Gaag
2020-11-30T12:48:45.9472842Z Help         :
2020-11-30T12:48:45.9473139Z ==============================================================================
2020-11-30T12:48:47.0925224Z ******************************
2020-11-30T12:48:47.1008638Z ** Service Connection: xxxxx
2020-11-30T12:48:47.1009401Z ** Release Url: https://vsrm.dev.azure.com/xxxxx
2020-11-30T12:48:47.1010132Z ** Organization Url: https://dev.azure.com/xxxx
2020-11-30T12:48:47.1013185Z ** Token: ***
2020-11-30T12:48:47.1013831Z ** Project name: xxxxxx
2020-11-30T12:48:47.1014234Z ** Pipeline: Release
2020-11-30T12:48:47.1014639Z ** Build pipeline:
2020-11-30T12:48:47.1015004Z ** Release pipeline: chatbot
2020-11-30T12:48:47.1015330Z ** Description:
2020-11-30T12:48:47.1015640Z ** Branch:
2020-11-30T12:48:47.1015927Z ** BuildNumber:
2020-11-30T12:48:47.1016312Z ** Stages: dev
2020-11-30T12:48:47.1016646Z ******************************
2020-11-30T12:48:48.2561067Z ##[error]VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed.
2020-11-30T12:48:48.2886502Z ##[section]Finishing: Trigger Azure DevOps Pipeline: Release

Actuall I think it might be releated to:
https://github.com/maikvandergaag/msft-extensions/blob/0f1179c68286625b9cf9e8cc7f375645f8310e72/azuredevops/triggerpipeline/triggerpipeline/run-release.ps1#L83
Would be great if you could have a look.
Best regards
Björn

Hi Bjorn, This is because the pipeline you are trying to trigger is already running.

Hi Maik,
this should not be the case. Please have a look at the following log timestamps and the target release pipeline deployments (screenhot). Last recent deployment was several hours ago.

2020-11-30T15:02:23.2196882Z ##[section]Starting: Trigger Azure DevOps Pipeline: Release
2020-11-30T15:02:23.2397782Z ==============================================================================
2020-11-30T15:02:23.2398327Z Task         : Trigger Azure DevOps Pipeline
2020-11-30T15:02:23.2398852Z Description  : Build and Release Management task to trigger a Azure DevOps release or build pipeline.
2020-11-30T15:02:23.2399474Z Version      : 1.1.10
2020-11-30T15:02:23.2399832Z Author       : Maik van der Gaag
2020-11-30T15:02:23.2400157Z Help         :
2020-11-30T15:02:23.2400553Z ==============================================================================
2020-11-30T15:02:25.1648718Z ******************************
2020-11-30T15:02:25.1653379Z ** Service Connection: 9628c8c4-0a32-45dc-8b7d-82bbd4682517
2020-11-30T15:02:25.1659830Z ** Release Url: https://vsrm.dev.azure.com/xxx
2020-11-30T15:02:25.1666705Z ** Organization Url: https://dev.azure.com/xxx
2020-11-30T15:02:25.1674352Z ** Token: ***
2020-11-30T15:02:25.1679462Z ** Project name: xxx
2020-11-30T15:02:25.1686293Z ** Pipeline: Release
2020-11-30T15:02:25.1692604Z ** Build pipeline:
2020-11-30T15:02:25.1698648Z ** Release pipeline: chatbot
2020-11-30T15:02:25.1705161Z ** Description:
2020-11-30T15:02:25.1711146Z ** Branch:
2020-11-30T15:02:25.1717537Z ** BuildNumber:
2020-11-30T15:02:25.1724167Z ** Stages: dev
2020-11-30T15:02:25.1729568Z ******************************
2020-11-30T15:02:26.6945240Z ##[error]VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed.
2020-11-30T15:02:26.7337493Z ##[section]Finishing: Trigger Azure DevOps Pipeline: Release

Best regards
Björn

Hi Bjorn,
The error message tells us that the stage at the time of trigger is already queued for a build or release. Meaning that is can not set it to in progress.
Could you add the system.debug variable with the value true to the pipeline and send me the log.

Hi Maik,
may it be possible that the first call is already starting the deployment?
https://github.com/maikvandergaag/msft-extensions/blob/0f1179c68286625b9cf9e8cc7f375645f8310e72/azuredevops/triggerpipeline/triggerpipeline/run-release.ps1#L69
Log with system.debug

2020-11-30T16:12:53.6737337Z ##[debug]Evaluating condition for step: 'Trigger Azure DevOps Pipeline: Release'
2020-11-30T16:12:53.6739407Z ##[debug]Evaluating: succeeded()
2020-11-30T16:12:53.6740003Z ##[debug]Evaluating succeeded:
2020-11-30T16:12:53.6741742Z ##[debug]=> True
2020-11-30T16:12:53.6742382Z ##[debug]Result: True
2020-11-30T16:12:53.6743019Z ##[section]Starting: Trigger Azure DevOps Pipeline: Release
2020-11-30T16:12:53.6875628Z ==============================================================================
2020-11-30T16:12:53.6876272Z Task         : Trigger Azure DevOps Pipeline
2020-11-30T16:12:53.6876938Z Description  : Build and Release Management task to trigger a Azure DevOps release or build pipeline.
2020-11-30T16:12:53.6877529Z Version      : 1.1.10
2020-11-30T16:12:53.6877934Z Author       : Maik van der Gaag
2020-11-30T16:12:53.6878339Z Help         :
2020-11-30T16:12:53.6878829Z ==============================================================================
2020-11-30T16:12:54.7559335Z ##[debug]VstsTaskSdk 0.10.0 commit 787a46ec0a2df5b4d12c2e801bd3f319975c054c
2020-11-30T16:12:54.9562652Z ##[debug]Entering D:\a_tasks\TriggerPipeline_05485ce0-4948-481c-a89f-f21fa2fe9a74\1.1.10\run.ps1.
2020-11-30T16:12:54.9939510Z ##[debug]INPUT_CONNECTEDSERVICENAME: '9628c8c4-0a32-45dc-8b7d-xxxxxx'
2020-11-30T16:12:55.0053753Z ##[debug]ENDPOINT_URL_9628c8c4-0a32-45dc-8b7d-xxxxxx: 'https://dev.azure.com/xxx'
2020-11-30T16:12:55.0148337Z ##[debug]ENDPOINT_AUTH_9628c8c4-0a32-45dc-8b7d-xxxxxx: '********'
2020-11-30T16:12:55.0167609Z ##[debug]ENDPOINT_DATA_9628c8c4-0a32-45dc-8b7d-xxxxxx: '{"releaseUrl":"https://vsrm.dev.azure.com/xxx"}'
2020-11-30T16:12:55.0286585Z ##[debug]INPUT_PROJECT: '07868441-2d65-4059-a97a-6b9050309297'
2020-11-30T16:12:55.0310728Z ##[debug]INPUT_BUILDDEFINITION (empty)
2020-11-30T16:12:55.0403088Z ##[debug]INPUT_RELEASEDEFINITION: 'chatbot'
2020-11-30T16:12:55.0404215Z ##[debug]INPUT_PIPELINE: 'Release'
2020-11-30T16:12:55.0412709Z ##[debug]INPUT_DESCRIPTION (empty)
2020-11-30T16:12:55.0436881Z ##[debug]INPUT_BRANCH (empty)
2020-11-30T16:12:55.0460169Z ##[debug]INPUT_BUILDNUMBER (empty)
2020-11-30T16:12:55.0488300Z ##[debug]INPUT_STAGES: 'dev'
2020-11-30T16:12:55.0494627Z ******************************
2020-11-30T16:12:55.0500793Z ** Service Connection: 9628c8c4-0a32-45dc-8b7d-xxxxxx
2020-11-30T16:12:55.0506850Z ** Release Url: https://vsrm.dev.azure.com/xxx
2020-11-30T16:12:55.0512949Z ** Organization Url: https://dev.azure.com/xxx
2020-11-30T16:12:55.0519964Z ** Token: ***
2020-11-30T16:12:55.0525005Z ** Project name: 07868441-2d65-4059-a97a-6b9050309297
2020-11-30T16:12:55.0531384Z ** Pipeline: Release
2020-11-30T16:12:55.0537416Z ** Build pipeline:
2020-11-30T16:12:55.0543452Z ** Release pipeline: chatbot
2020-11-30T16:12:55.0549422Z ** Description:
2020-11-30T16:12:55.0555259Z ** Branch:
2020-11-30T16:12:55.0561216Z ** BuildNumber:
2020-11-30T16:12:55.0567138Z ** Stages: dev
2020-11-30T16:12:55.0572939Z ******************************
2020-11-30T16:12:55.3035697Z ##[debug]GET https://vsrm.dev.azure.com/xxx/07868441-2d65-4059-a97a-6b9050309297/_apis/release/definitions?searchText=chatbot&$expand=environments&isExactNameMatch=true with 0-byte payload
2020-11-30T16:12:55.3728257Z ##[debug]received 5606-byte response of content type application/json; charset=utf-8; api-version=6.0
2020-11-30T16:12:55.4655652Z ##[debug]GET https://vsrm.dev.azure.com/xxx/07868441-2d65-4059-a97a-6b9050309297/_apis/Release/definitions/2 with 0-byte payload
2020-11-30T16:12:55.5165856Z ##[debug]received 25119-byte response of content type application/json; charset=utf-8; api-version=6.0
2020-11-30T16:12:55.6596067Z ##[debug]POST https://vsrm.dev.azure.com/xxx/07868441-2d65-4059-a97a-6b9050309297/_apis/release/releases?api-version=5.0-preview.8 with -1-byte payload
2020-11-30T16:12:55.8807805Z ##[debug]received 28832-byte response of content type application/json; charset=utf-8; api-version=5.0-preview.8
2020-11-30T16:12:55.8982243Z ##[debug]PATCH https://vsrm.dev.azure.com/xxx/07868441-2d65-4059-a97a-6b9050309297/_apis/release/releases/59/environments/178?api-version=6.1-preview.7 with -1-byte payload
2020-11-30T16:12:56.1821467Z ##[debug]Leaving D:\a_tasks\TriggerPipeline_05485ce0-4948-481c-a89f-f21fa2fe9a74\1.1.10\run.ps1.
2020-11-30T16:12:56.2698307Z ##[debug]Caught exception from task script.
2020-11-30T16:12:56.2738580Z ##[debug]Error record:
2020-11-30T16:12:56.3266895Z ##[debug]D:\a_tasks\TriggerPipeline_05485ce0-4948-481c-a89f-f21fa2fe9a74\1.1.10\run-release.ps1 : VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed.
2020-11-30T16:12:56.3278440Z ##[debug]At D:\a_tasks\TriggerPipeline_05485ce0-4948-481c-a89f-f21fa2fe9a74\1.1.10\run.ps1:46 char:3
2020-11-30T16:12:56.3293100Z ##[debug]+         .\run-release.ps1 -OrganizationUrl $organizationUrl -ReleaseU ...
2020-11-30T16:12:56.3307407Z ##[debug]+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-11-30T16:12:56.3319064Z ##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
2020-11-30T16:12:56.3330534Z ##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,run-release.ps1
2020-11-30T16:12:56.3341815Z ##[debug]
2020-11-30T16:12:56.3360914Z ##[debug]Script stack trace:
2020-11-30T16:12:56.3952460Z ##[debug]at , D:\a_tasks\TriggerPipeline_05485ce0-4948-481c-a89f-f21fa2fe9a74\1.1.10\run-release.ps1: line 107
2020-11-30T16:12:56.3953923Z ##[debug]at , D:\a_tasks\TriggerPipeline_05485ce0-4948-481c-a89f-f21fa2fe9a74\1.1.10\run.ps1: line 46
2020-11-30T16:12:56.3964824Z ##[debug]at , : line 1
2020-11-30T16:12:56.3975241Z ##[debug]at , : line 22
2020-11-30T16:12:56.3985560Z ##[debug]at , : line 18
2020-11-30T16:12:56.4003852Z ##[debug]at , : line 1
2020-11-30T16:12:56.4009493Z ##[debug]Exception:
2020-11-30T16:12:56.4088473Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed.
2020-11-30T16:12:56.4340823Z ##[error]VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed.
2020-11-30T16:12:56.4351237Z ##[debug]Processed: ##vso[task.logissue type=error]VS402964: Transitioning of stage from state 'Queued' to state 'InProgress' is not allowed.
2020-11-30T16:12:56.4360212Z ##[debug]Processed: ##vso[task.complete result=Failed]
2020-11-30T16:12:56.4824948Z ##[section]Finishing: Trigger Azure DevOps Pipeline: Release

Best regards
Björn

It is availible for manual triggering stages

Experiencing this same error. Confirmed pipeline is not running or being triggered by anything else. The interesting thing is that the task is triggering the release pipeline, but it is then failing saying it is running after it already started it


Fix setup unable to find README.md if it runs from another directory

Sorry @zurk - I missed this and fixed the problem independently :-1:


Fitting via AD for integral-based models

Zygote pretty much "just worked" on the non-integral models (once I figured out the syntax), so the fitting is using that now. However, it seems to stumble on QuadGK for the integral ones. Would be cool (and probably way faster) to do the fitting with gradients from Zygote rather than BlackBoxOptim...

For anyone following, the branch dg/ad has the integral models working

Close


Issue syncing with CalDAV

On Errands 46.2.6 on Arch Linux. Trying to sync with a locally running CalDAV server which in turn syncs with EteSync. The connection test is successful but this is what I get when it's actually syncing.
Could you please guide me on how to troubleshoot?
[INFO] Sync: Sync tasks with remote
Exception in thread Thread-1 (sync):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/errands/errands/lib/sync/sync.py", line 53, in sync
    self.provider.sync()
  File "/usr/share/errands/errands/lib/sync/providers/caldav.py", line 215, in sync
    self.__sync_lists()
  File "/usr/share/errands/errands/lib/sync/providers/caldav.py", line 235, in __sync_lists
    self.__update_local_list(cal, list)
  File "/usr/share/errands/errands/lib/sync/providers/caldav.py", line 298, in __update_local_list
    color = cal.get_property(caldav.elements.ical.CalendarColor())
                             ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'caldav.elements' has no attribute 'ical'

I think it's the same issue as here?
Python-Caldav Issue #98
Seems like the solution is importing caldav.elements.ical.

Was using the Arch Linux package but this is not an issue with the Flatpak. Should I close the issue?

I can't controll dependecies on arch linux unlike flatpak, that is why it's not supported by me, but I just released new version and it should work on arch now.


[bug] const enum is causing issues in modern TypeScript

Please read the FAQ for the bug you encountered.

[X] I have read the existing FAQ

⏯ Playground Link
https://github.com/NatoBoram/bug-report-ast-grep/pull/4/files
💻 Code
import { Lang } from "@ast-grep/napi"

/** Cannot access ambient const enums when `verbatimModuleSyntax` is enabled. */
export const lang: Lang = Lang.TypeScript

/** Type `"TypeScript"` is not assignable to type `Lang`. */
export const lang: Lang = "TypeScript"

🙁 Actual behavior
src/not_assignable.ts:4:14 - error TS2322: Type '"TypeScript"' is not assignable to type 'Lang'.
4 export const lang: Lang = "TypeScript"
               ~~~~

src/verbatim_module_syntax.ts:4:27 - error TS2748: Cannot access ambient const enums when 'verbatimModuleSyntax' is enabled.
4 export const lang: Lang = Lang.TypeScript

🙂 Expected behavior
Building should be successful
Additional information about the issue
It can be worked around by re-declaring a new language map and using this instead of the fake enum.
import type { Lang } from "@ast-grep/napi"

const langs = {
	Bash: "Bash",
	C: "C",
	Cpp: "Cpp",
	CSharp: "CSharp",
	Css: "Css",
	Dart: "Dart",
	Elixir: "Elixir",
	Go: "Go",
	Haskell: "Haskell",
	Html: "Html",
	Java: "Java",
	JavaScript: "JavaScript",
	Json: "Json",
	Kotlin: "Kotlin",
	Lua: "Lua",
	Php: "Php",
	Python: "Python",
	Ruby: "Ruby",
	Rust: "Rust",
	Scala: "Scala",
	Sql: "Sql",
	Swift: "Swift",
	Tsx: "Tsx",
	TypeScript: "TypeScript",
	Yaml: "Yaml",
} as Record<Lang, Lang>

export const lang: Lang = langs.TypeScript

In the auto-generated code, this can be fixed by dropping the const enum and using a type instead.
https://github.com/ast-grep/ast-grep/blob/c28558a2605e131fc1226c70314a9fa8bded3081/crates/napi/index.d.ts#L42-L68
export type Lang =
  | 'Html'
  | 'JavaScript'
  | 'Tsx'
  | 'Css'
  | 'TypeScript'
  | 'Bash'
  | 'C'
  | 'Cpp'
  | 'CSharp'
  | 'Dart'
  | 'Go'
  | 'Elixir'
  | 'Haskell'
  | 'Java'
  | 'Json'
  | 'Kotlin'
  | 'Lua'
  | 'Php'
  | 'Python'
  | 'Ruby'
  | 'Rust'
  | 'Scala'
  | 'Sql'
  | 'Swift'
  | 'Yaml'

I'd want to make a PR, but the file is auto-generated and I don't know Rust.

This file is autogenerated by napi-rs. Would you like to submit a ticket there? Thanks
https://github.com/ast-grep/ast-grep/blob/c28558a2605e131fc1226c70314a9fa8bded3081/crates/napi/index.d.ts#L4

I tried to dig a bit more and simply adding --no-const-enum seems to be enough. I tested the generated code in my node_modules and it works. We can even do console.log(Lang) to see the full object.
 crates/napi/index.d.ts    | 2 +-
 crates/napi/package.json  | 6 +++---
 crates/napi/tsconfig.json | 1 +
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/crates/napi/index.d.ts b/crates/napi/index.d.ts
index 9749e14c..f1ffc4bb 100644
--- a/crates/napi/index.d.ts
+++ b/crates/napi/index.d.ts
@@ -39,7 +39,7 @@ export interface FindConfig {
    */
   languageGlobs?: Array<string>
 }
-export const enum Lang {
+export enum Lang {
   Html = 'Html',
   JavaScript = 'JavaScript',
   Tsx = 'Tsx',
diff --git a/crates/napi/package.json b/crates/napi/package.json
index 976b0108..4ee2ae40 100644
--- a/crates/napi/package.json
+++ b/crates/napi/package.json
@@ -41,8 +41,8 @@
   },
   "scripts": {
     "artifacts": "napi artifacts",
-    "build": "napi build --platform --release",
-    "build:debug": "napi build --platform",
+    "build": "napi build --no-const-enum --platform --release",
+    "build:debug": "napi build --no-const-enum --platform",
     "prepublishOnly": "napi prepublish -t npm --skip-gh-release",
     "test": "ava",
     "version": "napi version"
@@ -67,4 +67,4 @@
       "TS_NODE_PROJECT": "./tsconfig.json"
     }
   }
-}
\ No newline at end of file
+}
diff --git a/crates/napi/tsconfig.json b/crates/napi/tsconfig.json
index 969d7b3d..0bf07256 100644
--- a/crates/napi/tsconfig.json
+++ b/crates/napi/tsconfig.json
@@ -4,6 +4,7 @@
     "strict": true,
     "moduleResolution": "node",
     "module": "CommonJS",
+    "verbatimModuleSyntax": true,
     "noUnusedLocals": true,
     "noUnusedParameters": true,
     "esModuleInterop": true,

@NatoBoram This looks good! Would you like to submit a pull request?

I'd love to!
I have also updated the bug report pull request with a pnpm patch to show that the pipeline passes with this change
https://github.com/NatoBoram/bug-report-ast-grep/pull/4/files#diff-4d00b691ea0a50c727347d567054defe52c441ec1e2cd0b7bb6c835a39b22ce6


Add dictionaries for programming languages

I think that adding dictionaries for programming languages like Python and Java would be great, it would make writing code on my phone much easier.

Yes i would love html


Add OneListTier model

Description of change
This adds the new company.OneListTier model with the intention of replacing the metadata.CompanyClassification one.
The admins for both are made read-only so that we can migrate the references as well without manual updates in the meantime.
Checklist

[x] Has a new newsfragment been created? Check changelog/README.rst for instructions
[ ] Have any relevant search models been updated?
[ ] Have any relevant fixtures (fixtures/test_data.yaml) been updated?
[ ] Have any relevant select-/prefetch-related field lists in the views and search apps been updated?
[ ] Has the admin site been updated (for new models, fields etc.)?
[ ] Has the README been updated (if needed)?

Sorry for the force push, I've just rebased develop and renamed the migration files so that they are not in conflict.


When attempting to remove non-SSL binding, PS command fails

I set my HTTP binding to absent.  The Module didn't remove the binding and failed.  I ran the PowerShell command it was running and received the following error.

Affected Puppet, Ruby, OS and module versions/distributions

Puppet: 2016.4.2
Ruby:
Distribution: Windows Server 2012 R2
Module version: 2.0.2

How to reproduce (e.g Puppet code you use)
iis::manage_binding {"$uri-http":
ensure      => absent,
site_name   => 'PhoneDirectory',
protocol    => 'http',
port        => '80',
ip_address  => '*',
host_header => $uri,
}
What are you seeing
Puppet doesn't remove the web binding and fires an error
What behavior did you expect instead
Remove the Web Binding
Output log
Error: Import-Module WebAdministration; Remove-WebBinding -Name "PhoneDirectory"
-Port 80 -Protocol "http" -HostHeader "directory-test.woodmen.net" -IPAddress "
" -SslFlags "0" returned 1 instead of one of [0]
Error: /Stage[main]/Profiles::Dotnet::Webserver::Phonedirectory/Iis::Manage_bind
ing[directory-test.woodmen.net-http]/Exec[DeleteBinding-directory-test.woodmen.n
et-http]/returns: change from notrun to 0 failed: Import-Module WebAdministratio
n; Remove-WebBinding -Name "PhoneDirectory" -Port 80 -Protocol "http" -HostHeade
r "directory-test.woodmen.net" -IPAddress "" -SslFlags "0" returned 1 instead o
f one of [0]
Any additional information you'd like to impart
I ran the powershell command manually to see if I could get a better idea of why it was breaking.
PS C:\Windows\system32> Import-Module WebAdministration; Remove-WebBinding -Name "PhoneDirectory" -Port 80 -Protocol "ht
tp" -hostHeader "directory-test.rychannel.net" -IPAddress "*" -SslFlags "0"
Remove-WebBinding : A parameter cannot be found that matches parameter name 'SslFlags'.
At line:1 char:157

... -IPAddress "*" -SslFlags "0"

               ~~~~~~~~~

CategoryInfo          : InvalidArgument: (:) [Remove-WebBinding], ParameterBindingException
FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.IIs.PowerShell.Provider.RemoveWebBindingCommand

Duplicate - Taken care of in 3.0.0
Closing ticket


Use github's node .gitignore file

It's decently comprehensive and doesn't ever get in the way.
See: https://github.com/github/gitignore/edit/master/Node.gitignore

Fair enough!


python proxyPool.py webserver没有看懂这里要怎么改

Serving Flask app "Api.ProxyApi" (lazy loading)
Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
Debug mode: off
Running on http://<IP_ADDRESS>:5010/ (Press CTRL+C to quit)

？要改什么


Develop

Pull Request Test Coverage Report for Build 646

254 of 255 (99.61%)  changed or added relevant lines in 37 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 98.786%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/app/test-helpers/auth.ts
15
16
93.75%

Totals

Change from base Build 624:
0.02%

Covered Lines:
2113

Relevant Lines:
2126

💛  - Coveralls