Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build & advisory issues. #521

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Fix build & advisory issues. #521

merged 3 commits into from
Dec 5, 2024

Conversation

jpschorr
Copy link
Contributor

@jpschorr jpschorr commented Dec 4, 2024

  • update nightly toolchain used in CI testing
  • update deny/about for downstream license updates
  • backport of Replace usages of derivative with educe. #518 (see below)
  • lots of clippy changes, as clippy/rust 1.83 changes some lifetime things to errors

Fix the following as reported by cargo deny check

error[unmaintained]: `derivative` is unmaintained; consider using an alternative
   ┌─ /Users/joshps/work/partiql-lang-rust/Cargo.lock:55:1
   │
55 │ derivative 2.2.0 registry+/~https://github.com/rust-lang/crates.io-index
   │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmaintained advisory detected
   │
   ├ ID: RUSTSEC-2024-0388
   ├ Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0388
   ├ The [`derivative`](https://crates.io/crates/derivative) crate is no longer maintained.
     Consider using any alternative, for instance:
     - [derive_more](https://crates.io/crates/derive_more)
     - [derive-where](https://crates.io/crates/derive-where)
     - [educe](https://crates.io/crates/educe)
   ├ Announcement: /~https://github.com/mcarton/rust-derivative/issues/117
   ├ Solution: No safe upgrade is available!
   ├ derivative v2.2.0
     └── partiql-types v0.11.0

Cf. mcarton/rust-derivative#117


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jpschorr jpschorr requested review from alancai98 and am357 December 4, 2024 20:45
@jpschorr jpschorr changed the title Update partiql-tests to latest Update partiql-tests to latest; Fix advisory issues. Dec 4, 2024
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 80.74%. Comparing base (a7993de) to head (8a2f93a).

Files with missing lines Patch % Lines
partiql-types/src/lib.rs 40.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #521      +/-   ##
==========================================
+ Coverage   80.69%   80.74%   +0.05%     
==========================================
  Files          80       80              
  Lines       19405    19405              
  Branches    19405    19405              
==========================================
+ Hits        15658    15669      +11     
+ Misses       3322     3311      -11     
  Partials      425      425              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Dec 4, 2024

Conformance comparison report

Base (a7993de) 2d02808 +/-
% Passing 86.98% 86.95% -0.03%
✅ Passing 5564 5562 -2
❌ Failing 833 835 2
🔶 Ignored 0 0 0
Total Tests 6397 6397 0

Number passing in both: 5562

Number failing in both: 833

Number passing in Base (a7993de) but now fail: 2

Number failing in Base (a7993de) but now pass: 0

⁉️ CONFORMANCE REPORT REGRESSION DETECTED ⁉️. The following test(s) were previously passing but now fail:

Click here to see
  • partiql_tests::eval::primitives::functions::functions::upper::upper::permissive_upper_valid_cases_in_u_0180_u_0181_u_0182_u_0183_u_0184_u_0185_u_0186_u_0187_u_0188_u_0189_u_01_8a_u_01_8b_u_01_8c_u_01_8d_u_01_8e_u_01_8f_u_0190_u_0191_u_0192_u_0193_u_0194_u_0195_u_0196_u_0197_u_0198_u_0199_u_01_9a_u_01_9b_u_01_9c_u_01_9d_u_01_9e_u_01_9f_u_0_1a_0_u_0_1a_1_u_0_1a_2_u_0_1a_3_u_0_1a_4_u_0_1a_5_u_0_1a_6_u_0_1a_7_u_0_1a_8_u_0_1a_9_u_0_1aa_u_0_1ab_u_0_1ac_u_0_1ad_u_0_1ae_u_0_1af_u_0_1b_0_u_0_1b_1_u_0_1b_2_u_0_1b_3_u_0_1b_4_u_0_1b_5_u_0_1b_6_u_0_1b_7_u_0_1b_8_u_0_1b_9_u_0_1ba_u_0_1bb_u_0_1bc_u_0_1bd_u_0_1be_u_0_1bf_u_0_1c_0_u_0_1c_1_u_0_1c_2_u_0_1c_3_u_0_1c_4_u_0_1c_5_u_0_1c_6_u_0_1c_7_u_0_1c_8_u_0_1c_9_u_0_1ca_u_0_1cb_u_0_1cc_u_0_1cd_u_0_1ce_u_0_1cf_u_0_1d_0_u_0_1d_1_u_0_1d_2_u_0_1d_3_u_0_1d_4_u_0_1d_5_u_0_1d_6_u_0_1d_7_u_0_1d_8_u_0_1d_9_u_0_1da_u_0_1db_u_0_1dc_u_0_1dd_u_0_1de_u_0_1df_u_0_1e_0_u_0_1e_1_u_0_1e_2_u_0_1e_3_u_0_1e_4_u_0_1e_5_u_0_1e_6_u_0_1e_7_u_0_1e_8_u_0_1e_9_u_0_1ea_u_0_1eb_u_0_1ec_u_0_1ed_u_0_1ee_u_0_1ef_u_0_1f_0_u_0_1f_1_u_0_1f_2_u_0_1f_3_u_0_1f_4_u_0_1f_5_u_0_1f_6_u_0_1f_7_u_0_1f_8_u_0_1f_9_u_0_1fa_u_0_1fb_u_0_1fc_u_0_1fd_u_0_1fe_u_0_1ff_u_0200_u_0201_u_0202_u_0203_u_0204_u_0205_u_0206_u_0207_u_0208_u_0209_u_02_0a_u_02_0b_u_02_0c_u_02_0d_u_02_0e_u_02_0f_u_0210_u_0211_u_0212_u_0213_u_0214_u_0215_u_0216_u_0217_u_0218_u_0219_u_02_1a_u_02_1b_u_02_1c_u_02_1d_u_02_1e_u_02_1f_u_0220_u_0221_u_0222_u_0223_u_0224_u_0225_u_0226_u_0227_u_0228_u_0229_u_02_2a_u_02_2b_u_02_2c_u_02_2d_u_02_2e_u_02_2f_u_0230_u_0231_u_0232_u_0233_u_0234_u_0235_u_0236_u_0237_u_0238_u_0239_u_02_3a_u_02_3b_u_02_3c_u_02_3d_u_02_3e_u_02_3f_u_0240_u_0241_u_0242_u_0243_u_0244_u_0245_u_0246_u_0247_u_0248_u_0249_u_02_4a_u_02_4b_u_02_4c_u_02_4d_u_02_4e_u_02_4f_result_u_0243_u_0181_u_0182_u_0182_u_0184_u_0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208_u_02_0a_u_02_0a_u_02_0c_u_02_0c_u_02_0e_u_02_0e_u_0210_u_0210_u_0212_u_0212_u_0214_u_0214_u_0216_u_0216_u_0218_u_0218_u_02_1a_u_02_1a_u_02_1c_u_02_1c_u_02_1e_u_02_1e_u_0220_u_0221_u_0222_u_0222_u_0224_u_0224_u_0226_u_0226_u_0228_u_0228_u_02_2a_u_02_2a_u_02_2c_u_02_2c_u_02_2e_u_02_2e_u_0230_u_0230_u_0232_u_0232_u_0234_u_0235_u_0236_u_0237_u_0238_u_0239_u_02_3a_u_02_3b_u_02_3b_u_02_3d_u_02_3e_u_2c_7e_u_2c_7f_u_0241_u_0241_u_0243_u_0244_u_0245_u_0246_u_0246_u_0248_u_0248_u_02_4a_u_02_4a_u_02_4c_u_02_4c_u_02_4e_u_02_4e
  • partiql_tests::eval::primitives::functions::functions::upper::upper::strict_upper_valid_cases_in_u_0180_u_0181_u_0182_u_0183_u_0184_u_0185_u_0186_u_0187_u_0188_u_0189_u_01_8a_u_01_8b_u_01_8c_u_01_8d_u_01_8e_u_01_8f_u_0190_u_0191_u_0192_u_0193_u_0194_u_0195_u_0196_u_0197_u_0198_u_0199_u_01_9a_u_01_9b_u_01_9c_u_01_9d_u_01_9e_u_01_9f_u_0_1a_0_u_0_1a_1_u_0_1a_2_u_0_1a_3_u_0_1a_4_u_0_1a_5_u_0_1a_6_u_0_1a_7_u_0_1a_8_u_0_1a_9_u_0_1aa_u_0_1ab_u_0_1ac_u_0_1ad_u_0_1ae_u_0_1af_u_0_1b_0_u_0_1b_1_u_0_1b_2_u_0_1b_3_u_0_1b_4_u_0_1b_5_u_0_1b_6_u_0_1b_7_u_0_1b_8_u_0_1b_9_u_0_1ba_u_0_1bb_u_0_1bc_u_0_1bd_u_0_1be_u_0_1bf_u_0_1c_0_u_0_1c_1_u_0_1c_2_u_0_1c_3_u_0_1c_4_u_0_1c_5_u_0_1c_6_u_0_1c_7_u_0_1c_8_u_0_1c_9_u_0_1ca_u_0_1cb_u_0_1cc_u_0_1cd_u_0_1ce_u_0_1cf_u_0_1d_0_u_0_1d_1_u_0_1d_2_u_0_1d_3_u_0_1d_4_u_0_1d_5_u_0_1d_6_u_0_1d_7_u_0_1d_8_u_0_1d_9_u_0_1da_u_0_1db_u_0_1dc_u_0_1dd_u_0_1de_u_0_1df_u_0_1e_0_u_0_1e_1_u_0_1e_2_u_0_1e_3_u_0_1e_4_u_0_1e_5_u_0_1e_6_u_0_1e_7_u_0_1e_8_u_0_1e_9_u_0_1ea_u_0_1eb_u_0_1ec_u_0_1ed_u_0_1ee_u_0_1ef_u_0_1f_0_u_0_1f_1_u_0_1f_2_u_0_1f_3_u_0_1f_4_u_0_1f_5_u_0_1f_6_u_0_1f_7_u_0_1f_8_u_0_1f_9_u_0_1fa_u_0_1fb_u_0_1fc_u_0_1fd_u_0_1fe_u_0_1ff_u_0200_u_0201_u_0202_u_0203_u_0204_u_0205_u_0206_u_0207_u_0208_u_0209_u_02_0a_u_02_0b_u_02_0c_u_02_0d_u_02_0e_u_02_0f_u_0210_u_0211_u_0212_u_0213_u_0214_u_0215_u_0216_u_0217_u_0218_u_0219_u_02_1a_u_02_1b_u_02_1c_u_02_1d_u_02_1e_u_02_1f_u_0220_u_0221_u_0222_u_0223_u_0224_u_0225_u_0226_u_0227_u_0228_u_0229_u_02_2a_u_02_2b_u_02_2c_u_02_2d_u_02_2e_u_02_2f_u_0230_u_0231_u_0232_u_0233_u_0234_u_0235_u_0236_u_0237_u_0238_u_0239_u_02_3a_u_02_3b_u_02_3c_u_02_3d_u_02_3e_u_02_3f_u_0240_u_0241_u_0242_u_0243_u_0244_u_0245_u_0246_u_0247_u_0248_u_0249_u_02_4a_u_02_4b_u_02_4c_u_02_4d_u_02_4e_u_02_4f_result_u_0243_u_0181_u_0182_u_0182_u_0184_u_0184_u_0186_u_0187_u_0187_u_0189_u_01_8a_u_01_8b_u_01_8b_u_01_8d_u_01_8e_u_01_8f_u_0190_u_0191_u_0191_u_0193_u_0194_u_0_1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u_02_1a_u_02_1a_u_02_1c_u_02_1c_u_02_1e_u_02_1e_u_0220_u_0221_u_0222_u_0222_u_0224_u_0224_u_0226_u_0226_u_0228_u_0228_u_02_2a_u_02_2a_u_02_2c_u_02_2c_u_02_2e_u_02_2e_u_0230_u_0230_u_0232_u_0232_u_0234_u_0235_u_0236_u_0237_u_0238_u_0239_u_02_3a_u_02_3b_u_02_3b_u_02_3d_u_02_3e_u_2c_7e_u_2c_7f_u_0241_u_0241_u_0243_u_0244_u_0245_u_0246_u_0246_u_0248_u_0248_u_02_4a_u_02_4a_u_02_4c_u_02_4c_u_02_4e_u_02_4e

@jpschorr jpschorr changed the title Update partiql-tests to latest; Fix advisory issues. Fix build & advisory issues. Dec 4, 2024
@@ -170,7 +170,7 @@ pub struct BasicContext<'a> {
pub errors: RefCell<Vec<EvaluationError>>,
}

impl<'a> BasicContext<'a> {
impl BasicContext<'_> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems unrelated to your change but there's a clippy warning on L149:

unexpected `cfg` condition value: `serde`

warning: unexpected `cfg` condition value: `serde`
   --> partiql-eval/src/eval/mod.rs:149:12
    |
149 | #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
    |            ^^^^^^^^^^^^^^^^^ help: remove the condition
    |
    = note: no expected values for `feature`
    = help: consider adding `serde` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

@jpschorr jpschorr merged commit 13836d1 into main Dec 5, 2024
17 checks passed
@jpschorr jpschorr deleted the chore-update-tests branch December 5, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants