You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does not provide enough detail what binary actually caused this. It would be nice to provide reference to it making it easier to debug the issue.
The following .spec file can trigger such error:
%globalgem_nameselenium-webdriver%bcond_withoutspec_integrationName: rubygem-%{gem_name}
Version: 4.27.0Release: 3%{?dist}
Summary: SeleniumisabrowserautomationtoolforautomatedtestingofwebappsandmoreLicense: Apache-2.0URL: https://selenium.devSource0: https://rubygems.org/gems/%{gem_name}-%{version}.gem# git clone https://github.com/SeleniumHQ/selenium# git -C selenium archive -v -o selenium-webdriver-4.27.0-spec.tar.gz selenium-4.27.0 rb/specSource1: %{gem_name}-%{version}-spec.tar.gz# Needed for integration `spec/integration`# git -C selenium archive -v -o selenium-webdriver-4.27.0-web.tar.gz selenium-4.27.0 common/src/webSource2: %{gem_name}-%{version}-web.tar.gz# `selenium-manager` stub replacing the bundled binary blobs.Source3: selenium-manager# Ruby 3.4 `Hash#inspect` compatibility.# https://github.com/SeleniumHQ/selenium/issues/14934Patch0: rubygem-selenium-webdriver-4.27.0-Hash-inspect-formatting-for-Ruby-3.4-compatibili.patch# There is no other driver in Fedora, therefore suggest what we have. This also# reflescts the `selenium-manager` stub above.Recommends: chromedriverRecommends: chromiumchromium-headlessRequires: selenium-managerBuildRequires: selenium-managerBuildRequires: ruby(release)
BuildRequires: rubygems-develBuildRequires: rubyBuildRequires: rubygem(curb)
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(rubyzip)
BuildRequires: rubygem(webmock)
BuildRequires: rubygem(websocket)
%if%{withspec_integration}
BuildRequires: rubygem(rack)
BuildRequires: rubygem(webrick)
BuildRequires: chromedriverBuildRequires: chromiumchromium-headless# Chromium is not available for i686 / s390x# https://src.fedoraproject.org/rpms/chromium/blob/fcd074b9c31411f795ab402fe88e4513a68c843e/f/chromium.spec#_803# and on ppc64le# https://src.fedoraproject.org/rpms/chromium/blob/fcd074b9c31411f795ab402fe88e4513a68c843e/f/chromium.spec#_43-45ExclusiveArch: x86_64aarch64%endifBuildArch: noarch%descriptionSeleniumimplementstheW3CWebDriverprotocoltoautomatepopularbrowsers.
Itaimstomimicthebehaviourofarealuserasitinteractswiththeapplication's HTML. It'sprimarilyintendedforwebapplicationtesting,
butanyweb-basedtaskcanautomated.
%packagedocSummary: Documentationfor%{name}
Requires: %{name} =%{version}-%{release}
BuildArch: noarch%descriptiondocDocumentationfor%{name}.
%prep%setup-q-n%{gem_name}-%{version} -b1-b2
(
cd%{builddir}
%patch0-p1
)
# Drop the original selenium-manager binaries as long as we cannot recreate# them from source. Their purpose is described here:# https://www.selenium.dev/documentation/selenium_manager/# and they are included from this repo:# https://github.com/SeleniumHQ/selenium_manager_artifacts# TODO: Try to build them from source:# https://github.com/SeleniumHQ/selenium/tree/trunk/rust# https://www.selenium.dev/documentation/selenium_manager/#building-a-custom-selenium-manager# BTW: python-selenium package is struggling with the same issue:# https://bugzilla.redhat.com/show_bug.cgi?id=2278096#c13%gemspec_remove_fileDir.glob('bin/{windows,macos}/selenium-manager{,.exe}')
%buildgembuild ../%{gem_name}-%{version}.gemspec%gem_install%installmkdir-p%{buildroot}%{gem_dir}
cp-a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/#Remove temporary selenium wrapper#and create a link to selenium-manager binaryrm .%{gem_instdir}/bin/linux/selenium-managerln-s%{_bindir}/selenium-manager .%{gem_instdir}/bin/linux/%checkpushd .%{gem_instdir}
ln-s%{_builddir}/rb/spec .
# `DevTools` are part of separate `selenium-devtools` gem.mvspec/unit/selenium/devtools_spec.rb{,.disable}
mvspec/unit/selenium/devtools/cdp_client_generator_spec.rb{,.disable}
mvspec/integration/selenium/webdriver/devtools_spec.rb{,.disable}
# Require Firefox extensions included in thirdparty directory, available on GH# not included in gemsed-ispec/unit/selenium/webdriver/firefox/profile_spec.rb \
-e'/can install extension/a\ skip' \
-e'/can install web extension/a\ skip'# There seems to be wrong stub and when `bin/linux/selenium-manager` exists,# the test fails.# https://github.com/SeleniumHQ/selenium/issues/14925sed-i"/it 'errors if cannot find' do/a\ skip" \
spec/unit/selenium/webdriver/common/selenium_manager_spec.rbrspecspec/unit%if%{withspec_integration}
# Ignore `spec/integration/selenium/server_spec.rb`, which downloads some# content from internet.mvspec/integration/selenium/server_spec.rb{,.disable}
# These test are passing when they are expected to fail. Maybe chromium# supports these actions now?sed-i-r \
-e"/it 'can make window full screen'/ s/(^\s*)it/\1skip/" \
-e"/it 'can minimize the window'/ s/(^\s*)it/\1skip/" \
spec/integration/selenium/webdriver/window_spec.rbHEADLESS=trueSE_CHROMEDRIVER=chromedriverrspecspec/integration%endifpopd%files%dir%{gem_instdir}
%license%{gem_instdir}/LICENSE%{gem_instdir}/bin%{gem_libdir}
%exclude%{gem_cache}
%{gem_spec}
%filesdoc%doc%{gem_docdir}
%doc%{gem_instdir}/CHANGES%doc%{gem_instdir}/NOTICE%{gem_instdir}/Gemfile%doc%{gem_instdir}/README.md%{gem_instdir}/selenium-webdriver.gemspec%changelog*SunJan192025FedoraReleaseEngineering<releng@fedoraproject.org>-4.27.0-3-Rebuiltforhttps://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
The text was updated successfully, but these errors were encountered:
Discussed in #3587
Originally posted by voxik February 19, 2025
Observing error such as:
It does not provide enough detail what binary actually caused this. It would be nice to provide reference to it making it easier to debug the issue.
The following .spec file can trigger such error:
The text was updated successfully, but these errors were encountered: