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

TICtxtWrd-common: Test Improvement, Context Wording, for ecosystem common. #9780

Closed
wants to merge 46 commits into from

Conversation

thavaahariharangit
Copy link
Contributor

Test Improvement, Context Wording, for ecosystem common.

Writing a sensible context, for test.

@thavaahariharangit thavaahariharangit requested a review from a team as a code owner May 20, 2024 14:11
“Thavachelvam and others added 8 commits May 20, 2024 15:17
…9768)

Co-authored-by: “Thavachelvam <“thavaahariharangit@git.com”>
…safe_load (#9759)

* Fixes Alias parsing was not enabled issue while loading Psych Lib in safe_load
…ver-true-type

True type `Dependabot::NpmAndYarn::UpdateChecker::VersionResolver`
* parge the multiple json object response and handle both default and sparse registry responses in available_versions
Copy link
Member

@jurre jurre left a comment

Choose a reason for hiding this comment

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

Nice work on this, I had a few questions and suggestions but other than that it looks good

common/spec/dependabot/git_commit_checker_spec.rb Outdated Show resolved Hide resolved
common/spec/dependabot/git_commit_checker_spec.rb Outdated Show resolved Hide resolved
common/spec/dependabot/git_commit_checker_spec.rb Outdated Show resolved Hide resolved
@github-actions github-actions bot added L: rust:cargo Rust crates via cargo L: dart:pub Dart packages via pub L: javascript labels May 21, 2024
jakecoffman and others added 9 commits May 21, 2024 16:56
* Enable RSpec/EmptyLineAfterExample

* Enable RSpec/EmptyLineAfterExampleGroup

* Enable RSpec/EmptyLineAfterFinalLet

* Enable RSpec/EmptyLineAfterHook

* Enable RSpec/EmptyLineAfterSubject
…w comments of #9758 addressed here. (#9782)

* TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler.

* TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler.

* TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler.

* TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler.

* TICtxtWrd-bundler: Rebasing main.

* TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler.

* TICtxtWrd-bundler: Fixing with code spell error.

* TICtxtWrd-bundler:Fixing the codespell error.

* TICtxtWrd-bundler: Fixing the lint errors.

---------

Co-authored-by: “Thavachelvam <“thavaahariharangit@git.com”>
@thavaahariharangit thavaahariharangit requested a review from a team as a code owner May 24, 2024 14:00
@github-actions github-actions bot added L: php:composer Issues and code for Composer L: ruby:bundler RubyGems via bundler labels May 24, 2024
“Thavachelvam and others added 2 commits May 24, 2024 15:04
…9070)

* Added support for .tool-versions file in Gemfile for Ruby projects
* Filter out all support files from evaled_gemfiles() without listing each pattern separately
* Updated RSpec context description to match linter requirement (should start with when/with/without)
@jurre
Copy link
Member

jurre commented May 24, 2024

Looks like some merge conflicts in this PR, I see a bunch of unrelated commits etc, could you clean that up please?

brettfo and others added 22 commits May 24, 2024 13:12
* expand `*.proj` during dependency discovery
* allow both `ProjectFile` and `ProjectReference` to be expanded
* expand `*.sln` files and don't recurse
* test discovery with spaces in path
* fix formatting
* fix test path
…dler::LazySpecification issue (#9807)

* monkey patch Bundler::SpecSet#materialize_for_all_platforms
GCC 14 was release on 7th May[^1]. It introduced a new warning `-Wno-calloc-transposed-args`[^2] designd to raise a warning when the arguments to `calloc` were given in the wrong order.

Unfortunately, `prism` version `0.24.0` made this mistake. Attempting to `bundle install` Dependabot gives the error:

<details>
<summary>Error details</summary>

```
src/diagnostic.c: In function ‘pm_diagnostic_list_append’:
src/diagnostic.c:328:69: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  328 |     pm_diagnostic_t *diagnostic = (pm_diagnostic_t *) calloc(sizeof(pm_diagnostic_t), 1);
      |                                                                     ^~~~~~~~~~~~~~~
src/diagnostic.c:328:69: note: earlier argument should specify number of elements, later size of each element
src/diagnostic.c: In function ‘pm_diagnostic_list_append_format’:
src/diagnostic.c:359:69: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  359 |     pm_diagnostic_t *diagnostic = (pm_diagnostic_t *) calloc(sizeof(pm_diagnostic_t), 1);
      |                                                                     ^~~~~~~~~~~~~~~
src/diagnostic.c:359:69: note: earlier argument should specify number of elements, later size of each element
cc1: all warnings being treated as errors
```

</details>

The issue was logged upstream in ruby/prism#2645, fixed in ruby/prism#2648, and released in https://github.com/ruby/prism/releases/tag/v0.25.0.

This change upgrades `prism`, by way of upgrading `rbi`, and resolves the compile error.

[^1]: https://gcc.gnu.org/gcc-14/
[^2]: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wno-calloc-transposed-args
By default the top-level `GITHUB_TOKEN` has all permissions[^1]. This
change removes all permissions by default, as recommended by the GitHub
Actions security hardening guide[^2].

This change is a low risk test. I plan to modify all other workflows if
this works okay.

[^1]:
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
[^2]:
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#restricting-permissions-for-tokens
When a version range with a '<' character is found, the range is updated to the (latest version + 1). However for a range using "<=" this is invalid. Add a special case for a range using Less Than Equal which is updated to simply the latest version.

Co-authored-by: AbdulFattaah Popoola <abdulapopoola@github.com>
)

Co-authored-by: “Thavachelvam <“thavaahariharangit@git.com”>
@thavaahariharangit
Copy link
Contributor Author

#9856 is deployed and merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dart:pub Dart packages via pub L: devcontainers L: docker Docker containers L: dotnet:nuget NuGet packages via nuget or dotnet L: elixir:hex Elixir packages via hex L: elm Elm packages L: git:submodules Git submodules L: github:actions GitHub Actions L: go:modules Golang modules L: java:gradle Maven packages via Gradle L: java:maven Maven packages via Maven L: javascript L: php:composer Issues and code for Composer L: python L: ruby:bundler RubyGems via bundler L: rust:cargo Rust crates via cargo L: terraform Terraform packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet