From ca5af2161dcf3ea6f4996cf694c63a9ea1e53414 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:00:08 +0000 Subject: [PATCH 1/6] Bump xunit.runner.visualstudio from 3.0.0 to 3.0.1 in /src/csharp/Intel Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/3.0.0...3.0.1) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj b/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj index 97ffa91a0..2ddd93fe2 100644 --- a/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj +++ b/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj @@ -17,7 +17,7 @@ - + From b0407f47e9c4cf345f291ada7cfe017538c11b17 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 09:00:26 +0000 Subject: [PATCH 2/6] Bump xunit.runner.console from 2.9.2 to 2.9.3 in /src/csharp/Intel Bumps [xunit.runner.console](https://github.com/xunit/xunit) from 2.9.2 to 2.9.3. - [Commits](https://github.com/xunit/xunit/compare/v2-2.9.2...v2-2.9.3) --- updated-dependencies: - dependency-name: xunit.runner.console dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj b/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj index 97ffa91a0..56732c235 100644 --- a/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj +++ b/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj @@ -16,7 +16,7 @@ - + From 48eb18014819325b27cb67863738b3a07f601123 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 08:11:15 +0000 Subject: [PATCH 3/6] Bump coverlet.msbuild from 6.0.2 to 6.0.4 in /src/csharp/Intel Bumps [coverlet.msbuild](https://github.com/coverlet-coverage/coverlet) from 6.0.2 to 6.0.4. - [Release notes](https://github.com/coverlet-coverage/coverlet/releases) - [Commits](https://github.com/coverlet-coverage/coverlet/compare/v6.0.2...v6.0.4) --- updated-dependencies: - dependency-name: coverlet.msbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj b/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj index 97ffa91a0..075afafa1 100644 --- a/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj +++ b/src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj @@ -12,7 +12,7 @@ - + From b2ac61d0b783424077517fb0e0ba1697cfe75734 Mon Sep 17 00:00:00 2001 From: Matyas Susits Date: Mon, 20 Jan 2025 12:06:40 +0100 Subject: [PATCH 4/6] add enum #type: ignore to empty python enum types. Fixes #652 --- .../Intel/Generator/Misc/Python/PyiGen.cs | 2 +- .../iced-x86-py/src/iced_x86/_iced_x86_py.pyi | 70 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/csharp/Intel/Generator/Misc/Python/PyiGen.cs b/src/csharp/Intel/Generator/Misc/Python/PyiGen.cs index 18607d9a7..56af71912 100644 --- a/src/csharp/Intel/Generator/Misc/Python/PyiGen.cs +++ b/src/csharp/Intel/Generator/Misc/Python/PyiGen.cs @@ -125,7 +125,7 @@ namespace Generator.Misc.Python { } } else - writer.WriteLine($"class {pythonName}({baseClass}): ..."); + writer.WriteLine($"class {pythonName}({baseClass}): ... # type: ignore"); } var docGen = new PyiDocGen(); diff --git a/src/rust/iced-x86-py/src/iced_x86/_iced_x86_py.pyi b/src/rust/iced-x86-py/src/iced_x86/_iced_x86_py.pyi index 20b7a5a7f..d9335004f 100644 --- a/src/rust/iced-x86-py/src/iced_x86/_iced_x86_py.pyi +++ b/src/rust/iced-x86-py/src/iced_x86/_iced_x86_py.pyi @@ -9,53 +9,53 @@ from collections.abc import Iterator from enum import IntEnum, IntFlag from typing import Any, List, Optional, Union -class CC_a(IntEnum): ... -class CC_ae(IntEnum): ... -class CC_b(IntEnum): ... -class CC_be(IntEnum): ... -class CC_e(IntEnum): ... -class CC_g(IntEnum): ... -class CC_ge(IntEnum): ... -class CC_l(IntEnum): ... -class CC_le(IntEnum): ... -class CC_ne(IntEnum): ... -class CC_np(IntEnum): ... -class CC_p(IntEnum): ... -class Code(IntEnum): ... -class CodeSize(IntEnum): ... -class ConditionCode(IntEnum): ... -class CpuidFeature(IntEnum): ... -class DecoderError(IntEnum): ... +class CC_a(IntEnum): ... # type: ignore +class CC_ae(IntEnum): ... # type: ignore +class CC_b(IntEnum): ... # type: ignore +class CC_be(IntEnum): ... # type: ignore +class CC_e(IntEnum): ... # type: ignore +class CC_g(IntEnum): ... # type: ignore +class CC_ge(IntEnum): ... # type: ignore +class CC_l(IntEnum): ... # type: ignore +class CC_le(IntEnum): ... # type: ignore +class CC_ne(IntEnum): ... # type: ignore +class CC_np(IntEnum): ... # type: ignore +class CC_p(IntEnum): ... # type: ignore +class Code(IntEnum): ... # type: ignore +class CodeSize(IntEnum): ... # type: ignore +class ConditionCode(IntEnum): ... # type: ignore +class CpuidFeature(IntEnum): ... # type: ignore +class DecoderError(IntEnum): ... # type: ignore class DecoderOptions(IntFlag): NONE = 0x0000_0000 ... -class EncodingKind(IntEnum): ... -class FlowControl(IntEnum): ... +class EncodingKind(IntEnum): ... # type: ignore +class FlowControl(IntEnum): ... # type: ignore class FormatMnemonicOptions(IntFlag): NONE = 0x0000_0000 ... -class FormatterSyntax(IntEnum): ... -class MandatoryPrefix(IntEnum): ... -class MemorySize(IntEnum): ... -class MemorySizeOptions(IntEnum): ... -class Mnemonic(IntEnum): ... -class MvexConvFn(IntEnum): ... -class MvexEHBit(IntEnum): ... -class MvexRegMemConv(IntEnum): ... -class MvexTupleTypeLutKind(IntEnum): ... -class OpAccess(IntEnum): ... -class OpCodeOperandKind(IntEnum): ... -class OpCodeTableKind(IntEnum): ... -class OpKind(IntEnum): ... +class FormatterSyntax(IntEnum): ... # type: ignore +class MandatoryPrefix(IntEnum): ... # type: ignore +class MemorySize(IntEnum): ... # type: ignore +class MemorySizeOptions(IntEnum): ... # type: ignore +class Mnemonic(IntEnum): ... # type: ignore +class MvexConvFn(IntEnum): ... # type: ignore +class MvexEHBit(IntEnum): ... # type: ignore +class MvexRegMemConv(IntEnum): ... # type: ignore +class MvexTupleTypeLutKind(IntEnum): ... # type: ignore +class OpAccess(IntEnum): ... # type: ignore +class OpCodeOperandKind(IntEnum): ... # type: ignore +class OpCodeTableKind(IntEnum): ... # type: ignore +class OpKind(IntEnum): ... # type: ignore class Register(IntEnum): NONE = 0 ... class RepPrefixKind(IntEnum): NONE = 0 ... -class RflagsBits(IntFlag): ... -class RoundingControl(IntEnum): ... -class TupleType(IntEnum): ... +class RflagsBits(IntFlag): ... # type: ignore +class RoundingControl(IntEnum): ... # type: ignore +class TupleType(IntEnum): ... # type: ignore class BlockEncoder: """ From 5ca9a4ce1699b58b6701a3bcbda50574815d2a91 Mon Sep 17 00:00:00 2001 From: Matyas Susits Date: Mon, 20 Jan 2025 12:52:14 +0100 Subject: [PATCH 5/6] fall back to ubuntu 22.04 LTS package when kcov is not available on latest --- .github/workflows/build.yml | 4 +- ...install-pkg-fallback-to-ubuntu-2204-LTS.sh | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100755 build/ci-install-pkg-fallback-to-ubuntu-2204-LTS.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 698652557..9dea14c6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,9 +130,7 @@ jobs: - name: Install kcov shell: bash - run: | - sudo apt-get update - sudo apt-get install kcov + run: ./build/ci-install-pkg-fallback-to-ubuntu-2204-LTS.sh kcov - name: Build and test shell: bash diff --git a/build/ci-install-pkg-fallback-to-ubuntu-2204-LTS.sh b/build/ci-install-pkg-fallback-to-ubuntu-2204-LTS.sh new file mode 100755 index 000000000..026e1a42e --- /dev/null +++ b/build/ci-install-pkg-fallback-to-ubuntu-2204-LTS.sh @@ -0,0 +1,43 @@ +#!/bin/bash +export DEBIAN_FRONTEND=noninteractive + +# Check if the package name is provided +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +PACKAGE=$1 +sudo apt-get update + +# Check if the package is available on the current system +if apt-cache show "$PACKAGE" > /dev/null 2>&1; then + echo "Package '$PACKAGE' is available in the current repository. Installing..." + sudo apt-get update + sudo apt-get install -y "$PACKAGE" + exit 0 +else + echo "Package '$PACKAGE' is not available in the current repository." + echo "Adding the Ubuntu 22.04 (Jammy) repository..." +fi + +# Add the Ubuntu 22.04 (Jammy) repository +echo "deb http://archive.ubuntu.com/ubuntu jammy main universe" | sudo tee /etc/apt/sources.list.d/ubuntu-jammy.list + +# Update the package list +sudo apt-get update + +# Try to install the package +if sudo apt-get install -y "$PACKAGE"; then + echo "Package '$PACKAGE' installed successfully from the Ubuntu 22.04 repository." +else + echo "Failed to install '$PACKAGE'. It might have unresolved dependencies." +fi + +# Clean up: Remove the Ubuntu 22.04 repository +echo "Cleaning up the Ubuntu 22.04 repository..." +sudo rm /etc/apt/sources.list.d/ubuntu-jammy.list +sudo apt-get update + +exit 0 + From 489f767f446af91f52c378df1d7d9daff99689cc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 08:38:53 +0000 Subject: [PATCH 6/6] Bump conda-incubator/setup-miniconda from 3.1.0 to 3.1.1 Bumps [conda-incubator/setup-miniconda](https://github.com/conda-incubator/setup-miniconda) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/conda-incubator/setup-miniconda/releases) - [Changelog](https://github.com/conda-incubator/setup-miniconda/blob/main/CHANGELOG.md) - [Commits](https://github.com/conda-incubator/setup-miniconda/compare/v3.1.0...v3.1.1) --- updated-dependencies: - dependency-name: conda-incubator/setup-miniconda dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 498e22d49..e63c0e758 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -331,7 +331,7 @@ jobs: # shell: bash -le {0} # setup-python is faster to install than setup-miniconda so we only # use setup-miniconda if this is a macos image. - - uses: conda-incubator/setup-miniconda@v3.1.0 + - uses: conda-incubator/setup-miniconda@v3.1.1 with: python-version: '3.8' - name: Install Python tools @@ -346,7 +346,7 @@ jobs: ./build/build-python --no-set-rustflags --python python --quick-check git clean -xdf - - uses: conda-incubator/setup-miniconda@v3.1.0 + - uses: conda-incubator/setup-miniconda@v3.1.1 with: python-version: '3.8' - name: Build and test the wheel @@ -355,7 +355,7 @@ jobs: python --version 2>&1 | grep 'Python 3\.8' bash build/ci-py-build-wheels.sh --build - - uses: conda-incubator/setup-miniconda@v3.1.0 + - uses: conda-incubator/setup-miniconda@v3.1.1 with: python-version: '3.9' - name: Build and test the wheel @@ -364,7 +364,7 @@ jobs: python --version 2>&1 | grep 'Python 3\.9' bash build/ci-py-build-wheels.sh - - uses: conda-incubator/setup-miniconda@v3.1.0 + - uses: conda-incubator/setup-miniconda@v3.1.1 with: python-version: '3.10' - name: Build and test the wheel @@ -373,7 +373,7 @@ jobs: python --version 2>&1 | grep 'Python 3\.10' bash build/ci-py-build-wheels.sh - - uses: conda-incubator/setup-miniconda@v3.1.0 + - uses: conda-incubator/setup-miniconda@v3.1.1 with: python-version: '3.11' - name: Build and test the wheel