• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / c9cc5bd1-5545-45fd-aea5-122080e1b208

04 Nov 2025 01:10PM UTC coverage: 91.403%. Remained the same
c9cc5bd1-5545-45fd-aea5-122080e1b208

push

circleci

web-flow
Bump tar from 7.5.1 to 7.5.2 in the npm_and_yarn group across 1 directory (#2126)

Bumps the npm_and_yarn group with 1 update in the / directory:
[tar](https://github.com/isaacs/node-tar).

Updates `tar` from 7.5.1 to 7.5.2
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/isaacs/node-tar/commit/d9ea73a9b"><code>d9ea73a</code></a>
7.5.2</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/5e1a8e638"><code>5e1a8e6</code></a>
Fix sync tar.list when file size reduces while reading</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/0fbeaeddf"><code>0fbeaed</code></a>
formatting</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/2dbacfe33"><code>2dbacfe</code></a>
add types for make-tar util</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/c5865d312"><code>c5865d3</code></a>
remove unused taprc file</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/bdb38096a"><code>bdb3809</code></a>
header: only read from ustar block if not specified in Pax</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/d094cd7b7"><code>d094cd7</code></a>
BlueOak-1.0.0</li>
<li><a
href="https://github.com/isaacs/node-tar/commit/4a6ae729b"><code>4a6ae72</code></a>
Verify invulnerability to tarmageddon attack</li>
<li>See full diff in <a
href="https://github.com/isaacs/node-tar/compare/v7.5.1...v7.5.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tar&package-manager=npm_and_yarn&previous-version=7.5.1&new-version=7.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores... (continued)

2828 of 3094 relevant lines covered (91.4%)

493.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/services/test_asset_generator.rb
1
# frozen_string_literal: true
2
class TestAssetGenerator
2✔
3
  attr_reader :levels, :base_name, :file_count_per_directory, :directory_per_level, :mediaflux_session
2✔
4
  def initialize(user:, project_id:, levels: 5, directory_per_level: 100, file_count_per_directory: 1000)
2✔
5
    @user = user
10✔
6
    @project = Project.find(project_id)
10✔
7
    @levels = levels
10✔
8
    @directory_per_level = directory_per_level
10✔
9
    @file_count_per_directory = file_count_per_directory
10✔
10
    # Only use the last part of the path as the base (so we don't get the root "tigerdata/")
11
    @base_name = @project.project_directory_short.split("/").last
10✔
12
    @mediaflux_session = @user.mediaflux_session
10✔
13
  end
14

15
  def generate
2✔
16
    generate_level(@project.mediaflux_id, levels)
10✔
17
  end
18

19
  private
2✔
20

21
    def generate_level(parent_id, level)
2✔
22
      return if level == 0
27✔
23
      collection = Mediaflux::AssetCreateRequest.new(session_token: mediaflux_session, name: "#{base_name}-#{level}", pid: parent_id)
17✔
24
      collection_id = collection.id  # resolves the request and extracts the id
17✔
25
      generate_directory(collection_id, directory_per_level)
17✔
26
      generate_level(collection_id, level - 1)
17✔
27
    end
28

29
    def generate_directory(parent_id, directory_count)
2✔
30
      return if directory_count == 0
47✔
31
      name_extention = (0...10).map { ("a".."z").to_a[rand(26)] }.join
330✔
32
      dir_collection = Mediaflux::AssetCreateRequest.new(session_token: mediaflux_session, name: "#{base_name}-#{parent_id}-#{name_extention}", pid: parent_id)
30✔
33
      dir_collection_id = dir_collection.id
30✔
34
      raise dir_collection.response_error.to_s if dir_collection_id.blank?
30✔
35
      Mediaflux::TestAssetCreateRequest.new(session_token: mediaflux_session, parent_id: dir_collection_id, count: file_count_per_directory).resolve
30✔
36
      generate_directory(parent_id, directory_count - 1)
30✔
37
    end
38
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc